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

Disassembly:
mov ecx, dword [0x84873c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x41373a
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 0x4132a5
mov edx, dword [ebp + 4]
mov esi, dword [ebp]
shr edx, 2
mov ecx, edx
mov edx, dword [esp + 0x7c]
cmp edx, esi
je 0x41325a
mov dword [esp + 0x5c], esi
shr esi, 2
cmp esi, 0x20
ja 0x413241
mov ebx, dword [esp + 0x5c]
test ebx, ebx
je 0x413734
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 0x413614
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 0x413535
cmp ecx, 0x20
jbe 0x41326b
mov ebp, dword [ebp + 0x14]
xor edx, edx
mov esi, edi
jmp 0x413463
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.00412dc0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
jmp 0x413422
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.00413820
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 0x41331c
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.00412f10
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 0x4133d6
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.00412dc0
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 0x4132d7
jmp 0x4133e0
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.00412dc0
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 0x413382
jmp 0x413331
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.00413000
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.0046adb0
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.00413000
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.00412dc0
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 0x41344a
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.00412dc0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
jmp 0x413422
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.00412f10
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 0x4135ef
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.00412dc0
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 0x4134e4
jmp 0x4135f9
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.00412dc0
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 0x413591
jmp 0x41353d
mov ebx, edx
mov edx, edi
mov ecx, esi
mov eax, ebp
jmp 0x413422
mov esi, dword [esp + 0x50]
mov esi, ecx
mov ecx, edx
mov edx, ebx
mov ebx, dword [esp + 0x50]
cmp esi, 0x10
ja 0x4136a3
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], edx
test eax, 1
je 0x413678
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.00412dc0
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 0x413606
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 0x4136fa
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.00412dc0
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 0x4136b1
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.00412dc0
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
jmp 0x4135f9
call fcn.00437860
nop
call fcn.00469200
jmp fcn.004131b0