Function at 0x417d84
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x21e7
push 0
push 0
dec ecx
jne 0x417d8d
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 0x418292
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
jne 0x417de2
lea eax, [ebp - 0xc]
mov edx, 0x4182ac
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, 0x4182bc
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 0x417e2a
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.00404f5c
lea eax, [ebp - 0x180]
mov edx, pe_nt_image_headers32
call fcn.00404f5c
lea eax, [ebp - 0x200]
mov edx, 0x80
call fcn.00404f5c
lea eax, [ebp - 0x280]
mov edx, 0x80
call fcn.00404f5c
lea eax, [ebp - 0xa80]
mov edx, 0x800
call fcn.00404f5c
lea eax, [ebp - 0xe80]
mov edx, 0x400
call fcn.00404f5c
mov eax, edi
mov edx, 0x3c
call fcn.00404f5c
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, 0x418374
call fcn.00403ad4
test eax, eax
je 0x418052
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, 0x418384
call fcn.004037dc
lea edx, [ebp - 0x10f2c]
mov eax, dword [ebp - 0x60]
call fcn.00417668
mov eax, dword [ebp - 0x10f2c]
call fcn.00403990
mov dword [edi + 0x10], eax
push 0
push 0
push 0
push 0
push 0x41838c
call dword [ebp - 0x10]
mov ebx, eax
test ebx, ebx
je 0x4181b7
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 0x4181b1
mov dword [ebp - 0x4c], 0x84003300
lea eax, [ebp - 0x10f30]
mov edx, dword [edi + 4]
call fcn.004036dc
mov edx, dword [ebp - 0x10f30]
mov eax, 0x4183c8
call fcn.00403ad4
test eax, eax
je 0x4180df
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 0x4181ab
cmp byte [ebp - 0x45], 0
je 0x418130
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 0x4183cc
mov eax, dword [ebp - 0x40]
push eax
call dword [ebp - 0x20]
test eax, eax
je 0x4181ab
lea eax, [ebp - 0x10f20]
mov edx, 0x10064
call fcn.00404f5c
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 0x4181ab
cmp dword [ebp - 0x38], 0
jne 0x418154
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 0x418203
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.00417820
mov eax, dword [ebp - 0xc]
mov edx, 0x4182ac
call fcn.004038dc
jne 0x41823a
lea edx, [ebp - 0x10f3c]
mov eax, dword [ebp - 0x60]
call fcn.0040627c
mov eax, dword [ebp - 0x10f3c]
mov edx, 0x4183d8
call fcn.004038dc
jmp 0x41823a
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 0x418299
lea eax, [ebp - 0x10f3c]
mov edx, 7
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