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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x617be6
sub esp, 0x34
mov ecx, dword [esp + 0x38]
test byte [ecx], al
lea ebx, [ecx + 0x74]
test byte [ebx], al
mov ebp, dword [0xb92b90]
test ebp, ebp
jne 0x617bcc
lea ebp, [0x858cb0]
mov dword [ecx + 0x74], ebp
mov dword [ecx + 0x80], 0
mov dword [ecx + 0x88], 0
mov ebp, dword [0xb92b90]
test ebp, ebp
jne 0x617bba
mov dword [ecx + 0x8c], 0
mov dword [esp + 0x28], ebx
mov byte [ecx + 0x78], 0
mov ebp, dword [ecx + 0x68]
xor eax, eax
xor edx, edx
jmp 0x617aa1
mov eax, dword [esp + 0x18]
lea ebx, [eax + 1]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cmp ebx, esi
jge 0x617a66
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x38]
mov ebp, dword [eax + 0x90]
add ebp, 1
movzx esi, byte [ecx + ebx]
mov ecx, dword [eax + 0x94]
mov dword [eax + 0x90], ebp
adc ecx, 0
mov dword [eax + 0x94], ecx
mov ecx, dword [eax + 0x74]
mov dword [esp], edi
xchg esi, eax
mov byte [esp + 4], al
xchg esi, eax
mov ebp, dword [ecx]
mov edx, ecx
call ebp
mov eax, dword [esp + 8]
cmp eax, 0xa
je 0x617a59
mov dword [esp + 0x10], eax
cmp eax, 5
je 0x617a05
cmp eax, 8
je 0x617a05
cmp eax, 0xb
jne 0x61792b
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + 0x8c]
mov edx, dword [ecx + 0x88]
mov dword [ecx + 0x98], edx
mov edx, dword [0xb92b90]
test edx, edx
jne 0x6179f8
mov dword [ecx + 0x9c], eax
mov eax, dword [ecx + 0x8c]
mov ecx, dword [ecx + 0x88]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
add esp, 0x34
ret
lea edi, [ecx + 0x9c]
call fcn.0044c990
jmp 0x6179d8
mov eax, dword [esp + 0x38]
mov edx, dword [eax + 0x74]
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
mov byte [esp + 4], 0x20
mov ebx, dword [edx]
call ebx
mov eax, dword [esp + 8]
cmp eax, 0xa
je 0x617a2e
mov eax, dword [esp + 0x10]
jmp 0x6179a9
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea eax, [ecx + eax + 1]
mov ecx, dword [esp + 0x38]
sub eax, dword [ecx + 0x68]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
add esp, 0x34
ret
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea eax, [edx + ecx]
jmp 0x617a3a
mov ecx, dword [esp + 0x38]
mov ebx, dword [ecx + 0xc]
mov dword [esp + 0x24], ebx
test edx, edx
jne 0x617adc
mov eax, dword [ecx + 0x68]
mov dword [esp + 0x20], eax
mov dword [esp], ecx
call fcn.00617bf0
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
sub ebp, eax
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x38]
add ebp, dword [ecx + 0x68]
mov ebx, dword [esp + 0x28]
mov esi, dword [ecx + 0xc]
mov edi, ebx
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 0x10]
cmp ebp, esi
ja 0x617bdf
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ebp
sub ecx, ebp
neg ecx
sar ecx, 0x1f
and ecx, ebp
add ecx, ebx
mov dword [esp + 0x30], ecx
sub esi, ebp
mov dword [esp + 0x24], esi
xor ebx, ebx
jmp 0x61794a
mov ebp, dword [0xb80668]
cmp edx, ebp
je 0x617b1d
mov dword [ecx + 0x98], edx
mov ebx, dword [0xb92b90]
test ebx, ebx
jne 0x617b10
mov dword [ecx + 0x9c], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
add esp, 0x34
ret
lea edi, [ecx + 0x9c]
call fcn.0044c990
jmp 0x617afc
mov dword [esp], edx
mov dword [esp + 4], eax
mov ecx, dword [0xb8066c]
mov dword [esp + 8], ecx
call fcn.00402ea0
movzx eax, byte [esp + 0xc]
test al, al
jne 0x617b4a
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
jmp 0x617ae6
mov eax, dword [esp + 0x38]
mov edx, dword [eax + 0x74]
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
mov byte [esp + 4], 0x20
mov ecx, dword [edx]
call ecx
mov eax, dword [esp + 8]
cmp eax, 0xa
jne 0x617b73
mov eax, dword [esp + 0x24]
jmp 0x617a3a
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
mov ebx, dword [eax + 8]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00617dc0
movzx eax, byte [esp + 0xc]
test al, al
je 0x617bb0
mov ecx, dword [0xb80694]
mov edx, dword [0xb80690]
mov eax, ecx
mov ecx, dword [esp + 0x38]
jmp 0x617ae6
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
jmp 0x617ba5
lea edi, [ecx + 0x8c]
xor eax, eax
call fcn.0044c990
jmp 0x617917
lea edi, [ecx + 0x74]
lea eax, [0x858cb0]
call fcn.0044c990
jmp 0x6178eb
call fcn.004265e0
ud2
call fcn.0044b230
jmp fcn.006178b0