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

Disassembly:
mov ecx, dword [0x8c8600]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4cff4e
sub esp, 0x5c
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x78]
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x70]
mov dword [esp + 0x40], eax
mov eax, 1
mov byte [esp + 0x27], al
mov eax, 1
mov byte [esp + 0x26], al
mov eax, dword [esp + 0x40]
jmp 0x4cfbc9
mov ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x64]
mov esi, dword [esp + 0x6c]
mov ebx, dword [esp + 0x68]
mov esi, ecx
mov ebp, dword [esp + 0x4c]
mov byte [esp + 0x27], al
mov byte [esp + 0x26], dl
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x58], esi
sub esi, edi
cmp esi, 0xc
jle 0x4cff28
test ebp, ebp
je 0x4cff01
mov dword [esp + 0x34], esi
mov dword [esp + 0x54], edi
movzx esi, byte [esp + 0x27]
xchg esi, eax
test al, al
xchg esi, eax
jne 0x4cfc35
mov dword [esp + 0x50], ebp
mov ebp, dword [eax + 8]
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edi
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x14], ebp
call fcn.004d0880
mov eax, dword [esp + 0x50]
lea ebp, [eax - 1]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x68]
mov edi, dword [esp + 0x54]
mov dword [esp + 0x4c], ebp
mov esi, dword [eax + 0xc]
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edi
mov esi, dword [esp + 0x58]
mov dword [esp + 0x14], esi
call fcn.004d0500
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp eax, 2
je 0x4cfc7e
movzx edx, byte [esp + 0x27]
test dl, dl
mov ebx, dword [esp + 0x58]
mov ebp, eax
mov eax, ecx
mov ecx, dword [esp + 0x54]
jmp 0x4cfcda
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0x10]
mov dword [esp], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x68]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0xc], ebx
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x10], ebp
mov esi, dword [esp + 0x58]
mov dword [esp + 0x14], esi
call fcn.004d04c0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x54]
sub eax, ecx
mov edx, dword [esp + 0x58]
mov ebx, edx
sub edx, eax
lea eax, [edx - 1]
movzx edx, byte [esp + 0x27]
test dl, dl
mov ebp, 1
mov dword [esp + 0x48], eax
je 0x4cfd44
movzx esi, byte [esp + 0x26]
xchg esi, eax
test al, al
xchg esi, eax
je 0x4cfd49
cmp ebp, 1
jne 0x4cfd49
mov eax, dword [esp + 0x60]
mov edx, dword [eax + 0x14]
mov dword [esp], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 4], edx
mov ebp, dword [esp + 0x68]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x6c]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
call fcn.004d02e0
movzx eax, byte [esp + 0x18]
test al, al
jne 0x4cfefd
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x54]
movzx edx, byte [esp + 0x27]
mov ebx, dword [esp + 0x58]
movzx esi, byte [esp + 0x26]
jmp 0x4cfd49
movzx esi, byte [esp + 0x26]
test ecx, ecx
jg 0x4cfd51
xor ebp, ebp
jmp 0x4cfd94
mov edx, dword [esp + 0x60]
mov ebx, dword [edx + 0x18]
mov ebp, dword [esp + 0x64]
mov esi, dword [ebp + ecx*4 - 4]
mov edi, dword [ebp + eax*4]
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], edi
call fcn.004d0240
movzx eax, byte [esp + 0xc]
xor eax, 1
mov ecx, dword [esp + 0x54]
movzx edx, byte [esp + 0x27]
mov ebx, dword [esp + 0x58]
movzx esi, byte [esp + 0x26]
mov ebp, eax
mov eax, dword [esp + 0x48]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x4cfde6
mov edx, dword [esp + 0x60]
mov ebp, dword [edx + 0x1c]
mov dword [esp], ebp
mov ebp, dword [esp + 0x64]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x68]
mov dword [esp + 8], esi
mov edi, dword [esp + 0x6c]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
call fcn.004d0140
mov eax, dword [esp + 0x1c]
mov edi, eax
mov ecx, dword [esp + 0x58]
movzx eax, byte [esp + 0x27]
movzx edx, byte [esp + 0x26]
jmp 0x4cfb9f
mov edx, dword [esp + 0x60]
mov ebp, dword [edx + 0x20]
mov dword [esp], ebp
mov ebp, dword [esp + 0x64]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x68]
mov dword [esp + 8], esi
mov edi, dword [esp + 0x6c]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
call fcn.004cff60
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x54]
mov edx, eax
sub eax, ecx
mov ebx, dword [esp + 0x58]
mov ebp, ebx
sub ebx, edx
movzx esi, byte [esp + 0x20]
xchg esi, eax
mov byte [esp + 0x26], al
xchg esi, eax
mov edi, dword [esp + 0x34]
sar edi, 3
mov dword [esp + 0x3c], edi
cmp ebx, eax
jle 0x4cfea0
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x60]
mov ebx, dword [eax + 0x24]
mov dword [esp], ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x68]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x6c]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x18], ecx
call fcn.004cfb50
mov eax, dword [esp + 0x30]
lea edi, [eax + 1]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
cmp eax, ecx
setle al
mov ecx, dword [esp + 0x58]
jmp 0x4cfef3
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0x24]
mov dword [esp], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 4], ecx
mov ebx, dword [esp + 0x68]
mov dword [esp + 8], ebx
mov esi, dword [esp + 0x6c]
mov dword [esp + 0xc], esi
lea edi, [edx + 1]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0x18], ebp
call fcn.004cfb50
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
setle al
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x30]
movzx edx, byte [esp + 0x26]
jmp 0x4cfb9f
add esp, 0x5c
ret
mov eax, dword [eax + 4]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x58]
mov dword [esp + 0x14], eax
call fcn.004d0950
add esp, 0x5c
ret
mov eax, dword [eax]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x58]
mov dword [esp + 0x14], eax
call fcn.004d0b40
add esp, 0x5c
ret
call fcn.00475ee0
jmp fcn.004cfb50