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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4139d8
sub esp, 0x70
mov eax, dword [0x62f770]
test eax, eax
jne 0x413647
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4139c1
movzx ecx, byte [eax + 0xf]
and ecx, 0x1f
cmp cl, 0x16
jne 0x413965
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x41394f
mov ecx, dword [esp + 0x78]
nop
mov edx, dword [0x60f41c]
test byte [edx], al
mov ebx, ecx
shr ecx, 0x16
mov ecx, dword [edx + ecx*4]
test ecx, ecx
je 0x4133eb
mov edx, ebx
shr ebx, 0xd
and ebx, 0x1ff
mov ecx, dword [ecx + ebx*4 + 0x21000]
jmp 0x4133ef
mov edx, ebx
xor ecx, ecx
mov dword [esp + 0x48], eax
test ecx, ecx
je 0x413403
movzx ecx, byte [ecx + 0x3d]
test cl, cl
jne 0x413939
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0040f8a0
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x413440
mov eax, dword [esp + 0x78]
lea ecx, [0x62f408]
cmp eax, ecx
je 0x41343c
lea ecx, [0x5cb560]
jmp 0x4138f1
add esp, 0x70
ret
mov ecx, dword [esp + 0x78]
mov edx, ecx
cmp ecx, eax
je 0x41346e
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4138d3
mov ebx, dword [ecx + 4]
test ebx, ebx
jne 0x4138d3
cmp dword [ecx], 0x10
jb 0x413472
jmp 0x4138d3
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x7c]
test ecx, ecx
je 0x413615
movzx ebx, byte [ecx + 0xf]
and ebx, 0x1f
cmp bl, 0x13
jne 0x413877
mov dword [esp + 0x40], ecx
movzx ebx, word [ecx + 0x22]
test bx, 0x8000
jne 0x4137dd
cmp word [ecx + 0x20], 1
jne 0x413755
movzx ebx, byte [ecx + 0xc]
test bl, 1
je 0x4134bc
mov ebx, 0x34
jmp 0x4134c1
mov ebx, 0x24
mov ebx, dword [ecx + ebx]
mov dword [esp + 0x44], ebx
cmp ebx, eax
je 0x4135c4
movzx ebp, byte [ebx + 0xf]
and ebp, 0x1f
xchg ebp, eax
cmp al, 0x16
xchg ebp, eax
jne 0x413586
movzx edx, byte [ebx + 0xc]
test dl, 1
jne 0x4134ef
xor edx, edx
jmp 0x4134f2
lea edx, [ebx + 0x24]
test edx, edx
je 0x41356c
movzx edx, byte [eax + 0xc]
test dl, 1
jne 0x413503
xor edx, edx
jmp 0x413562
movzx edx, byte [eax + 0xf]
and edx, 0x1f
cmp dl, 0x14
ja 0x413537
cmp dl, 0x12
ja 0x413528
cmp dl, 0x11
jne 0x41351e
lea edx, [eax + 0x2c]
jmp 0x413562
cmp dl, 0x12
jne 0x41355f
lea edx, [eax + 0x28]
jmp 0x413562
cmp dl, 0x13
jne 0x413532
lea edx, [eax + 0x24]
jmp 0x413562
lea edx, [eax + 0x30]
jmp 0x413562
cmp dl, 0x16
ja 0x41354b
cmp dl, 0x15
jne 0x413546
lea edx, [eax + 0x38]
jmp 0x413562
lea edx, [eax + 0x24]
jmp 0x413562
cmp dl, 0x17
jne 0x413555
lea edx, [eax + 0x24]
jmp 0x413562
cmp dl, 0x19
jne 0x41355f
lea edx, [eax + 0x30]
jmp 0x413562
lea edx, [eax + 0x20]
test edx, edx
setne dl
xor edx, 1
jmp 0x413571
mov edx, 1
test dl, dl
je 0x4136c9
mov edx, dword [ebx + 0x20]
cmp dword [eax + 0x20], edx
je 0x4135c4
jmp 0x4136c9
xchg ebp, eax
cmp al, 0x14
xchg ebp, eax
jne 0x4136c9
mov ebp, dword [ebx + 0x28]
test ebp, ebp
je 0x4135c4
mov eax, dword [esp + 0x74]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.00408740
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4136c9
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
movzx edx, byte [ecx + 0xc]
test dl, 1
je 0x4135d4
mov edx, 0x34
jmp 0x4135d9
mov edx, 0x24
movzx ebp, word [ecx + 0x22]
and ebp, 0x7fff
movzx esi, word [ecx + 0x20]
movzx edi, si
add ebp, esi
movzx ebp, bp
sub ebp, edi
lea esi, [edi - 0x100000]
xchg esi, ebx
neg ebx
xchg esi, ebx
xchg esi, ebx
neg ebx
xchg esi, ebx
shl edi, 2
sar esi, 0x1f
and edi, esi
add ecx, edx
add ecx, edi
xor edx, edx
xor esi, esi
jmp 0x413669
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
lea eax, [0x413a60]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x74]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x50]
mov dword [esp], eax
call fcn.0045bef0
add esp, 0x70
ret
add esp, 0x70
ret
mov edi, dword [ecx + edx*4]
mov dword [esp + 0x3c], edi
inc edx
movzx edi, byte [edi + 0xd]
lea esi, [esi + edi - 1]
xchg edi, ebx
neg ebx
xchg edi, ebx
and esi, edi
mov edi, dword [esp + 0x3c]
add esi, dword [edi]
cmp edx, ebp
jl 0x41364b
mov dword [esp + 0x34], esi
call fcn.00412ea0
lea edi, [esp + 0x58]
xor eax, eax
call fcn.0045d50a
lea eax, [0x4139f0]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x74]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x34]
add eax, 3
and eax, 0xfffffffc
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x58]
mov dword [esp], eax
call fcn.0045bef0
add esp, 0x70
ret
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.00454e50
mov eax, dword [esp + 4]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x40]
mov dword [esp], edx
call fcn.00454e50
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], 0
lea edx, [0x50c997]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x22
mov edx, dword [esp + 0x4c]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x10], edx
lea edx, [0x505a67]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 0xe
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
call fcn.00449b10
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004328e0
mov dword [esp], eax
call fcn.00454e50
mov eax, dword [esp + 4]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x40]
mov dword [esp], edx
call fcn.00454e50
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], 0
lea edx, [0x50c997]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x22
mov edx, dword [esp + 0x4c]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x10], edx
lea edx, [0x505a67]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 0xe
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
call fcn.00449b10
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004328e0
mov dword [esp], eax
call fcn.00454e50
mov eax, dword [esp + 4]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x40]
mov dword [esp], edx
call fcn.00454e50
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], 0
lea edx, [0x50c997]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x22
mov edx, dword [esp + 0x4c]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x10], edx
lea edx, [0x505a67]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 0xe
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
lea eax, [0x506e0a]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0x12
call fcn.00449bc0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004328e0
mov dword [esp], ecx
call fcn.00454e50
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], 0
lea edx, [0x50dd51]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x29
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
lea eax, [0x506415]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0x10
call fcn.00449a70
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004328e0
lea eax, [0x50fc5c]
mov dword [esp], eax
mov dword [esp + 4], 0x41
call fcn.004328e0
mov ecx, dword [ecx + 0x118]
mov eax, edx
test ecx, ecx
je 0x413923
mov edx, eax
cmp dword [ecx + 0x60], eax
ja 0x413901
cmp dword [ecx + 0x64], eax
ja 0x41391f
cmp dword [ecx + 0x68], eax
ja 0x41390b
cmp dword [ecx + 0x6c], eax
ja 0x41391f
cmp dword [ecx + 0x70], eax
ja 0x413915
cmp dword [ecx + 0x74], eax
ja 0x41391f
cmp dword [ecx + 0x78], eax
ja 0x4138e9
cmp dword [ecx + 0x7c], eax
jbe 0x4138e9
add esp, 0x70
ret
lea eax, [0x50f25b]
mov dword [esp], eax
mov dword [esp + 4], 0x34
call fcn.004328e0
lea eax, [0x50fc1c]
mov dword [esp], eax
mov dword [esp + 4], 0x40
call fcn.004328e0
lea eax, [0x505df5]
mov dword [esp], eax
mov dword [esp + 4], 0xe
call fcn.004328e0
mov dword [esp], eax
call fcn.00454e50
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], 0
lea edx, [0x50dac8]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x28
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
lea eax, [0x505686]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0xd
call fcn.00449a70
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004328e0
lea eax, [0x50e23f]
mov dword [esp], eax
mov dword [esp + 4], 0x2b
call fcn.004328e0
nop
call fcn.0045c000
jmp fcn.00413370