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

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x18]
push edi
mov ecx, dword [esi + 0x3c]
mov ebp, dword [esi]
push eax
push ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 1
call fcn.00408290
mov edi, eax
add esp, 8
test edi, edi
jne 0x40a00f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
or edx, eax
je 0x40a00f
mov eax, dword [esi]
mov ebx, dword [esi + 0xa0]
mov edx, dword [esi + 0x3c]
mov ecx, dword [eax + 8]
inc ecx
push ecx
push ebx
push edx
call fcn.0040a0f0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x40a00f
cmp byte [ebx], 0
je 0x409eab
lea eax, [esp + 0x14]
push eax
push edi
push ebx
push ebp
call fcn.0040a0d0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x40a00f
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40a00f
mov ecx, dword [esp + 0x2c]
lea ebx, [esi + 0x48]
mov dword [esp + 0x18], ecx
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x2c]
lea edx, [esp + 0x10]
lea eax, [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
push ebp
push esi
call fcn.0040a260
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x409ffe
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
jne 0x409f2c
mov eax, dword [esi + 0x78]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
xor edx, edx
sub edi, eax
mov eax, dword [esi + 0x84]
sbb ecx, edx
add eax, 8
cdq
push edx
push eax
push ecx
push edi
call fcn.0044a870
mov dword [esp + 0x28], eax
test eax, eax
jne 0x409f6f
test ebp, ebp
jne 0x409f6f
mov ecx, dword [esi + 0x78]
mov edi, dword [ebx]
mov ebp, dword [ebx + 4]
xor edx, edx
add ecx, dword [esi + 0x50]
adc edx, dword [esi + 0x54]
cmp ecx, edi
jne 0x409f6f
cmp edx, ebp
jne 0x409f6f
mov eax, dword [esi + 0x84]
mov ecx, dword [esp + 0x1c]
add eax, 8
sub ecx, edi
mov edi, dword [esp + 0x20]
cdq
sbb edi, ebp
push edx
push eax
push edi
push ecx
call fcn.0044a870
mov dword [esp + 0x28], eax
mov ecx, dword [esi + 0x78]
mov edi, dword [ebx]
xor edx, edx
cmp edi, ecx
jne 0x409fa0
mov ecx, dword [ebx + 4]
cmp ecx, edx
jne 0x409fa0
mov edx, dword [esp + 0x10]
push edx
push esi
call fcn.00408da0
mov edi, eax
add esp, 8
test edi, edi
jne 0x40a00f
mov eax, dword [esp + 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x28]
xor ebp, ebp
test eax, eax
jbe 0x409ecf
mov eax, dword [esp + 0x18]
test eax, eax
je 0x409fc3
push esi
call fcn.004084a0
add esp, 4
mov dword [esp + 0x18], 0
push 0
push 1
push 0
push ebx
push esi
call fcn.0040a440
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x409fe7
mov eax, dword [esp + 0x28]
inc ebp
cmp ebp, eax
jb 0x409faa
jmp 0x409ecf
cmp edi, 0x65
jne 0x40a005
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [ebx], ecx
mov dword [ebx + 4], edx
jmp 0x409ecf
cmp edi, 0x65
jne 0x40a00f
jmp 0x40a00d
cmp edi, 0x20a
jne 0x40a00f
xor edi, edi
mov al, byte [esi + 0xb]
test edi, edi
mov byte [esi + 0x12], al
jne 0x40a0b9
mov ecx, dword [esi]
mov ebx, dword [esi + 0xa0]
mov eax, dword [esi + 0x3c]
mov edx, dword [ecx + 8]
inc edx
push edx
push ebx
push eax
call fcn.0040a0f0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x40a0b9
mov al, byte [esi + 8]
test al, al
jne 0x40a05e
cmp byte [esi + 0xe], 4
jb 0x40a05e
mov edx, dword [esi + 0x38]
xor ecx, ecx
mov cl, byte [esi + 0xa]
push ecx
push edx
call fcn.004086f0
add esp, 8
mov edi, eax
test edi, edi
jne 0x40a0b9
mov al, byte [esi + 8]
test al, al
jne 0x40a087
cmp byte [esi + 0xe], 4
jb 0x40a087
mov ecx, dword [esi + 0x38]
xor eax, eax
mov al, byte [esi + 0xa]
push eax
push ecx
call fcn.004086f0
mov edi, eax
add esp, 8
test edi, edi
jne 0x40a0b9
mov al, byte [ebx]
xor edx, edx
test al, al
setne dl
push edx
push esi
call fcn.00409b90
mov edi, eax
add esp, 8
test edi, edi
jne 0x40a0b9
cmp byte [ebx], 0
je 0x40a0b9
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40a0b9
push ebx
push esi
call fcn.0040a780
add esp, 8
mov edi, eax
push esi
call fcn.0040a990
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret