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

Disassembly:
mov ecx, dword [0x8cbf38]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x416f5a
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 0x416ac5
mov edx, dword [ebp + 4]
mov esi, dword [ebp]
shr edx, 2
mov ecx, edx
mov edx, dword [esp + 0x7c]
cmp edx, esi
je 0x416a7a
mov dword [esp + 0x5c], esi
shr esi, 2
cmp esi, 0x20
ja 0x416a61
mov ebx, dword [esp + 0x5c]
test ebx, ebx
je 0x416f54
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 0x416e34
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 0x416d55
cmp ecx, 0x20
jbe 0x416a8b
mov ebp, dword [ebp + 0x14]
xor edx, edx
mov esi, edi
jmp 0x416c83
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.004165e0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
jmp 0x416c42
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.00417040
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 0x416b3c
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.00416730
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 0x416bf6
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.004165e0
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 0x416af7
jmp 0x416c00
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.004165e0
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 0x416ba2
jmp 0x416b51
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.00416820
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.0046c5e0
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.00416820
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.004165e0
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 0x416c6a
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.004165e0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
jmp 0x416c42
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.00416730
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 0x416e0f
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.004165e0
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 0x416d04
jmp 0x416e19
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.004165e0
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 0x416db1
jmp 0x416d5d
mov ebx, edx
mov edx, edi
mov ecx, esi
mov eax, ebp
jmp 0x416c42
mov esi, dword [esp + 0x50]
mov esi, ecx
mov ecx, edx
mov edx, ebx
mov ebx, dword [esp + 0x50]
cmp esi, 0x10
ja 0x416ec3
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], edx
test eax, 1
je 0x416e98
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.004165e0
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 0x416e26
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 0x416f1a
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.004165e0
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 0x416ed1
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.004165e0
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
jmp 0x416e19
call fcn.0043b1e0
nop
call fcn.0046aab0
jmp fcn.004169d0