Function at 0x417820
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 0x417c31
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
mov edx, 0x417c48
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 0x4178c7
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 [0x41cb38], eax
lea eax, [ebp - 0x18]
call fcn.004039e8
add eax, 0x17
push eax
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [0x41cb3c], eax
lea eax, [ebp - 0x18]
call fcn.004039e8
add eax, 0x25
push eax
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [0x41cb40], eax
lea eax, [ebp - 0x18]
call fcn.004039e8
add eax, 0x2c
push eax
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [0x41cb44], eax
lea eax, [ebp - 0x18]
call fcn.004039e8
add eax, 0x31
push eax
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [0x41cb48], eax
lea eax, [ebp - 0x18]
call fcn.004039e8
add eax, 0x36
push eax
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [0x41cb4c], eax
lea eax, [ebp - 0x18]
call fcn.004039e8
add eax, 0x3c
push eax
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [0x41cb50], eax
lea eax, [ebp - 0x18]
call fcn.004039e8
add eax, 0x44
push eax
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [0x41cb54], eax
test ebx, ebx
je 0x417bde
cmp dword [0x41cb38], 0
je 0x417bde
cmp dword [0x41cb3c], 0
je 0x417bde
cmp dword [0x41cb40], 0
je 0x417bde
cmp dword [0x41cb44], 0
je 0x417bde
cmp dword [0x41cb48], 0
je 0x417bde
cmp dword [0x41cb4c], 0
je 0x417bde
cmp dword [0x41cb50], 0
je 0x417bde
cmp dword [0x41cb54], 0
je 0x417bde
lea eax, [ebp - 0x14]
call fcn.004034e4
lea eax, [ebp - 0x1ac]
push eax
mov dl, 2
mov al, 2
call fcn.00404f40
push eax
call dword [0x41cb38]
test eax, eax
jne 0x417bde
push 0
push 1
push 2
call dword [0x41cb40]
mov esi, eax
cmp esi, 0xffffffff
je 0x417bde
mov word [ebp - 0x1bc], 2
mov eax, dword [ebp - 4]
call fcn.00403990
push eax
call dword [0x41cb3c]
test eax, eax
je 0x417bde
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 [0x41cb4c]
mov word [ebp - 0x1ba], ax
push 0x10
lea eax, [ebp - 0x1bc]
push eax
push esi
call dword [0x41cb50]
test eax, eax
jne 0x417bde
push dword [ebp - 0xc]
push 0x417ca4
push dword [ebp - 8]
push 0x417cb0
push 0x417cc4
push dword [ebp + 0x14]
push 0x417cd4
push 0x417ce0
push 0x417cfc
push 0x417d14
push 0x417cd4
push 0x417d50
lea eax, [ebp - 0x5c8]
mov edx, 0xc
call fcn.00403850
mov edx, dword [ebp - 0x5c8]
lea eax, [ebp - 0x5c4]
call fcn.00403d88
push dword [ebp - 0x5c4]
mov eax, dword [ebp + 0x10]
call fcn.00403790
lea edx, [ebp - 0x5cc]
call fcn.0041745c
push dword [ebp - 0x5cc]
push 0x417d68
lea eax, [ebp - 0x5d0]
mov edx, dword [ebp + 0x10]
call fcn.00403d88
push dword [ebp - 0x5d0]
lea eax, [ebp - 0x5c0]
mov edx, 4
call fcn.00403e78
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 [0x41cb44]
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 [0x41cb48]
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 0x417b54
push esi
call dword [0x41cb54]
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebp - 0x14]
mov eax, 0x417d7c
call fcn.00403ad4
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 0x417c38
lea eax, [ebp - 0x5d0]
mov edx, 2
call fcn.00403bf4
lea eax, [ebp - 0x5c8]
call fcn.004034e4
lea eax, [ebp - 0x5c4]
mov edx, 2
call fcn.00403bf4
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00403508
lea eax, [ebp + 0x10]
mov edx, 2
call fcn.00403508
ret