Function at 0x418688
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x21e6
push 0
push 0
dec ecx
jne 0x418691
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403980
mov eax, dword [ebp - 8]
call fcn.00403980
mov eax, dword [ebp - 0xc]
call fcn.00403980
lea edi, [ebp - 0xebc]
xor eax, eax
push ebp
push 0x418b80
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
jne 0x4186e7
lea eax, [ebp - 0xc]
mov edx, 0x418b98
call fcn.0040357c
lea eax, [ebp - 0x58]
call fcn.004034e4
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 4]
call fcn.0040357c
mov byte [ebp - 0x45], 0
lea eax, [ebp - 0x30]
mov edx, 0x418ba8
call fcn.0040357c
lea eax, [ebp - 0x30]
call fcn.004039e8
push eax
call sub.kernel32.dll_GetModuleHandleA_1
mov ebx, eax
test ebx, ebx
jne 0x41872f
lea eax, [ebp - 0x30]
call fcn.004039e8
push eax
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
test ebx, ebx
jne 0x41874f
lea eax, [ebp - 0x30]
call fcn.004039e8
mov byte [eax + 7], 0
lea eax, [ebp - 0x30]
call fcn.004039e8
push eax
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
lea eax, [ebp - 0x30]
call fcn.004039e8
add eax, 0xc
push eax
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x30]
call fcn.004039e8
add eax, 0x1a
push eax
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
call fcn.004039e8
add eax, 0x2b
push eax
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x30]
call fcn.004039e8
add eax, 0x3c
push eax
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x30]
call fcn.004039e8
add eax, 0x53
push eax
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
call fcn.004039e8
add eax, 0x64
push eax
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x30]
call fcn.004039e8
add eax, 0x75
push eax
push ebx
call sub.kernel32.dll_GetProcAddress
mov esi, eax
lea eax, [ebp - 0x30]
call fcn.004039e8
add eax, 0x89
push eax
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
call fcn.004039e8
add eax, 0x9b
push eax
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x80]
mov edx, 0x20
call fcn.00404f00
lea eax, [ebp - 0x180]
mov edx, pe_nt_image_headers32
call fcn.00404f00
lea eax, [ebp - 0x200]
mov edx, 0x80
call fcn.00404f00
lea eax, [ebp - 0x280]
mov edx, 0x80
call fcn.00404f00
lea eax, [ebp - 0xa80]
mov edx, 0x800
call fcn.00404f00
lea eax, [ebp - 0xe80]
mov edx, 0x400
call fcn.00404f00
mov eax, edi
mov edx, 0x3c
call fcn.00404f00
mov dword [edi], 0x3c
lea eax, [ebp - 0x80]
mov dword [edi + 4], eax
mov dword [edi + 8], 0x20
lea eax, [ebp - 0x180]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], pe_nt_image_headers32
lea eax, [ebp - 0x200]
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], 0x80
lea eax, [ebp - 0x280]
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], 0x80
lea eax, [ebp - 0xa80]
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], 0x800
lea eax, [ebp - 0xe80]
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], 0x400
push edi
push 0x90000000
mov eax, dword [ebp - 0x34]
call fcn.00403790
push eax
mov eax, dword [ebp - 0x34]
call fcn.00403990
push eax
call dword [ebp - 0x28]
lea eax, [ebp - 0x60]
mov edx, dword [edi + 0x10]
call fcn.004036dc
lea eax, [ebp - 0x10f24]
push eax
mov eax, dword [ebp - 0x60]
call fcn.00403790
mov edx, eax
sub edx, 3
mov ecx, 4
mov eax, dword [ebp - 0x60]
call fcn.004039f0
mov edx, dword [ebp - 0x10f24]
mov eax, 0x418c60
call fcn.00403a78
test eax, eax
je 0x418977
mov byte [ebp - 0x45], 1
lea eax, [ebp - 0x10f28]
mov edx, dword [edi + 0x10]
call fcn.004036dc
mov ecx, dword [ebp - 0x10f28]
lea eax, [ebp - 0x54]
mov edx, 0x418c70
call fcn.004037dc
lea edx, [ebp - 0x10f2c]
mov eax, dword [ebp - 0x60]
call fcn.00417f6c
mov eax, dword [ebp - 0x10f2c]
call fcn.00403990
mov dword [edi + 0x10], eax
push 0
push 0
push 0
push 0
push 0x418c78
call dword [ebp - 0x10]
mov ebx, eax
mov dword [edi + 0x10], 0x41b7c0
nop
mov dword [ebp - 0x50], 0x2dc6c0
push 4
lea eax, [ebp - 0x50]
push eax
push 6
push ebx
call dword [ebp - 0x2c]
push 4
lea eax, [ebp - 0x50]
push eax
push 5
push ebx
call dword [ebp - 0x2c]
push 0
push 0
push 3
push 0
push 0
mov ax, word [edi + 0x18]
push eax
mov eax, dword [edi + 0x10]
push eax
push ebx
call dword [ebp - 0x14]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x418ad6
mov dword [ebp - 0x4c], 0x84003300
lea eax, [ebp - 0x10f30]
mov edx, dword [edi + 4]
call fcn.004036dc
mov edx, dword [ebp - 0x10f30]
mov eax, 0x418cb4
call fcn.00403a78
test eax, eax
je 0x418a04
or dword [ebp - 0x4c], 0x800000
push 0
mov eax, dword [ebp - 0x4c]
push eax
push 0
push 0
push 0
mov eax, dword [edi + 0x2c]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403990
push eax
mov eax, dword [ebp - 0x3c]
push eax
call dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x418ad0
cmp byte [ebp - 0x45], 0
je 0x418a55
push 0xa0000000
mov eax, dword [ebp - 0x54]
call fcn.00403790
push eax
mov eax, dword [ebp - 0x54]
call fcn.00403990
push eax
mov eax, dword [ebp - 0x40]
push eax
call dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.00403790
push eax
mov eax, dword [ebp - 8]
call fcn.00403990
push eax
push 0
push 0x418cb8
mov eax, dword [ebp - 0x40]
push eax
call dword [ebp - 0x20]
test eax, eax
je 0x418ad0
lea eax, [ebp - 0x10f20]
mov edx, 0x10064
call fcn.00404f00
lea eax, [ebp - 0x38]
push eax
push 0x10064
lea eax, [ebp - 0x10f20]
push eax
mov eax, dword [ebp - 0x40]
push eax
call dword [ebp - 0x24]
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0x10f20]
lea eax, [ebp - 0x5c]
mov ecx, dword [ebp - 0x38]
call fcn.004035d4
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 0x5c]
call fcn.00403798
cmp dword [ebp - 0x44], 1
sbb eax, eax
inc eax
test al, al
je 0x418ad0
cmp dword [ebp - 0x38], 0
jne 0x418a79
mov eax, dword [ebp - 0x40]
push eax
call esi
mov eax, dword [ebp - 0x3c]
push eax
call esi
push ebx
call esi
cmp dword [ebp - 0x58], 0
jne 0x418b28
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebp - 8]
push eax
mov ax, word [edi + 0x18]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x10f34]
mov edx, dword [edi + 0x2c]
call fcn.004036dc
mov eax, dword [ebp - 0x10f34]
push eax
lea eax, [ebp - 0x10f38]
mov edx, dword [edi + 0x10]
call fcn.004036dc
mov eax, dword [ebp - 0x10f38]
mov ecx, dword [ebp - 0xc]
pop edx
call fcn.00418124
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x58]
call fcn.00403538
lea eax, [ebp - 0x58]
call fcn.004034e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418b87
lea eax, [ebp - 0x10f38]
mov edx, 6
call fcn.00403508
lea eax, [ebp - 0x60]
mov edx, 4
call fcn.00403508
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00403508
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403508
ret