Function at 0x418ff4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47461d
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov edi, ecx
lea ebx, [edi + 0x8c]
call fcn.00406ab0
pop ecx
push eax
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.0040836a
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [edi + 0xa4], eax
cmp dword [edi + 0xac], esi
jne 0x419067
push 0x31c
call fcn.0043d630
pop ecx
test eax, eax
je 0x41905f
mov ecx, eax
call fcn.0040a13b
jmp 0x419061
mov eax, esi
mov dword [edi + 0xac], eax
cmp dword [edi + 0xa8], esi
jne 0x41909f
push 0x40
call fcn.0043d630
pop ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xb4], esi
test eax, eax
je 0x41908f
mov ecx, eax
call fcn.0040928a
jmp 0x419091
mov eax, esi
or dword [esp + 0xb4], 0xffffffff
mov dword [edi + 0xa8], eax
lea esi, [edi + 8]
push esi
lea ecx, [esp + 0x34]
call fcn.004074b1
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0xb8], 1
call fcn.004074b1
push ebx
lea ecx, [esp + 0x4c]
mov byte [esp + 0xb8], 2
call fcn.0040748b
mov byte [esp + 0xb4], 3
lea ecx, [esp + 0x14]
cmp dword [esp + 0x28], 0x10
lea edx, [esp + 0x14]
mov eax, dword [esp + 0x24]
cmovae ecx, dword [esp + 0x14]
cmovae edx, dword [esp + 0x14]
add eax, ecx
cmp dword [esp + 0x28], 0x10
lea ecx, [esp + 0x14]
push edx
cmovae ecx, dword [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00419c5f
add esp, 0xc
mov byte [esp + 0xc], 0x2d
xor ebx, ebx
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push 1
push ebx
push eax
call fcn.00419af1
mov esi, eax
lea ecx, [esp + 0x14]
push esi
push ebx
lea eax, [esp + 0x68]
push eax
call fcn.00416dc0
push eax
lea ecx, [esp + 0x18]
call fcn.00416d27
push ebx
push 1
lea ecx, [esp + 0x68]
call fcn.00408186
cmp esi, 0xffffffff
je 0x419186
push dword [esp + 0x40]
lea eax, [esi + 1]
push eax
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x3c]
call fcn.00416dc0
push eax
lea ecx, [esp + 0x4c]
call fcn.00416d27
push ebx
push 1
lea ecx, [esp + 0x68]
call fcn.00408186
mov ecx, dword [edi + 0x88]
lea eax, [esp + 0x78]
push eax
call fcn.00418b29
mov ebx, eax
lea eax, [esp + 0x90]
mov byte [esp + 0xb4], 4
mov ecx, dword [edi + 0x88]
push eax
call fcn.00418b46
mov esi, eax
lea eax, [esp + 0x60]
mov byte [esp + 0xb4], 5
mov ecx, dword [edi + 0x88]
push eax
call fcn.00418b0c
mov edx, eax
mov byte [esp + 0xb4], 6
lea eax, [esp + 0x30]
push 0x10
pop ecx
cmp dword [esp + 0x44], ecx
cmovae eax, dword [esp + 0x30]
cmp dword [esp + 0x5c], ecx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x48]
cmovae eax, dword [esp + 0x48]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x14], ecx
jb 0x419203
mov ebx, dword [ebx]
cmp dword [esi + 0x14], ecx
jb 0x41920a
mov esi, dword [esi]
cmp dword [edx + 0x14], ecx
jb 0x419211
mov edx, dword [edx]
push dword [esp + 0x2c]
mov ecx, dword [edi + 0xac]
push dword [esp + 0x14]
push ebx
mov eax, dword [ecx]
push esi
push edx
call dword [eax]
xor ebx, ebx
lea ecx, [esp + 0x60]
push ebx
push 1
call fcn.00408186
push ebx
push 1
lea ecx, [esp + 0x98]
call fcn.00408186
push ebx
push 1
lea ecx, [esp + 0x80]
mov byte [esp + 0xbc], 3
call fcn.00408186
mov ecx, dword [edi + 0x88]
lea eax, [esp + 0x78]
push eax
call fcn.00418b29
mov edx, eax
mov byte [esp + 0xb4], 7
lea esi, [esp + 0x48]
cmp dword [esp + 0x5c], 0x10
lea ebx, [esp + 0x30]
cmovae esi, dword [esp + 0x48]
cmp dword [esp + 0x44], 0x10
cmovae ebx, dword [esp + 0x30]
cmp dword [edx + 0x14], 0x10
jb 0x419298
mov edx, dword [edx]
mov ecx, dword [edi + 0xa8]
push 0
push dword [ebp + 0xc]
mov eax, dword [ecx]
push esi
push ebx
push edx
call dword [eax]
push 0
push 1
lea ecx, [esp + 0x80]
mov byte [esp + 0xbc], 3
call fcn.00408186
mov ebx, dword [ebp + 8]
xor esi, esi
mov eax, dword [ebx]
jmp 0x4192d9
push 0
push eax
mov ecx, edi
call fcn.00419327
inc esi
mov eax, dword [ebx + esi*4]
test eax, eax
jne 0x4192cb
mov ecx, dword [edi + 0xa8]
push 8
mov eax, dword [ecx]
call dword [eax + 0x44]
xor ebx, ebx
lea ecx, [esp + 0x48]
push ebx
push 1
call fcn.00408186
push ebx
push 1
lea ecx, [esp + 0x1c]
call fcn.00408186
push ebx
push 1
lea ecx, [esp + 0x38]
call fcn.00408186
mov ecx, dword [esp + 0xac]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc