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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x61cab4
sub esp, 0x54
mov edx, dword [esp + 0x94]
mov ebx, dword [edx]
nop
nop
mov ebp, dword [esp + 0x90]
cmp ebp, 0x10000
jb 0x61c86d
shr ebp, 0x10
mov eax, 0x10
jmp 0x61c86f
xor eax, eax
cmp ebp, 0x100
jb 0x61c87d
shr ebp, 8
add eax, 8
cmp ebp, 0x100
jae 0x61caa7
mov dword [esp + 0x50], ebx
lea ecx, [0x77cbde]
movzx ecx, byte [ecx + ebp]
lea eax, [ecx + eax - 1]
cmp eax, 0xf
ja 0x61c8a7
mov ecx, 4
jmp 0x61c8ac
mov ecx, 6
mov ebx, dword [esp + 0x58]
mov dword [esp], ebx
mov ebp, dword [esp + 0x5c]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x60]
mov dword [esp + 8], esi
mov edi, dword [esp + 0x64]
mov dword [esp + 0xc], edi
movzx esi, byte [esp + 0x68]
xchg esi, eax
mov byte [esp + 0x10], al
xchg esi, eax
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x70]
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x80]
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x84]
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x88]
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x8c]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x98]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x48], ecx
mov ebp, dword [esp + 0xa0]
mov dword [esp + 0x4c], ebp
call fcn.0061c520
mov eax, dword [esp + 0x94]
mov ecx, dword [eax]
mov edx, dword [esp + 0x50]
sub ecx, edx
mov ebx, dword [esp + 0x64]
shl ebx, 3
add ebx, 0x1f
cmp ecx, ebx
jbe 0x61c9f3
nop
mov ecx, edx
shr edx, 3
mov ebx, dword [esp + 0x9c]
cmp ebx, edx
jbe 0x61ca9e
mov esi, ecx
and ecx, 7
mov edi, 1
shl edi, cl
dec edi
mov ecx, ebx
mov ebx, dword [esp + 0x98]
movzx ebp, byte [ebx + edx]
and ebp, edi
xchg ebp, eax
mov byte [ebx + edx], al
xchg ebp, eax
mov dword [eax], esi
mov edx, dword [esp + 0x58]
mov dword [esp], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x1c], edx
call fcn.0061c410
mov eax, dword [esp + 0x94]
movzx ecx, byte [esp + 0x68]
test cl, cl
je 0x61ca9a
mov dword [esp], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0xa0]
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 + 0x94]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x18], ecx
call fcn.006322d0
mov eax, dword [esp + 0x94]
mov ecx, dword [eax]
add ecx, 7
and ecx, 0xfffffff8
mov dword [eax], ecx
add esp, 0x54
ret
mov eax, edx
mov ecx, ebx
call fcn.00456b50
mov eax, ebp
mov ecx, 0x100
call fcn.00456b50
nop
call fcn.00455690
jmp fcn.0061c830