Function at 0x418aa0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa94
push ebx
push esi
xor ebx, ebx
push edi
push 0x100
lea eax, [ebp - 0x148]
push ebx
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x14c], ebx
call sub.MSVCR80.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
cmp dword [0x44d18c], ebx
mov ecx, 0xb3
lea edi, [ebp - 0xa94]
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 1], bl
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
jne 0x418b25
push ebx
call fcn.004188b0
add esp, 4
test al, al
jne 0x418b25
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x43a9e0
call fcn.00406ce0
add esp, 8
jmp 0x418ffc
mov ecx, dword [0x44b4a0]
mov edx, dword [0x44d18c]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ecx
push edx
call esi
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x418fef
mov eax, dword [0x44b4a4]
mov ecx, dword [0x44d18c]
push eax
push ecx
call esi
cmp eax, ebx
mov dword [ebp - 0x3c], eax
je 0x418fef
mov edx, dword [0x44b4a8]
mov eax, dword [0x44d18c]
push edx
push eax
call esi
cmp eax, ebx
mov dword [ebp - 0x40], eax
je 0x418fef
mov ecx, dword [0x44b4ac]
mov edx, dword [0x44d18c]
push ecx
push edx
call esi
cmp eax, ebx
mov dword [ebp - 0x38], eax
je 0x418fef
mov eax, dword [0x44b4b4]
mov ecx, dword [0x44d18c]
push eax
push ecx
call esi
cmp eax, ebx
mov dword [ebp - 0x30], eax
je 0x418fef
mov edx, dword [0x44b4b8]
mov eax, dword [0x44d18c]
push edx
push eax
call esi
cmp eax, ebx
mov dword [ebp - 0x44], eax
je 0x418fef
mov ecx, dword [0x44b4bc]
mov edx, dword [0x44d18c]
push ecx
push edx
call esi
test eax, eax
je 0x418fef
mov eax, dword [0x44b4c0]
mov ecx, dword [0x44d18c]
push eax
push ecx
call esi
test eax, eax
je 0x418fef
mov edx, dword [0x44b4c4]
mov eax, dword [0x44d18c]
push edx
push eax
call esi
cmp eax, ebx
mov dword [ebp - 0x48], eax
je 0x418fef
mov ecx, dword [0x44b4b0]
mov edx, dword [0x44d18c]
push ecx
push edx
call esi
cmp eax, ebx
mov dword [ebp - 0x24], eax
jne 0x418c43
mov eax, dword [0x44b4c8]
mov ecx, dword [0x44d18c]
push eax
push ecx
call esi
cmp eax, ebx
mov dword [ebp - 0x34], eax
je 0x418fef
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xb8]
mov ecx, dword [eax + 0xc4]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x150], edx
mov edx, dword [eax + 0xb4]
mov eax, 3
push 0x43a9b8
push esi
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x124], eax
call dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14c]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x150]
lea edx, [ebp - 8]
push edx
push eax
push ecx
lea eax, [ebp - 0x20]
call fcn.004186d0
add esp, 0x1c
test al, al
jne 0x418cd2
push 0x43a994
jmp 0x418ff4
mov edi, dword [ebp - 8]
push edi
call fcn.00403630
push eax
push 0x43a980
push esi
call dword [ebp + 0xc]
add esp, 0x10
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0xc]
test eax, eax
jne 0x418d11
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x43a960
call fcn.00406ce0
add esp, 8
jmp 0x418ffc
mov byte [ebp - 1], 1
mov dword [ebp - 0x10], ebx
jmp 0x418d22
xor ebx, ebx
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x40]
push ebx
push edx
push eax
push ebx
lea ecx, [ebp - 0xa94]
push ecx
lea edx, [ebp - 0x150]
push edx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push 0x14c
call dword [ebp - 0x3c]
test eax, eax
je 0x418fcd
mov ecx, dword [ebp - 0x130]
mov eax, ecx
or eax, dword [ebp - 0x12c]
je 0x418fcd
mov eax, dword [ebp - 0x150]
mov edx, eax
or edx, dword [ebp - 0x14c]
je 0x418fcd
mov edx, dword [ebp - 0xdc]
push edx
mov edx, dword [ebp - 0xe0]
push edx
mov edx, dword [ebp - 0xe4]
push edx
mov edx, dword [ebp - 0xe8]
push edx
mov edx, dword [ebp - 0xec]
push edx
mov edx, dword [ebp - 0xf0]
push edx
mov edx, dword [ebp - 0xf4]
push edx
mov edx, dword [ebp - 0xf8]
push edx
mov edx, dword [ebp - 0x14c]
push edx
push eax
mov eax, dword [ebp - 0x12c]
push eax
push ecx
mov ecx, dword [ebp - 0x10]
push ecx
push 0x43a910
push esi
call dword [ebp + 0xc]
push edi
call fcn.00419830
add esp, 0x40
lea edx, [ebp - 0x18]
push edx
mov edx, dword [ebp - 0x14c]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x150]
lea ecx, [ebp - 8]
push ecx
push edx
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 8], ebx
call fcn.004186d0
mov edi, dword [ebp - 8]
add esp, 0x14
test al, al
je 0x418ea2
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
push ecx
push edx
push ebx
push eax
push edi
call fcn.00403630
add esp, 4
push eax
push 0x43a8e8
push esi
call dword [ebp + 0xc]
push 1
push edi
call fcn.00403a60
push 0
lea ecx, [ebp - 0xc]
push ecx
push edi
mov esi, eax
call fcn.00405f20
mov edx, dword [ebp - 0xc]
push 1
push edx
call fcn.00403a60
mov edi, eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.00419830
add esp, 0x3c
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x48]
mov ecx, dword [ebp - 0x20]
push 0
push 0
push 0
push ebx
push ecx
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x44]
mov ebx, dword [sym.imp.MSVCR80.dll_free]
push edi
call ebx
push esi
call ebx
mov edi, dword [ebp - 8]
mov esi, dword [ebp + 0x10]
jmp 0x418eb1
push 0x43a8d4
push esi
call dword [ebp + 0xc]
mov ebx, dword [sym.imp.MSVCR80.dll_free]
add esp, 8
cmp dword [ebp - 0x24], 0
je 0x418f1f
push 0x457
lea edx, [ebp - 0x7c7]
push 0
push edx
call sub.MSVCR80.dll_memset
mov edx, dword [ebp - 0x14c]
add esp, 0xc
lea eax, [ebp - 0x7c8]
push eax
mov eax, dword [ebp - 0x150]
lea ecx, [ebp - 0x2c]
push ecx
push edx
push eax
mov dword [ebp - 0x7c8], 0x58
mov dword [ebp - 0x778], 0x200
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x24]
test eax, eax
je 0x418fa8
lea ecx, [ebp - 0x774]
call fcn.00418680
mov dword [ebp + 8], eax
jmp 0x418f87
push 0x21f
lea ecx, [ebp - 0x36f]
push 0
push ecx
call sub.MSVCR80.dll_memset
mov ecx, dword [ebp - 0x14c]
add esp, 0xc
lea edx, [ebp - 0x370]
push edx
mov edx, dword [ebp - 0x150]
lea eax, [ebp - 0x2c]
push eax
push ecx
push edx
mov dword [ebp - 0x370], 0x20
mov dword [ebp - 0x358], 0x200
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x34]
test eax, eax
je 0x418fa8
lea eax, [ebp - 0x354]
push eax
call dword [sym.imp.MSVCR80.dll__strdup]
add esp, 4
test eax, eax
je 0x418fdb
mov dword [ebp + 8], eax
test eax, eax
je 0x418fa8
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
push ecx
push edx
push eax
push 0x43a8c0
push esi
call dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push eax
call ebx
add esp, 0x18
jmp 0x418fbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x43a8a0
push esi
call dword [ebp + 0xc]
add esp, 0xc
mov eax, dword [ebp - 0x10]
add eax, 1
cmp eax, 0x20
mov dword [ebp - 0x10], eax
jb 0x418d20
push 0x43a884
push esi
call dword [ebp + 0xc]
add esp, 8
jmp 0x418ffc
push 0x1fb
push 0x43a848
push 0x42eddc
call fcn.00405580
push 0x43a808
call fcn.00406ce0
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
call fcn.00419830
add esp, 4
cmp byte [ebp - 1], 0
pop edi
pop esi
pop ebx
je 0x41901b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x30]
mov esp, ebp
pop ebp
ret