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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 8]
cmp eax, dword [ecx + 8]
jbe 0x4c86b7
sub esp, 0x88
mov eax, dword [esp + 0x94]
movzx ecx, byte [eax]
test cl, cl
je 0x4c83c9
mov byte [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
nop
lea ecx, [esp + 0x58]
cmp eax, ecx
je 0x4c83ad
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
test ecx, ecx
jg 0x4c862f
mov ebx, ecx
xor ebp, ebp
xor esi, esi
cmp ebx, ecx
jge 0x4c8628
mov dword [esp + 0x30], esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x3c], ebp
cmp edx, ebp
je 0x4c8387
mov dword [esp], ebp
mov dword [esp + 4], edx
shl ebx, 2
mov dword [esp + 8], ebx
call fcn.0045e7b0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x94]
movzx eax, byte [eax]
mov byte [esp + 0x58], al
mov eax, dword [esp + 0x60]
test eax, eax
jle 0x4c8621
movzx eax, byte [esp + 0x58]
xor eax, 1
mov byte [esp + 0x58], al
lea eax, [esp + 0x58]
mov dword [esp + 0x94], eax
mov ecx, dword [esp + 0x90]
movzx edx, byte [ecx]
test dl, dl
jne 0x4c85e0
mov byte [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov byte [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
lea edx, [esp + 0x78]
mov dword [esp], edx
lea ebx, [esp + 0x48]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.004c68b0
mov eax, dword [0x77cef0]
lea ecx, [esp + 0x78]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004c63b0
mov eax, dword [esp + 8]
test eax, eax
jne 0x4c85ce
movzx ecx, byte [esp + 0x48]
test cl, cl
jne 0x4c85a0
nop
mov ecx, dword [esp + 0x8c]
lea edx, [esp + 0x48]
cmp ecx, edx
je 0x4c8599
mov edx, dword [ecx + 0xc]
mov ebx, dword [ecx + 4]
mov ebp, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
cmp edx, ebp
jl 0x4c8511
mov eax, ebp
cmp ebp, eax
jle 0x4c850d
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x38], ebx
cmp esi, ebx
je 0x4c84c4
mov dword [esp], ebx
mov dword [esp + 4], esi
shl eax, 2
mov dword [esp + 8], eax
call fcn.0045e7b0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x8c]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x7a0970]
test ecx, ecx
jne 0x4c84ff
mov eax, dword [esp + 0x38]
mov dword [edx + 4], eax
movzx eax, byte [esp + 0x48]
mov byte [edx], al
mov dword [esp + 0x98], edx
add esp, 0x88
ret
lea edi, [edx + 4]
mov eax, dword [esp + 0x38]
call fcn.0045de10
jmp 0x4c84ea
mov eax, ebp
jmp 0x4c84a1
mov dword [esp + 0x44], esi
mov dword [esp + 0x20], ebp
cmp ebp, 1
jne 0x4c855e
lea eax, [0x5dabc0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.004450a0
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x8c]
mov esi, dword [esp + 0x44]
mov ebp, 1
mov edx, 1
jmp 0x4c849d
lea eax, [0x5dabc0]
mov dword [esp], eax
mov dword [esp + 4], ebp
lea eax, [ebp + 4]
mov dword [esp + 0x34], eax
mov dword [esp + 8], eax
call fcn.004450a0
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x8c]
mov esi, dword [esp + 0x44]
mov ebp, eax
mov edx, dword [esp + 0x34]
jmp 0x4c849d
mov edx, ecx
jmp 0x4c84f1
mov eax, dword [esp + 0x8c]
mov dword [esp], eax
lea ecx, [esp + 0x48]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x94]
mov dword [esp + 8], ecx
call fcn.004c59a0
mov edx, dword [esp + 0x8c]
jmp 0x4c84f1
mov dword [esp + 0x98], 0
add esp, 0x88
ret
mov byte [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
lea edx, [esp + 0x68]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004c61a0
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x94]
jmp 0x4c83e2
xor eax, eax
jmp 0x4c83c1
mov ebx, ecx
jmp 0x4c8364
mov dword [esp + 0x18], ecx
mov dword [esp + 0x40], edx
cmp ecx, 1
jne 0x4c867c
lea eax, [0x5dabc0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.004450a0
mov ebp, dword [esp + 0xc]
mov eax, dword [esp + 0x94]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x18]
mov ecx, 1
mov esi, 1
jmp 0x4c835c
lea eax, [0x5dabc0]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea edx, [ecx + 4]
mov dword [esp + 0x28], edx
mov dword [esp + 8], edx
call fcn.004450a0
mov ebp, dword [esp + 0xc]
mov eax, dword [esp + 0x94]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x18]
mov ecx, ebx
mov esi, dword [esp + 0x28]
jmp 0x4c835c
call fcn.0045c8b0
jmp fcn.004c82f0