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

Disassembly:
mov ecx, dword [0x99504c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4137fa
sub esp, 0x70
mov edx, dword [esp + 0x74]
mov ebx, edx
shr edx, 2
mov ebp, dword [esp + 0x80]
movzx esi, byte [ebp + 0xf]
and edx, 0x1f
mov edi, edx
shl edx, 2
nop
mov eax, ebx
sub ebx, edx
mov dword [esp + 0x54], ebx
xchg esi, eax
test al, 0x40
xchg esi, eax
jne 0x413365
mov edx, dword [ebp + 4]
mov esi, dword [ebp]
shr edx, 2
mov ecx, edx
mov edx, dword [esp + 0x7c]
cmp edx, esi
je 0x41331a
mov dword [esp + 0x5c], esi
shr esi, 2
cmp esi, 0x20
ja 0x413301
mov ebx, dword [esp + 0x5c]
test ebx, ebx
je 0x4137f4
mov ebp, dword [ebp + 0x14]
mov eax, edx
xor edx, edx
div ebx
mov edx, dword [ebp]
mov ebx, dword [esp + 0x54]
mov ebp, edi
xor edi, edi
mov dword [esp + 0x4c], edi
mov edi, ebp
jmp 0x4136d4
mov dword [esp + 0x5c], ecx
mov esi, edi
xor edi, edi
mov dword [esp + 0x4c], edi
xor edi, edi
mov dword [esp + 0x44], edi
mov edi, esi
jmp 0x4135f5
cmp ecx, 0x20
jbe 0x41332b
mov ebp, dword [ebp + 0x14]
xor edx, edx
mov esi, edi
jmp 0x413523
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [esp], ebx
mov dword [esp + 4], 0
mov dword [esp + 8], edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
call fcn.00412e80
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
jmp 0x4134e2
mov dword [esp + 0x5c], edi
mov dword [esp + 0x6c], eax
mov edx, dword [ebp + 0x14]
add edx, 4
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.004138e0
mov eax, dword [esp + 8]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x5c]
mov edx, ecx
xor ebx, ebx
mov ebp, dword [esp + 0x54]
xor esi, esi
jmp 0x4133dc
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x34]
shl eax, 2
sub ecx, eax
mov dword [esp + 0x10], ecx
call fcn.00412fd0
mov eax, dword [esp + 0x80]
mov ecx, dword [eax]
mov edx, dword [esp + 0x48]
lea esi, [edx + ecx]
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x48], esi
mov edi, eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x68], eax
mov eax, edi
jmp 0x413496
mov esi, dword [esp + 0x68]
movzx esi, byte [esi]
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
call fcn.00412e80
mov eax, dword [esp + 0x80]
mov ecx, dword [eax]
mov edx, dword [esp + 0x48]
lea ebx, [edx + ecx]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x7c]
cmp eax, ebx
jne 0x413397
jmp 0x4134a0
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x68]
movzx esi, byte [eax]
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 8
call fcn.00412e80
nop
mov eax, dword [esp + 0x40]
add eax, 0xfffffff8
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x68]
inc esi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x68], esi
mov esi, dword [esp + 0x48]
cmp eax, 8
ja 0x413442
jmp 0x4133f1
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x74]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], eax
call fcn.004130c0
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
add eax, 7
shr eax, 3
mov dword [esp + 4], eax
call fcn.00469620
add esp, 0x70
ret
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x74]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], eax
call fcn.004130c0
add esp, 0x70
ret
mov esi, eax
mov eax, dword [esp + 0x64]
add eax, 4
mov edi, edx
mov edx, ecx
mov ebp, eax
mov ecx, dword [esp + 0x2c]
mov eax, ebx
mov ebx, esi
mov esi, eax
mov dword [esp + 0x64], ebp
lea eax, [ecx - 0x20]
mov dword [esp + 0x2c], eax
mov ecx, dword [ebp]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 0x20
call fcn.00412e80
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
nop
mov ebp, dword [esp + 0x2c]
cmp ebp, 0x20
ja 0x41350a
mov esi, dword [esp + 0x64]
mov esi, dword [esi + 4]
nop
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebp
call fcn.00412e80
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
jmp 0x4134e2
mov ecx, dword [eax + 4]
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x58]
sub edx, ecx
mov dword [esp + 0x10], edx
call fcn.00412fd0
mov ebp, dword [esp + 0x80]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x44]
add eax, ecx
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x5c]
mov eax, dword [ebp + 0x14]
jmp 0x4136af
mov eax, dword [eax]
mov dword [esp], ebx
mov edx, dword [esp + 0x4c]
mov dword [esp + 4], edx
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
call fcn.00412e80
mov eax, dword [esp + 0x80]
mov ecx, dword [eax]
mov dword [esp + 0x58], ecx
mov edx, dword [esp + 0x44]
lea ebx, [edx + ecx]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x7c]
cmp ecx, ebx
jne 0x4135a4
jmp 0x4136b9
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x60], eax
mov ecx, dword [eax]
mov dword [esp], ebx
mov edx, dword [esp + 0x4c]
mov dword [esp + 4], edx
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 0x20
call fcn.00412e80
nop
mov eax, dword [esp + 0x3c]
lea ecx, [eax - 0x20]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x60]
add edx, 4
mov ebp, dword [esp + 0x80]
mov dword [esp + 0x4c], eax
mov eax, edx
mov edx, dword [esp + 0x7c]
cmp ecx, 0x20
ja 0x413651
jmp 0x4135fd
mov ebx, edx
mov edx, edi
mov ecx, esi
mov eax, ebp
jmp 0x4134e2
mov esi, dword [esp + 0x50]
mov esi, ecx
mov ecx, edx
mov edx, ebx
mov ebx, dword [esp + 0x50]
cmp esi, 0x10
ja 0x413763
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], edx
test eax, 1
je 0x413738
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], eax
mov dword [esp], ebx
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], esi
call fcn.00412e80
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x50], ebx
shr eax, 1
mov ecx, esi
shl edx, cl
mov ebx, dword [esp + 0x38]
or ebx, edx
mov edx, dword [esp + 0x2c]
add edx, ecx
shl ecx, 1
cmp eax, 1
jne 0x4136c6
mov esi, ecx
mov ecx, edx
mov edx, ebx
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x28], esi
jmp 0x4137ba
mov dword [esp + 0x30], eax
mov dword [esp], ebx
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], esi
call fcn.00412e80
mov eax, dword [esp + 0x30]
dec eax
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x2c]
cmp eax, 1
ja 0x413771
mov dword [esp], ebx
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
call fcn.00412e80
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
jmp 0x4136b9
call fcn.004379d0
nop
call fcn.00467a60
jmp fcn.00413270