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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x413b9d
sub esp, 0x70
mov eax, dword [0x5a444c]
test eax, eax
jne 0x4137f1
mov eax, dword [esp + 0x74]
test eax, eax
je 0x413b86
movzx ecx, byte [eax + 0xf]
and ecx, 0x1f
cmp cl, 0x16
jne 0x413b2a
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x413b14
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0040f200
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x413613
mov eax, dword [esp + 0x78]
lea ecx, [0x5a41dc]
cmp eax, ecx
je 0x41360f
lea ecx, [0x56d680]
jmp 0x413acc
add esp, 0x70
ret
mov ebx, dword [esp + 0x78]
mov ebp, ebx
cmp ebx, eax
je 0x413641
mov ebx, dword [esp + 0x48]
mov esi, dword [ebx + 0x20]
test esi, esi
je 0x413aae
mov edi, dword [esi + 4]
test edi, edi
jne 0x413aae
cmp dword [esi], 0x10
jb 0x413645
jmp 0x413aae
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0x7c]
test esi, esi
je 0x4137bf
movzx edi, byte [esi + 0xf]
and edi, 0x1f
xchg edi, eax
cmp al, 0x13
xchg edi, eax
jne 0x413a52
mov dword [esp + 0x40], esi
movzx edi, word [esi + 0x22]
test di, 0x8000
jne 0x4139b8
movzx edi, word [esi + 0x20]
cmp di, 1
jne 0x413930
mov eax, ebp
movzx ebp, byte [esi + 0xc]
xchg ebp, eax
test al, 1
xchg ebp, eax
je 0x413698
mov ecx, 0x34
jmp 0x41369d
mov ecx, 0x24
movzx ebp, di
test ebp, ebp
jbe 0x413927
mov ebp, dword [esi + ecx]
mov dword [esp + 0x44], ebp
cmp ebp, ebx
je 0x41375e
movzx edi, byte [ebp + 0xf]
and edi, 0x1f
xchg edi, eax
cmp al, 0x16
xchg edi, eax
je 0x413709
xchg edi, eax
cmp al, 0x14
xchg edi, eax
jne 0x413920
mov edi, dword [ebp + 0x28]
test edi, edi
je 0x41375e
mov ecx, dword [esp + 0x74]
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00408b70
mov eax, dword [esp + 0xc]
test eax, eax
je 0x413917
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
jmp 0x41375e
mov dword [esp], ebp
call fcn.00452d20
mov eax, dword [esp + 4]
test eax, eax
jne 0x413720
mov eax, 1
jmp 0x413738
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.00452d20
mov eax, dword [esp + 4]
test eax, eax
setne al
xor eax, 1
test al, al
je 0x41390e
mov ebx, dword [esp + 0x44]
mov ebp, dword [ebx + 0x20]
mov esi, dword [esp + 0x48]
cmp dword [esi + 0x20], ebp
jne 0x413886
mov ebx, esi
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
movzx edi, byte [esi + 0xc]
xchg edi, eax
test al, 1
xchg edi, eax
je 0x413770
mov eax, 0x34
jmp 0x413775
mov eax, 0x24
movzx edi, word [esi + 0x22]
and edi, 0x7fff
mov ecx, ebx
movzx ebx, word [esi + 0x20]
add edi, ebx
movzx edi, di
add esi, eax
cmp edi, 0x100000
ja 0x41387a
movzx eax, bx
cmp eax, edi
ja 0x413873
sub edi, eax
lea edx, [eax - 0x100000]
neg edx
neg edx
shl eax, 2
sar edx, 0x1f
and eax, edx
add eax, esi
xor edx, edx
xor ebx, ebx
jmp 0x413813
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
lea eax, [0x413c20]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x74]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x50]
mov dword [esp], eax
call fcn.00457cb0
add esp, 0x70
ret
add esp, 0x70
ret
mov esi, dword [eax + edx*4]
mov dword [esp + 0x3c], esi
inc edx
movzx esi, byte [esi + 0xd]
lea ebx, [ebx + esi - 1]
xchg esi, ebx
neg ebx
xchg esi, ebx
and ebx, esi
mov esi, dword [esp + 0x3c]
add ebx, dword [esi]
cmp edx, edi
jl 0x4137f5
mov dword [esp + 0x34], ebx
call fcn.00413140
lea edi, [esp + 0x58]
xor eax, eax
call fcn.0045939a
lea eax, [0x413bb0]
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.00457cb0
add esp, 0x70
ret
mov ecx, edi
call fcn.004592b0
mov ecx, edi
mov edx, 0x100000
call fcn.00459270
mov dword [esp], esi
call fcn.00452c90
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.00452c90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], 0
lea edx, [0x4a4edc]
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, [0x49fb31]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 0xe
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
call fcn.00447680
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004322c0
mov esi, dword [esp + 0x48]
jmp 0x413886
mov esi, dword [esp + 0x48]
jmp 0x413886
mov esi, ebx
jmp 0x413886
xor eax, eax
mov ecx, ebp
call fcn.00459250
mov dword [esp], ebx
call fcn.00452c90
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.00452c90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], 0
lea edx, [0x4a4edc]
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, [0x49fb31]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 0xe
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
call fcn.00447680
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004322c0
mov dword [esp], ebx
call fcn.00452c90
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.00452c90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], 0
lea edx, [0x4a4edc]
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, [0x49fb31]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 0xe
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
lea eax, [0x4a0944]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0x12
call fcn.00447730
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004322c0
mov dword [esp], esi
call fcn.00452c90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], 0
lea edx, [0x4a5f56]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x29
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
lea eax, [0x4a01a9]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0x10
call fcn.004475e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004322c0
lea eax, [0x4a78d0]
mov dword [esp], eax
mov dword [esp + 4], 0x41
call fcn.004322c0
mov ecx, dword [ecx + 0x110]
mov eax, edx
test ecx, ecx
je 0x413afe
mov edx, eax
cmp dword [ecx + 0x60], eax
ja 0x413adc
cmp dword [ecx + 0x64], eax
ja 0x413afa
cmp dword [ecx + 0x68], eax
ja 0x413ae6
cmp dword [ecx + 0x6c], eax
ja 0x413afa
cmp dword [ecx + 0x70], eax
ja 0x413af0
cmp dword [ecx + 0x74], eax
ja 0x413afa
cmp dword [ecx + 0x78], eax
ja 0x413ac4
cmp dword [ecx + 0x7c], eax
jbe 0x413ac4
add esp, 0x70
ret
lea eax, [0x4a70cd]
mov dword [esp], eax
mov dword [esp + 4], 0x34
call fcn.004322c0
lea eax, [0x49fd37]
mov dword [esp], eax
mov dword [esp + 4], 0xe
call fcn.004322c0
mov dword [esp], eax
call fcn.00452c90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], 0
lea edx, [0x4a5cf5]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x28
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
lea eax, [0x49f8bc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0xd
call fcn.004475e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004322c0
lea eax, [0x4a639f]
mov dword [esp], eax
mov dword [esp + 4], 0x2b
call fcn.004322c0
nop
call fcn.00457dc0
jmp fcn.00413580