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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov esi, dword [ebp + 8]
test esi, esi
je 0x408ed4
xor ebx, ebx
cmp dword [esi + 0x14], 1
je 0x40907b
test byte [esi + 0x50], 0xf
je 0x408e8b
lea eax, [esi + 0xc8]
mov dword [esp + 0x28], 0
lea ecx, [esp + 0x28]
push 4
push 0
push 0
push ecx
push 0x429db8
push eax
call fcn.00404cd0
add esp, 0x18
mov ebx, 0xfffffff4
cmp eax, 1
ja 0x40907b
mov eax, dword [esi + 0xc0]
mov ecx, dword [esi + 0xc4]
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0xb8]
mov ecx, dword [esi + 0xbc]
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x78], eax
mov word [esi + 0xa8], 8
push dword [esi + 0x5c]
call fcn.00415c60
add esp, 4
mov edi, eax
mov eax, dword [esi + 0x4e010]
mov ecx, dword [esi + 0x4e014]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
lea ebx, [esp + 0x10]
lea eax, [esp + 0x28]
push ebx
push eax
call fcn.004146d7
add esp, 8
test eax, eax
je 0x408ede
mov dword [esp + 8], 0
mov dword [esp + 4], 0
jmp 0x408f1a
mov ebx, 0xffffffff
jmp 0x4090a6
mov eax, dword [esp + 0x30]
shl eax, 0xb
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
shl ecx, 5
add ecx, eax
shr edx, 1
add edx, ecx
mov dword [esp + 8], edx
mov eax, dword [esp + 0x3c]
shl eax, 9
mov ecx, dword [esp + 0x38]
shl ecx, 5
mov edx, dword [esp + 0x34]
add ecx, eax
lea eax, [edx + ecx]
add eax, 0x6020
mov dword [esp + 4], eax
mov dword [esp + 0x10], 0x8074b50
mov eax, dword [esi + 0x70]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x64]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
push 0x18
push ebx
push dword [esi + 0x7c]
push dword [esi + 0x78]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
mov ebx, 0xfffffff2
cmp eax, 0x18
jne 0x40907b
add dword [esi + 0x78], 0x18
adc dword [esi + 0x7c], 0
xor ecx, ecx
mov edx, 0xfffffffe
cmp edx, dword [esi + 0xa0]
mov eax, 0
sbb eax, dword [esi + 0xa4]
jb 0x408f90
mov dword [esp], 0
jmp 0x408f99
lea eax, [esi + 0xa0]
mov dword [esp], eax
cmp edx, dword [esi + 0x68]
mov eax, 0
sbb eax, dword [esi + 0x6c]
jb 0x408faa
xor eax, eax
jmp 0x408fad
lea eax, [esi + 0x68]
cmp edx, dword [esi + 0x60]
lea ebx, [esi + 0x60]
sbb ecx, dword [esi + 0x64]
mov edx, ebx
jb 0x408fbc
xor edx, edx
lea ecx, [esp + 0x28]
push dword [esp]
push eax
call fcn.00407e60
add esp, 8
mov dword [esp + 0xc], eax
mov dword [esp], edi
mov edx, dword [esi + 0x5c]
and edi, 0xffff
je 0x408ff3
cmp byte [edi + edx - 1], 0x2f
jne 0x408ff3
mov ecx, dword [ebx]
or ecx, dword [ebx + 4]
jne 0x408ff3
or byte [esi + 0x4e008], 0x10
movzx eax, word [esi + 0xa8]
movzx edi, word [esp + 4]
movzx ebx, word [esp + 8]
movzx ecx, word [esp + 0xc]
mov dword [esp + 4], ecx
movzx ecx, word [esp]
mov dword [esp + 8], ecx
mov ecx, esi
push 0
push 0
push dword [esi + 0x4e008]
push dword [esi + 0xa4]
push dword [esi + 0xa0]
push edi
push ebx
push 0x808
push eax
push dword [esi + 0x70]
push dword [esi + 0x6c]
push dword [esi + 0x68]
push dword [esi + 0x64]
push dword [esi + 0x60]
push 0
push 0x429db8
push dword [esp + 0x44]
lea eax, [esp + 0x6c]
push eax
push dword [esp + 0x50]
call fcn.00408000
add esp, 0x4c
test eax, eax
je 0x409076
inc dword [esi + 0x10]
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x7c]
mov dword [esi + 4], ecx
mov dword [esi], eax
xor ebx, ebx
jmp 0x40907b
mov ebx, 0xfffffff1
mov dword [esi + 0x4e014], 0
mov dword [esi + 0x4e010], 0
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x4090a6
push eax
call fcn.0041568c
add esp, 4
mov dword [esi + 0x5c], 0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret