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

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
mov esi, eax
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x24]
push edi
mov edi, dword [ecx]
push 0
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edi
call fcn.00427045
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jae 0x409b8d
inc eax
mov dword [edi + 4], eax
lea ecx, [esp + 0x24]
call fcn.0042706d
lea edx, [esp + 0x20]
push edx
call fcn.0040c360
add esp, 4
mov ebp, eax
push 0
lea ecx, [esp + 0x24]
mov dword [esp + 0x34], ebp
call fcn.00427045
mov eax, dword [edi + 4]
test eax, eax
jbe 0x409bc4
cmp eax, 0xffffffff
jae 0x409bc4
dec eax
mov dword [edi + 4], eax
mov ebx, dword [edi + 4]
neg ebx
sbb ebx, ebx
not ebx
lea ecx, [esp + 0x20]
and ebx, edi
call fcn.0042706d
xor edi, edi
cmp ebx, edi
je 0x409be8
mov eax, dword [ebx]
mov edx, dword [eax]
push 1
mov ecx, ebx
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0xc]
lea ecx, [esp + 0x54]
push ecx
mov ecx, ebp
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, ebp
call edx
mov byte [esp + 0x17], al
mov al, byte [esi]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], edi
mov byte [esp + 0x3c], 0
cmp al, 0x2b
je 0x409c24
mov dword [esp + 0x20], edi
cmp al, 0x2d
jne 0x409c2c
mov dword [esp + 0x20], 1
call fcn.00428757
mov eax, dword [eax]
mov ebp, dword [esp + 0x8c]
mov cl, byte [eax]
push ebp
push 0x65
push esi
mov byte [esp + 0x24], cl
mov byte [esp + 0x25], 0x65
mov byte [esp + 0x26], 0
call fcn.004283c0
movsx edx, byte [esp + 0x24]
add esp, 0xc
push ebp
push edx
mov edi, eax
push esi
mov dword [esp + 0x28], edi
call fcn.004283c0
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x28], ebx
test ebx, ebx
jne 0x409c7d
mov dword [esp + 0x88], eax
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x58]
mov eax, edx
cmp ecx, 0x10
jae 0x409c90
lea eax, [esp + 0x58]
cmp byte [eax], 0x7f
je 0x409dec
mov eax, edx
cmp ecx, 0x10
jae 0x409ca4
lea eax, [esp + 0x58]
cmp byte [eax], 0
jle 0x409dec
push ebp
push esi
lea eax, [esp + 0x40]
call fcn.00403660
test edi, edi
jne 0x409cd7
mov eax, dword [esp + 0x88]
push 0x30
lea edi, [esp + 0x3c]
call fcn.00407dd0
mov ebx, dword [esp + 0x80]
jmp 0x409d11
test ebx, ebx
jne 0x409cf3
mov eax, dword [esp + 0x80]
push 0x30
lea edi, [esp + 0x3c]
call fcn.00407dd0
mov edi, dword [esp + 0x1c]
jmp 0x409cfa
mov ebx, dword [esp + 0x80]
mov eax, dword [esp + 0x88]
push 0x30
push eax
mov eax, edi
sub eax, esi
lea edi, [esp + 0x40]
call fcn.0040b6c0
mov ebp, dword [esp + 0x28]
push 0x30
lea edi, [esp + 0x3c]
test ebp, ebp
jne 0x409d28
mov eax, ebx
call fcn.00407dd0
jmp 0x409d53
mov ecx, dword [esp + 0x88]
sub ebp, esi
push ecx
lea eax, [ebp + 1]
call fcn.0040b6c0
push 0x30
push ebx
mov eax, ebp
lea edi, [esp + 0x40]
call fcn.0040b6c0
mov dword [esp + 0x84], 0
mov ebp, dword [esp + 0x58]
mov ebx, 0x10
mov dword [esp + 0x80], 0
cmp dword [esp + 0x6c], ebx
jae 0x409d71
lea ebp, [esp + 0x58]
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], ebx
jae 0x409d7f
lea eax, [esp + 0x3c]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.00428c20
mov esi, eax
mov al, byte [ebp]
add esp, 8
cmp al, 0x7f
je 0x409dc6
test al, al
jle 0x409dc6
mov ecx, esi
sub ecx, dword [esp + 0x20]
movsx eax, al
cmp eax, ecx
jae 0x409dc6
sub esi, eax
push 0
push 1
mov eax, esi
lea edi, [esp + 0x40]
call fcn.0040b6c0
cmp byte [ebp + 1], 0
jle 0x409dbf
inc ebp
mov al, byte [ebp]
cmp al, 0x7f
jne 0x409d96
mov esi, dword [esp + 0x3c]
cmp dword [esp + 0x50], ebx
jae 0x409dd4
lea esi, [esp + 0x3c]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], edx
mov ebp, edx
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x78]
add eax, ecx
add eax, dword [esp + 0x88]
mov ecx, dword [edx + 0x18]
add eax, ebp
test ecx, ecx
jle 0x409e1e
cmp ecx, eax
jbe 0x409e1e
sub ecx, eax
mov edi, ecx
mov dword [esp + 0x1c], edi
jmp 0x409e2a
mov dword [esp + 0x1c], 0
mov edi, dword [esp + 0x1c]
mov eax, dword [edx + 0x10]
and eax, 0x1c0
cmp eax, 0x40
je 0x409ef7
cmp eax, 0x100
je 0x409e76
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x90]
mov bl, byte [esp + 0x7c]
push edx
push eax
mov eax, edi
lea edi, [esp + 0x30]
call fcn.0040a510
mov ecx, dword [eax]
mov dword [esp + 0x98], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x9c], edx
jmp 0x409eec
cmp dword [esp + 0x20], 0
jbe 0x409eba
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
push 1
push eax
push ecx
lea edx, [esp + 0x34]
push edx
mov eax, esi
call fcn.0040a4a0
mov ecx, dword [eax]
add esp, 0x10
mov dword [esp + 0x90], ecx
mov edx, dword [eax + 4]
inc esi
dec ebp
mov dword [esp + 0x94], edx
mov dword [esp + 0x8c], ebp
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
mov bl, byte [esp + 0x7c]
push eax
mov eax, edi
push ecx
lea edi, [esp + 0x30]
call fcn.0040a510
mov edx, dword [eax]
mov dword [esp + 0x98], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x9c], eax
mov dword [esp + 0x24], 0
add esp, 8
movsx ecx, byte [esp + 0x18]
push ebp
push ecx
push esi
call fcn.004283c0
add esp, 0xc
test eax, eax
je 0x409ff9
mov edx, dword [esp + 0x94]
sub eax, esi
inc eax
push edx
mov ebp, eax
mov eax, dword [esp + 0x94]
push eax
mov al, byte [esp + 0x1f]
lea ecx, [ebp - 1]
push ecx
lea edx, [esp + 0x34]
push esi
push edx
call fcn.0040b860
mov ecx, dword [eax]
mov dword [esp + 0xa4], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xa8], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [esp + 0x94]
add esp, 0x14
push ecx
push edx
mov bl, 0x30
lea edi, [esp + 0x30]
call fcn.0040a510
mov ecx, dword [eax]
mov dword [esp + 0x98], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x9c], edx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
add esp, 8
call edx
mov ecx, dword [esp + 0x90]
mov bl, al
mov eax, dword [esp + 0x94]
push eax
push ecx
mov eax, 1
lea edi, [esp + 0x38]
call fcn.0040a510
mov edx, dword [eax]
mov dword [esp + 0x98], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x9c], ecx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
mov eax, dword [esp + 0x94]
mov bl, 0x30
lea edi, [esp + 0x40]
call fcn.0040a510
mov ecx, dword [eax]
add esi, ebp
add esp, 0x10
sub dword [esp + 0x8c], ebp
mov ebp, dword [esp + 0x8c]
mov dword [esp + 0x90], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x94], edx
push ebp
push 0x65
push esi
call fcn.004283c0
add esp, 0xc
test eax, eax
je 0x40a0d7
mov ecx, dword [esp + 0x90]
sub eax, esi
inc eax
mov ebp, eax
mov eax, dword [esp + 0x94]
push eax
push ecx
lea edx, [ebp - 1]
push edx
lea eax, [esp + 0x3c]
push esi
push eax
mov al, byte [esp + 0x2b]
call fcn.0040b860
mov ecx, dword [eax]
mov dword [esp + 0xa4], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xa8], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [esp + 0x9c]
add esp, 0x14
push ecx
push edx
mov bl, 0x30
lea edi, [esp + 0x38]
call fcn.0040a510
mov ecx, dword [eax]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x80]
mov edx, dword [eax + 4]
add esp, 8
test byte [ecx + 0x10], 4
mov dword [esp + 0x94], edx
mov dword [esp + 0x88], 0
mov ecx, 0x45bce8
jne 0x40a09c
mov ecx, 0x45bcec
mov edx, dword [eax + 4]
mov eax, dword [eax]
push 1
push edx
push eax
lea edx, [esp + 0x3c]
push edx
mov eax, ecx
call fcn.0040a4a0
mov ecx, dword [eax]
add esi, ebp
add esp, 0x10
sub dword [esp + 0x8c], ebp
mov ebp, dword [esp + 0x8c]
mov dword [esp + 0x90], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x94], edx
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
push eax
mov al, byte [esp + 0x1b]
push ecx
push ebp
lea edx, [esp + 0x3c]
push esi
push edx
call fcn.0040b860
mov ecx, dword [eax]
mov dword [esp + 0xa4], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xa8], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [esp + 0x9c]
add esp, 0x14
push ecx
push edx
mov bl, 0x30
lea edi, [esp + 0x38]
call fcn.0040a510
mov ecx, dword [eax]
mov edx, dword [esp + 0x80]
mov bl, byte [esp + 0x84]
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x98], ecx
mov eax, dword [eax + 4]
push eax
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x28]
push ecx
mov dword [edx + 0x18], 0
call fcn.0040a510
mov esi, 0x10
add esp, 0x10
cmp dword [esp + 0x50], esi
jb 0x40a178
mov eax, dword [esp + 0x3c]
push eax
call fcn.00427d3a
add esp, 4
xor eax, eax
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], eax
mov byte [esp + 0x3c], al
cmp dword [esp + 0x6c], esi
jb 0x40a19d
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00427d3a
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret