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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x617ed9
sub esp, 0x60
mov edx, dword [esp + 0xb0]
mov ebx, dword [edx]
nop
nop
mov ebp, dword [esp + 0x84]
cmp ebp, 0x10000
jb 0x617bad
shr ebp, 0x10
mov eax, 0x10
jmp 0x617baf
xor eax, eax
cmp ebp, 0x100
jb 0x617bbd
shr ebp, 8
add eax, 8
cmp ebp, 0x100
jae 0x617ecc
lea ecx, [0x77ce7e]
movzx ecx, byte [ecx + ebp]
lea eax, [ecx + eax - 1]
mov ecx, dword [esp + 0x70]
test ecx, ecx
jne 0x617c8f
nop
movzx eax, byte [esp + 0x74]
test al, al
je 0x617eb4
mov dword [esp], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x14], ecx
mov ebx, dword [esp + 0xbc]
mov dword [esp + 0x18], ebx
call fcn.00632290
mov dword [esp], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov eax, dword [esp + 0xb0]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xbc]
mov dword [esp + 0x18], ecx
call fcn.00632290
mov eax, dword [esp + 0xb0]
mov ecx, dword [eax]
add ecx, 7
and ecx, 0xfffffff8
mov dword [eax], ecx
add esp, 0x60
ret
mov dword [esp + 0x5c], ebx
mov ebx, dword [esp + 0x64]
mov dword [esp], ebx
mov ebp, dword [esp + 0x68]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x6c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
movzx edi, byte [esp + 0x74]
xchg edi, eax
mov byte [esp + 0x10], al
xchg edi, eax
mov edi, dword [esp + 0x78]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x80]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x50], eax
mov edi, dword [esp + 0xb8]
mov dword [esp + 0x54], edi
mov edi, dword [esp + 0xbc]
mov dword [esp + 0x58], edi
call fcn.006155e0
mov eax, dword [esp + 0xb0]
mov ecx, dword [eax]
mov edx, dword [esp + 0x5c]
sub ecx, edx
mov ebx, dword [esp + 0x70]
mov ebp, ebx
shl ebx, 3
add ebx, 0x1f
cmp ecx, ebx
jbe 0x617e02
mov ecx, dword [esp + 0x68]
cmp ecx, ebp
jb 0x617ead
mov ebx, dword [esp + 0x64]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov esi, dword [esp + 0x6c]
mov dword [esp + 8], esi
sub esi, ebp
mov edi, esi
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and esi, ebp
add ebx, esi
mov dword [esp + 0xc], ebx
sub ecx, ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0xb8]
mov dword [esp + 0x24], edx
mov ebx, dword [esp + 0xbc]
mov dword [esp + 0x28], ebx
call fcn.006154a0
mov eax, dword [esp + 0xb0]
movzx ecx, byte [esp + 0x74]
test cl, cl
je 0x617ea9
mov dword [esp], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0xb8]
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0xbc]
mov dword [esp + 0x18], ebx
call fcn.00632290
mov dword [esp], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov eax, dword [esp + 0xb0]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xbc]
mov dword [esp + 0x18], ecx
call fcn.00632290
mov eax, dword [esp + 0xb0]
mov ecx, dword [eax]
add ecx, 7
and ecx, 0xfffffff8
mov dword [eax], ecx
add esp, 0x60
ret
mov eax, ebp
call fcn.00456bb0
lea eax, [0x7346e0]
mov dword [esp], eax
lea eax, [0x7ca28c]
mov dword [esp + 4], eax
call fcn.00430590
mov eax, ebp
mov ecx, 0x100
call fcn.00456b50
nop
call fcn.00455690
jmp fcn.00617b70