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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x617e99
sub esp, 0x60
mov edx, dword [esp + 0xb0]
mov ebx, dword [edx]
nop
nop
mov ebp, dword [esp + 0x84]
cmp ebp, 0x10000
jb 0x617b6d
shr ebp, 0x10
mov eax, 0x10
jmp 0x617b6f
xor eax, eax
cmp ebp, 0x100
jb 0x617b7d
shr ebp, 8
add eax, 8
cmp ebp, 0x100
jae 0x617e8c
lea ecx, [0x77cbde]
movzx ecx, byte [ecx + ebp]
lea eax, [ecx + eax - 1]
mov ecx, dword [esp + 0x70]
test ecx, ecx
jne 0x617c4f
nop
movzx eax, byte [esp + 0x74]
test al, al
je 0x617e74
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.006322d0
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.006322d0
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.006155b0
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 0x617dc2
mov ecx, dword [esp + 0x68]
cmp ecx, ebp
jb 0x617e6d
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.00615470
mov eax, dword [esp + 0xb0]
movzx ecx, byte [esp + 0x74]
test cl, cl
je 0x617e69
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.006322d0
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.006322d0
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, [0x7345e0]
mov dword [esp], eax
lea eax, [0x7c9cbc]
mov dword [esp + 4], eax
call fcn.00430590
mov eax, ebp
mov ecx, 0x100
call fcn.00456b50
nop
call fcn.00455690
jmp fcn.00617b30