Function at 0x10001073
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x20]
jbe 0x100010ac
xor eax, eax
jmp 0x1000136d
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x100010d5
push str.No_importTable
call fcn.10001000
add esp, 4
mov eax, 1
jmp 0x1000136d
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x20]
jbe 0x100010ed
xor eax, eax
jmp 0x1000136d
push str.LoadLibraryA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10001114
xor eax, eax
jmp 0x1000136d
cmp dword [ebp - 4], 0
je 0x1000135b
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 0
jne 0x10001135
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 0
jne 0x10001135
jmp 0x1000135b
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
add ecx, dword [ebp - 0x28]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x20]
jbe 0x10001150
xor eax, eax
jmp 0x1000136d
mov eax, dword [ebp - 0x14]
push eax
call dword [ebp - 8]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1000117f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push str.LoadLibrary__s_error___d
call fcn.10001000
add esp, 0xc
xor eax, eax
jmp 0x1000136d
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
push str._s__x
call fcn.10001000
add esp, 0xc
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0
je 0x1000124e
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
add edx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0
je 0x10001249
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
add edx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
and ecx, 0x80000000
test ecx, ecx
je 0x100011f9
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x2c]
mov dword [edx], eax
jmp 0x1000120f
mov eax, dword [ebp - 0x1c]
add eax, 2
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x2c]
mov dword [edx], eax
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0
jne 0x10001232
mov ecx, dword [ebp - 0x1c]
add ecx, 2
push ecx
push str.GetProcAddress__s_error
call fcn.10001000
add esp, 8
xor eax, eax
jmp 0x1000136d
mov edx, dword [ebp - 0x2c]
add edx, 4
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x30]
add eax, 4
mov dword [ebp - 0x30], eax
jmp 0x100011b7
jmp 0x1000134d
push str.FirstThunk___FirstThunk
call fcn.10001000
add esp, 4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
add edx, dword [ebp - 0x28]
mov dword [ebp - 0x138], edx
mov eax, dword [ebp - 0x138]
cmp dword [eax], 0
je 0x1000134d
mov ecx, dword [ebp - 0x138]
mov edx, dword [ecx]
and edx, 0x80000000
test edx, edx
je 0x100012ae
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x138]
mov dword [ecx], eax
jmp 0x1000132c
push 0x104
push 0
lea edx, [ebp - 0x134]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x28]
mov dword [ebp - 0x13c], ecx
mov edx, dword [ebp - 0x13c]
mov dword [ebp - 0x140], edx
mov eax, dword [ebp - 0x140]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x100012ff
mov edx, dword [ebp - 0x140]
add edx, 1
mov dword [ebp - 0x140], edx
jmp 0x100012e1
mov eax, dword [ebp - 0x140]
push eax
lea ecx, [ebp - 0x134]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x134]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x138]
mov dword [ecx], eax
cmp dword [ebp - 0x138], 0
jne 0x10001339
xor eax, eax
jmp 0x1000136d
mov edx, dword [ebp - 0x138]
add edx, 4
mov dword [ebp - 0x138], edx
jmp 0x1000126a
mov eax, dword [ebp - 4]
add eax, 0x14
mov dword [ebp - 4], eax
jmp 0x10001114
push str.Import_....._ok
call fcn.10001000
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret 8