Function at 0x418124
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa30
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x5c0], ebx
mov dword [ebp - 0x5c4], ebx
mov dword [ebp - 0x5c8], ebx
mov dword [ebp - 0x5cc], ebx
mov dword [ebp - 0x5d0], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
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
mov eax, dword [ebp + 0x14]
call fcn.00403980
mov eax, dword [ebp + 0x10]
call fcn.00403980
xor eax, eax
push ebp
push 0x418535
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
mov edx, 0x41854c
call fcn.0040357c
lea eax, [ebp - 0x18]
call fcn.004039e8
push eax
call sub.kernel32.dll_GetModuleHandleA_1
mov ebx, eax
test ebx, ebx
jne 0x4181cb
lea eax, [ebp - 0x18]
call fcn.004039e8
push eax
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
lea eax, [ebp - 0x18]
call fcn.004039e8
add eax, 0xc
push eax
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [0x41c89c], eax
lea eax, [ebp - 0x18]
call fcn.004039e8
add eax, 0x17
push eax
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [0x41c8a0], eax
lea eax, [ebp - 0x18]
call fcn.004039e8
add eax, 0x25
push eax
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [0x41c8a4], eax
lea eax, [ebp - 0x18]
call fcn.004039e8
add eax, 0x2c
push eax
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [0x41c8a8], eax
lea eax, [ebp - 0x18]
call fcn.004039e8
add eax, 0x31
push eax
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [0x41c8ac], eax
lea eax, [ebp - 0x18]
call fcn.004039e8
add eax, 0x36
push eax
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [0x41c8b0], eax
lea eax, [ebp - 0x18]
call fcn.004039e8
add eax, 0x3c
push eax
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [0x41c8b4], eax
lea eax, [ebp - 0x18]
call fcn.004039e8
add eax, 0x44
push eax
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [0x41c8b8], eax
test ebx, ebx
je 0x4184e2
cmp dword [0x41c89c], 0
je 0x4184e2
cmp dword [0x41c8a0], 0
je 0x4184e2
cmp dword [0x41c8a4], 0
je 0x4184e2
cmp dword [0x41c8a8], 0
je 0x4184e2
cmp dword [0x41c8ac], 0
je 0x4184e2
cmp dword [0x41c8b0], 0
je 0x4184e2
cmp dword [0x41c8b4], 0
je 0x4184e2
cmp dword [0x41c8b8], 0
je 0x4184e2
lea eax, [ebp - 0x14]
call fcn.004034e4
lea eax, [ebp - 0x1ac]
push eax
mov dl, 2
mov al, 2
call fcn.00404ee4
push eax
call dword [0x41c89c]
test eax, eax
jne 0x4184e2
push 0
push 1
push 2
call dword [0x41c8a4]
mov esi, eax
cmp esi, 0xffffffff
je 0x4184e2
mov word [ebp - 0x1bc], 2
mov eax, dword [ebp - 4]
call fcn.00403990
push eax
call dword [0x41c8a0]
test eax, eax
je 0x4184e2
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1b8], eax
mov ax, word [ebp + 0xc]
push eax
call dword [0x41c8b0]
mov word [ebp - 0x1ba], ax
push 0x10
lea eax, [ebp - 0x1bc]
push eax
push esi
call dword [0x41c8b4]
test eax, eax
jne 0x4184e2
push dword [ebp - 0xc]
push 0x4185a8
push dword [ebp - 8]
push 0x4185b4
push 0x4185c8
push dword [ebp + 0x14]
push 0x4185d8
push 0x4185e4
push 0x418600
push 0x418618
push 0x4185d8
push 0x418654
lea eax, [ebp - 0x5c8]
mov edx, 0xc
call fcn.00403850
mov edx, dword [ebp - 0x5c8]
lea eax, [ebp - 0x5c4]
call fcn.00403d2c
push dword [ebp - 0x5c4]
mov eax, dword [ebp + 0x10]
call fcn.00403790
lea edx, [ebp - 0x5cc]
call fcn.00417d60
push dword [ebp - 0x5cc]
push 0x41866c
lea eax, [ebp - 0x5d0]
mov edx, dword [ebp + 0x10]
call fcn.00403d2c
push dword [ebp - 0x5d0]
lea eax, [ebp - 0x5c0]
mov edx, 4
call fcn.00403e1c
mov edx, dword [ebp - 0x5c0]
lea eax, [ebp - 0x10]
call fcn.0040377c
push 0
mov eax, dword [ebp - 0x10]
call fcn.00403790
push eax
lea eax, [ebp - 0x10]
call fcn.004039e8
push eax
push esi
call dword [0x41c8a8]
lea eax, [ebp - 0x14]
call fcn.004034e4
lea eax, [ebp - 0x1c]
call fcn.004034e4
lea eax, [ebp - 0x5bc]
xor ecx, ecx
mov edx, 0x400
call fcn.004028e0
push 0
push 0x400
lea eax, [ebp - 0x5bc]
push eax
push esi
call dword [0x41c8ac]
mov ebx, eax
lea edx, [ebp - 0x5bc]
lea eax, [ebp - 0x1c]
mov ecx, ebx
call fcn.004035d4
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
call fcn.00403798
test ebx, ebx
jg 0x418458
push esi
call dword [0x41c8b8]
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebp - 0x14]
mov eax, 0x418680
call fcn.00403a78
add eax, 4
push eax
mov eax, dword [ebp - 0x14]
call fcn.00403790
mov ecx, eax
mov eax, dword [ebp - 0x14]
pop edx
call fcn.004039f0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
call fcn.00403538
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41853c
lea eax, [ebp - 0x5d0]
mov edx, 2
call fcn.00403b98
lea eax, [ebp - 0x5c8]
call fcn.004034e4
lea eax, [ebp - 0x5c4]
mov edx, 2
call fcn.00403b98
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00403508
lea eax, [ebp + 0x10]
mov edx, 2
call fcn.00403508
ret