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

Disassembly:
add byte [ebp - 0x75], dl
in al, dx
and esp, 0xfffffff8
sub esp, 0x64
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [esp + 0x38], ecx
push edi
mov eax, dword [ebx + 4]
mov esi, dword [eax]
mov ecx, esi
call fcn.00409997
mov eax, dword [esi + 8]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 4]
mov esi, dword [eax]
mov ecx, esi
call fcn.00409997
mov eax, dword [esi + 8]
mov edi, dword [eax + 4]
mov eax, dword [ebx + 4]
mov esi, dword [eax + 4]
mov ecx, esi
call fcn.00409997
mov eax, dword [esi + 8]
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 4]
mov esi, dword [eax + 4]
mov ecx, esi
call fcn.00409997
mov eax, dword [esi + 8]
lea ecx, [esp + 0x40]
push edi
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
call fcn.00407b76
mov eax, dword [ebp + 8]
xor ebx, ebx
xor esi, esi
mov edx, ebx
mov cl, bl
mov dword [esp + 0x34], edx
inc esi
mov byte [esp + 0x13], cl
cmp dword [eax + 8], 3
jb 0x4137d7
mov eax, dword [eax + 4]
mov ecx, dword [eax + 8]
call fcn.00409c9c
mov edx, eax
mov dword [esp + 0x34], edx
test dl, 2
je 0x4139d7
xor eax, eax
inc eax
mov cl, al
and edx, eax
mov byte [esp + 0x13], cl
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x44744e
mov ecx, edx
sub ecx, ebx
je 0x447501
dec ecx
jne 0x4139de
mov dword [esp + 0x1c], ebx
test edi, edi
jle 0x41385b
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov ecx, esi
push edi
mov dx, word [eax]
call fcn.0041fef6
mov edx, eax
mov dword [esp + 0x3c], edx
pop ecx
test edx, edx
je 0x4139c0
mov eax, dword [esp + 0x18]
mov ecx, edx
sub ecx, esi
sar ecx, 1
add ecx, eax
sub edi, ecx
js 0x4139c0
push eax
push dword [esp + 0x24]
push edx
call fcn.004238a2
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov esi, dword [esp + 0x38]
test eax, eax
jne 0x4474f6
inc dword [esp + 0x1c]
lea esi, [esi + ecx*2]
test edi, edi
jg 0x413800
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
mov esi, dword [eax]
mov ecx, esi
call fcn.00409997
mov eax, dword [esi + 8]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 4]
mov esi, dword [eax]
mov ecx, esi
call fcn.00409997
mov eax, dword [esi + 8]
mov esi, dword [esp + 0x1c]
mov edi, dword [eax + 4]
test esi, esi
jle 0x447629
mov ecx, dword [ebp + 0xc]
inc esi
mov dword [esp + 0x38], esi
call fcn.0040942e
cmp byte [esp + 0x13], 0
je 0x447549
push esi
xor esi, esi
mov dword [esp + 0x30], eax
inc esi
push esi
push eax
call fcn.004091b0
add esp, 0xc
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x40]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
call fcn.00407eec
cmp dword [esp + 0x38], 0
jle 0x4139ac
mov eax, dword [esp + 0x34]
sub eax, ebx
je 0x4475a9
dec eax
jne 0x41399e
mov eax, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x20]
push edi
mov dx, word [ecx]
mov ecx, eax
call fcn.0041fef6
mov edx, eax
mov dword [esp + 0x28], edx
pop ecx
test edx, edx
je 0x4139c7
mov eax, dword [esp + 0x18]
mov ecx, edx
sub ecx, dword [esp + 0x14]
sar ecx, 1
add ecx, eax
sub edi, ecx
js 0x4139e8
push eax
push dword [esp + 0x24]
push edx
call fcn.004238a2
add esp, 0xc
test eax, eax
jne 0x447592
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
mov eax, edx
sub eax, ecx
sar eax, 1
push eax
push ebx
push ecx
lea ecx, [esp + 0x4c]
call fcn.004078ad
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x54]
call fcn.004093ea
push dword [esp + 0x1c]
lea eax, [esp + 0x54]
push esi
push eax
push dword [esp + 0x38]
call fcn.00409040
add esp, 0x10
lea ecx, [esp + 0x50]
inc dword [esp + 0x1c]
call fcn.00409a20
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
inc dword [esp + 0x28]
lea eax, [ecx + eax*2]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x38]
jl 0x4138db
lea ecx, [esp + 0x40]
call fcn.00405a64
pop edi
pop esi
mov edi, ebx
jmp 0x413857
mov eax, dword [esp + 0x14]
lea edx, [eax + edi*2]
mov dword [esp + 0x24], edx
jmp 0x413944
mov cl, bl
jmp 0x4137d7
or dword [esp + 0x1c], 0xffffffff
jmp 0x447629
add eax, edi
lea edx, [edx + eax*2]
jmp 0x4139ce
xor eax, eax
test cl, cl
mov ecx, dword [ebp + 0xc]
sete al
mov dword [esp + 0x28], eax
call fcn.0040942e
mov ecx, dword [esp + 0x28]
add ecx, edi
mov dword [esp + 0x38], eax
push ecx
push esi
push eax
call fcn.004091b0
add esp, 0xc
cmp byte [esp + 0x13], bl
jne 0x4474a4
push ebx
push esi
lea eax, [esp + 0x58]
mov dword [esp + 0x58], edi
push eax
push dword [esp + 0x44]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], esi
call fcn.00409040
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.00409a20
test edi, edi
jle 0x4139ac
push esi
push ebx
push dword [esp + 0x1c]
lea ecx, [esp + 0x4c]
call fcn.004078ad
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x54]
call fcn.004093ea
push dword [esp + 0x28]
lea eax, [esp + 0x54]
push esi
push eax
push dword [esp + 0x44]
call fcn.00409040
add esp, 0x10
lea ecx, [esp + 0x50]
inc dword [esp + 0x28]
call fcn.00409a20
inc ebx
cmp ebx, edi
jl 0x4474ac
jmp 0x4139ac
dec ecx
add esi, 2
add edi, ecx
jmp 0x413857
mov esi, ebx
mov ecx, ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x38], ecx
test edi, edi
jle 0x447629
mov ebx, dword [esp + 0x14]
mov dx, word [ebx + ecx*2]
mov ecx, dword [esp + 0x20]
push eax
call fcn.0041fef6
pop ecx
test eax, eax
je 0x44752d
inc esi
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x38], ecx
cmp ecx, edi
jl 0x447519
mov dword [esp + 0x1c], esi
xor ebx, ebx
jmp 0x413889
mov ecx, eax
lea eax, [esi + 1]
push eax
xor esi, esi
mov dword [esp + 0x30], ecx
inc esi
push esi
push ecx
call fcn.004091b0
mov eax, dword [esp + 0x44]
push ebx
mov dword [esp + 0x60], eax
lea eax, [esp + 0x60]
push esi
push eax
push dword [esp + 0x44]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], esi
call fcn.00409040
add esp, 0x1c
lea ecx, [esp + 0x50]
call fcn.00409a20
mov dword [esp + 0x1c], esi
jmp 0x4138bf
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
add eax, 2
dec ecx
mov dword [esp + 0x14], eax
add edi, ecx
jmp 0x4138f6
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
push dword [esp + 0x18]
movzx eax, word [eax + ecx*2]
mov ecx, dword [esp + 0x24]
mov edx, eax
mov dword [esp + 0x40], eax
call fcn.0041fef6
pop ecx
test eax, eax
jne 0x4475e2
cmp dword [esp + 0x30], edi
je 0x4475e2
push dword [esp + 0x3c]
lea ecx, [esp + 0x44]
call fcn.00407a84
jmp 0x447620
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x64]
call fcn.004093ea
push dword [esp + 0x1c]
lea eax, [esp + 0x64]
push esi
push eax
push dword [esp + 0x38]
call fcn.00409040
add esp, 0x10
lea ecx, [esp + 0x60]
inc dword [esp + 0x1c]
call fcn.00409a20
lea ecx, [esp + 0x40]
call fcn.00407eec
inc dword [esp + 0x28]
inc dword [esp + 0x30]
jmp 0x41399e
mov ecx, dword [ebp + 0xc]
call fcn.0040942e
cmp byte [esp + 0x13], 0
mov edi, eax
je 0x44767e
xor eax, eax
inc eax
push eax
push eax
push edi
call fcn.004091b0
mov ecx, dword [ebp + 8]
add esp, 0xc
mov ecx, dword [ecx + 4]
mov esi, dword [ecx]
mov ecx, esi
call fcn.00409997
mov eax, dword [esi + 8]
lea ecx, [esp + 0x40]
push dword [eax + 4]
push ebx
push dword [esp + 0x1c]
call fcn.004078ad
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x64]
call fcn.004093ea
push ebx
push 1
jmp 0x4476e6
push 2
push 1
push edi
call fcn.004091b0
xor eax, eax
mov dword [esp + 0x64], ebx
inc eax
push ebx
push eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x70], eax
lea eax, [esp + 0x64]
push eax
push edi
call fcn.00409040
add esp, 0x1c
lea ecx, [esp + 0x50]
call fcn.00409a20
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
mov esi, dword [eax]
mov ecx, esi
call fcn.00409997
mov eax, dword [esi + 8]
lea ecx, [esp + 0x40]
push dword [eax + 4]
push ebx
push dword [esp + 0x1c]
call fcn.004078ad
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x64]
call fcn.004093ea
xor eax, eax
inc eax
push eax
push eax
lea eax, [esp + 0x68]
push eax
push edi
call fcn.00409040
add esp, 0x10
lea ecx, [esp + 0x60]
call fcn.00409a20
mov edx, dword [esp + 0x3c]
xor eax, eax
inc eax
sub eax, dword [esp + 0x1c]
push ebx
push eax
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
call fcn.00456aa3
jmp 0x4139ac