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

Disassembly:
mov ecx, dword [0x8e25d4]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4135aa
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 0x413115
mov edx, dword [ebp + 4]
mov esi, dword [ebp]
shr edx, 2
mov ecx, edx
mov edx, dword [esp + 0x7c]
cmp edx, esi
je 0x4130ca
mov dword [esp + 0x5c], esi
shr esi, 2
cmp esi, 0x20
ja 0x4130b1
mov ebx, dword [esp + 0x5c]
test ebx, ebx
je 0x4135a4
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 0x413484
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 0x4133a5
cmp ecx, 0x20
jbe 0x4130db
mov ebp, dword [ebp + 0x14]
xor edx, edx
mov esi, edi
jmp 0x4132d3
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.00412c30
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
jmp 0x413292
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.00413690
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 0x41318c
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.00412d80
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 0x413246
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.00412c30
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 0x413147
jmp 0x413250
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.00412c30
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 0x4131f2
jmp 0x4131a1
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.00412e70
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.00469040
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.00412e70
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.00412c30
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 0x4132ba
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.00412c30
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
jmp 0x413292
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.00412d80
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 0x41345f
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.00412c30
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 0x413354
jmp 0x413469
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.00412c30
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 0x413401
jmp 0x4133ad
mov ebx, edx
mov edx, edi
mov ecx, esi
mov eax, ebp
jmp 0x413292
mov esi, dword [esp + 0x50]
mov esi, ecx
mov ecx, edx
mov edx, ebx
mov ebx, dword [esp + 0x50]
cmp esi, 0x10
ja 0x413513
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], edx
test eax, 1
je 0x4134e8
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.00412c30
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 0x413476
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 0x41356a
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.00412c30
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 0x413521
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.00412c30
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
jmp 0x413469
call fcn.00437470
nop
call fcn.00467480
jmp fcn.00413020