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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x490
test ecx, ecx
je 0x408a87
mov edi, edx
mov esi, ecx
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov ecx, 0xfffffffe
test edi, edi
je 0x408de6
mov dword [esp + 4], edx
mov dword [esp + 0x18], eax
push edi
call fcn.00415c60
add esp, 4
test eax, eax
je 0x408a91
mov ebx, eax
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x408957
push eax
call fcn.0041568c
add esp, 4
mov dword [esi + 0x5c], 0
lea eax, [ebx + 1]
push 1
push eax
call fcn.004151c3
add esp, 8
test eax, eax
je 0x408a9b
xor ecx, ecx
jmp 0x40898a
mov dl, 0x2f
mov byte [eax + ecx], dl
inc ecx
cmp ebx, ecx
je 0x408997
movzx edx, byte [edi + ecx]
cmp dl, 0x5c
je 0x408980
test dl, dl
jne 0x408982
mov dword [esi + 0x5c], eax
mov edx, dword [esi + 0x14]
cmp edx, 1
jne 0x408aac
xor ecx, ecx
cmp dword [ebp + 8], 0
setne cl
shl ecx, 8
lea edi, [esp + 0x30]
push edi
push ecx
push 0
push eax
push esi
call fcn.00407170
add esp, 0x14
xor ebx, ebx
cmp eax, 1
mov edx, 0
sbb edx, edx
or edx, dword [esp + 0x30]
mov dword [esi + 0x58], edx
mov ecx, 0xfffffffd
js 0x408dcb
mov eax, dword [esi + 0x48]
test eax, eax
je 0x4089f6
cmp dword [esi + 0x10], edx
jbe 0x4089f6
mov ebx, dword [eax]
mov eax, dword [eax + 0x10]
add ebx, dword [eax + edx*4]
mov ecx, esi
push 0
push edi
push ebx
call fcn.004075f0
add esp, 0xc
test eax, eax
mov ecx, 0xfffffffd
je 0x408dcb
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x68], eax
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], eax
mov eax, dword [esp + 0x50]
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov dword [esi + 0xa4], ecx
mov dword [esi + 0xa0], eax
movzx eax, word [esp + 0x46]
mov word [esi + 0xa8], ax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x6c]
mov dword [esi + 0x4e008], ecx
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x4e014], eax
mov dword [esi + 0x4e010], ecx
xor ecx, ecx
jmp 0x408de6
mov ecx, 0xffffffff
jmp 0x408de6
mov ecx, 0xfffffffe
jmp 0x408de6
mov dword [esi + 0x5c], 0
mov ecx, 0xfffffffe
jmp 0x408de6
mov eax, dword [esi + 0x50]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x58], eax
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [esi + 0x7c], eax
mov dword [esi + 0x78], ecx
mov dword [esp + 0x14], eax
mov dword [esi + 0xa4], eax
mov dword [esp + 0xc], ecx
mov dword [esi + 0xa0], ecx
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0x98], 0
mov word [esi + 0x9c], 0
mov eax, dword [esi + 0x20]
mov dword [esp + 8], 0
mov edi, eax
sub edi, 1
mov ecx, dword [esi + 0x24]
sbb ecx, 0
jb 0x408b70
mov ecx, edi
and ecx, dword [esp + 0xc]
sub eax, ecx
and eax, edi
mov dword [esp + 8], eax
xor eax, eax
mov edi, dword [esp + 0x10]
and edi, 0xf
setne al
shl eax, 3
mov word [esi + 0xa8], ax
mov dword [esi + 0x4e008], 0
cmp dword [esi + 0x48], 0
mov ecx, 0xfffffffc
je 0x408dcb
cmp edx, 2
jne 0x408dcb
mov ecx, 0xfffffffb
test dword [esp + 0x10], 0x400
jne 0x408dcb
mov ecx, esi
mov edx, dword [esp + 0xc]
push dword [esp + 8]
push dword [esp + 0x18]
call fcn.00407dc0
add esp, 8
mov ecx, 0xfffffff9
test eax, eax
je 0x408dcb
mov dword [esp + 0x10], edi
lea eax, [esi + 0x80]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 4]
add eax, dword [esp + 8]
mov dword [esp + 4], eax
mov edi, dword [esp + 0x18]
adc edi, 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
push 0
call fcn.0041509a
add esp, 4
mov dword [esi + 0x4e014], edx
mov dword [esi + 0x4e010], eax
mov ecx, eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x22]
push eax
call fcn.00407d40
add esp, 8
xor eax, eax
mov ecx, 0xfffffffe
cmp ecx, dword [esp + 4]
mov ecx, 0
sbb ecx, edi
jae 0x408c49
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
xor edx, edx
push eax
push 0
call fcn.00407e60
add esp, 8
movzx ecx, word [esp + 0x1c]
mov dword [esp + 0x18], ecx
movzx ecx, word [esp + 0x1e]
mov dword [esp + 0x14], ecx
movzx ecx, word [esi + 0xa8]
mov dword [esp + 4], ecx
mov dword [esp + 0x2c], eax
movzx eax, ax
movzx edx, bx
mov edi, dword [esp + 0xc]
mov ecx, edi
push dword [esp + 0x18]
push dword [esp + 0x18]
push 0x808
push dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0
push eax
call fcn.00407ed0
add esp, 0x28
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x78]
add edx, dword [esp + 8]
adc ecx, 0
mov dword [esi + 0xa0], edx
mov dword [esi + 0xa4], ecx
push 0x1e
push edi
push ecx
push edx
push eax
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
mov ecx, 0xfffffff9
mov edi, dword [esp + 0x10]
jne 0x408dcb
mov ecx, dword [esp + 8]
add ecx, 0x1e
mov eax, dword [esi + 0x7c]
add ecx, dword [esi + 0x78]
adc eax, 0
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], eax
push ebx
push dword [esi + 0x5c]
push eax
push ecx
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
mov ecx, 0xfffffff8
cmp eax, ebx
jne 0x408dcb
mov eax, dword [esi + 0x44]
mov dword [esp + 4], eax
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x78]
add edx, ebx
adc ecx, 0
mov dword [esi + 0x78], edx
mov dword [esi + 0x7c], ecx
mov ebx, dword [esp + 0x2c]
push ebx
lea eax, [esp + 0x34]
push eax
push ecx
push edx
push dword [esp + 0x14]
call dword [esi + 0x3c]
mov ecx, 0xfffffff8
add esp, 0x14
cmp eax, ebx
jne 0x408dcb
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x78]
add edx, ebx
adc ecx, 0
mov dword [esi + 0x78], edx
mov dword [esi + 0x7c], ecx
test edi, edi
je 0x408df0
lea eax, [esi + 0xb0]
mov dword [esi + 0xb0], esi
mov dword [esi + 0xb8], edx
mov dword [esi + 0xbc], ecx
mov dword [esi + 0xc4], 0
mov dword [esi + 0xc0], 0
mov ecx, edi
cmp edi, 0xa
jl 0x408d9f
mov ecx, 0xa
xor edx, edx
cmp edi, 4
setb dl
shl edx, 0xe
or edx, dword [ecx*4 + 0x99204]
add esi, 0xc8
push edx
push eax
push 0x773b0
push esi
call fcn.00404b30
add esp, 0x10
xor ecx, ecx
jmp 0x408de6
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x408de6
push eax
mov edi, ecx
call fcn.0041568c
mov ecx, edi
add esp, 4
mov dword [esi + 0x5c], 0
mov eax, ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor ecx, ecx
jmp 0x408de6