Function at 0x403367
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x40a064]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 8], 0
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x418], eax
mov ebx, 0x80004005
je 0x40339c
xor esi, esi
jmp 0x403430
push 0x40129c
push eax
mov esi, 0x401160
lea eax, [ebp - 0x414]
push esi
push 0x104
push eax
call fcn.00403280
push 0x4012d0
push dword [ebp - 0x418]
lea eax, [ebp - 0x20c]
push esi
push 0x104
push eax
call fcn.00403280
add esp, 0x28
lea eax, [ebp - 0x414]
xor esi, esi
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x1100
mov dword [edi + 4], eax
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [edi], eax
test eax, eax
jne 0x40343f
push 0x4012b8
push dword [ebp - 0x418]
lea eax, [ebp - 0x20c]
push 0x401160
push 0x104
push eax
call fcn.00403280
add esp, 0x14
lea eax, [ebp - 0x20c]
push 0x1100
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [edi], eax
cmp dword [edi], 0
je 0x403581
push 0x40116c
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40117c
push dword [edi]
mov dword [edi + 0x124], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40118c
push dword [edi]
mov dword [edi + 0x228], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40119c
push dword [edi]
mov dword [edi + 0x128], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4011ac
push dword [edi]
mov dword [edi + 0xe8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4011bc
push dword [edi]
mov dword [edi + 0xf4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4011cc
push dword [edi]
mov dword [edi + 0x4c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4011e0
push dword [edi]
mov dword [edi + 0x1dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4011f8
push dword [edi]
mov dword [edi + 0x1e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401210
push dword [edi]
mov dword [edi + 0x64], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401224
push dword [edi]
mov dword [edi + 0x7c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40123c
push dword [edi]
mov dword [edi + 0x80], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401250
push dword [edi]
mov dword [edi + 0x9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401268
push dword [edi]
mov dword [edi + 0xa0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401278
push dword [edi]
mov dword [edi + 0x184], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401288
push dword [edi]
mov dword [edi + 0x140], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4011bc
push dword [edi]
mov dword [edi + 0xf0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0x4c], eax
jmp 0x403596
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x403596
movzx ebx, bx
or ebx, 0x80070000
cmp dword [edi], esi
je 0x4035a5
cmp dword [edi + 0x128], esi
je 0x4035a5
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
neg esi
pop edi
sbb esi, esi
xor ecx, ebp
not esi
and esi, ebx
mov eax, esi
pop esi
pop ebx
call fcn.004092a0
mov esp, ebp
pop ebp
ret 8