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

Disassembly:
mov ecx, dword [0x6cfe90]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x38]
cmp eax, dword [ecx + 8]
jbe 0x4d6bf3
sub esp, 0xb8
mov eax, dword [esp + 0xd8]
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0xc4]
mov ebx, dword [esp + 0xc0]
mov ebp, dword [esp + 0xbc]
mov esi, dword [esp + 0xd4]
mov edi, dword [esp + 0xd0]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
mov ecx, 1
mov byte [esp + 0x2f], cl
mov ecx, 1
mov byte [esp + 0x2e], cl
mov ecx, dword [esp + 0x58]
jmp 0x4d667d
mov ebp, dword [esp + 0xd8]
mov esi, dword [esp + 0xc8]
mov edi, dword [esp + 0xc4]
mov ebp, dword [esp + 0xbc]
mov dword [esp + 0x54], eax
mov edi, edx
mov esi, dword [esp + 0x6c]
mov byte [esp + 0x2f], cl
mov byte [esp + 0x2e], bl
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0xc4]
mov ebx, dword [esp + 0xc0]
mov dword [esp + 0x50], edi
mov eax, dword [esp + 0x54]
sub edi, eax
cmp edi, 0xc
jle 0x4d6a8c
test esi, esi
je 0x4d6a57
mov dword [esp + 0x3c], edi
movzx edi, byte [esp + 0x2f]
xchg edi, eax
test al, al
xchg edi, eax
jne 0x4d6700
mov dword [esp + 0x70], esi
mov esi, dword [ebp + 8]
mov dword [esp], esi
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x50]
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0xd8]
mov dword [esp + 0x18], edi
call fcn.004d7fe0
mov eax, dword [esp + 0x70]
lea esi, [eax - 1]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0xc4]
mov ebx, dword [esp + 0xc0]
mov ebp, dword [esp + 0xbc]
mov dword [esp + 0x6c], esi
mov edi, dword [ebp + 0xc]
mov dword [esp], edi
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x50]
mov dword [esp + 0x14], edi
mov esi, dword [esp + 0xd8]
mov dword [esp + 0x18], esi
call fcn.004d7b70
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
cmp eax, 2
jne 0x4d6764
mov dword [esp + 0x34], ecx
nop
mov ebx, dword [esp + 0x50]
lea ebp, [ebx - 1]
mov eax, dword [esp + 0xc4]
mov edx, dword [esp + 0xc0]
mov esi, dword [esp + 0x54]
mov edi, esi
jmp 0x4d6afe
movzx ebx, byte [esp + 0x2f]
test bl, bl
mov dword [esp + 0x68], ecx
je 0x4d67ec
movzx ebp, byte [esp + 0x2e]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x4d67f1
cmp eax, 1
jne 0x4d67f1
mov eax, dword [esp + 0xbc]
mov ecx, dword [eax + 0x14]
mov dword [esp], ecx
mov ecx, dword [esp + 0xc0]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0xc4]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0xc8]
mov dword [esp + 0xc], ebx
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x10], ebp
mov esi, dword [esp + 0x50]
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0xd8]
mov dword [esp + 0x18], edi
call fcn.004d7620
movzx eax, byte [esp + 0x1c]
test al, al
jne 0x4d6ac1
mov ecx, dword [esp + 0x68]
movzx ebx, byte [esp + 0x2f]
movzx ebp, byte [esp + 0x2e]
jmp 0x4d67f1
movzx ebp, byte [esp + 0x2e]
mov eax, ebx
mov ebx, dword [esp + 0x54]
test ebx, ebx
jle 0x4d688e
lea edx, [ebx - 1]
mov ebp, dword [esp + 0xc4]
cmp ebp, edx
jbe 0x4d6ad1
lea edx, [ebx + ebx*4]
mov ebx, dword [esp + 0xc0]
lea edx, [ebx + edx*4 - 0x14]
lea edi, [esp + 0x90]
mov esi, edx
call fcn.0046518e
mov ecx, dword [esp + 0x68]
cmp ebp, ecx
jbe 0x4d6ac8
lea eax, [ecx + ecx*4]
lea esi, [ebx + eax*4]
lea edi, [esp + 0x7c]
call fcn.0046518e
mov edx, dword [esp + 0xd8]
mov eax, dword [edx]
lea edi, [esp]
lea esi, [esp + 0x90]
call fcn.0046518e
lea edi, [esp + 0x14]
lea esi, [esp + 0x7c]
call fcn.0046518e
call eax
mov eax, dword [esp + 0x28]
test eax, eax
setge al
mov ecx, dword [esp + 0x68]
mov ebx, dword [esp + 0x54]
movzx ebp, byte [esp + 0x2e]
mov edx, eax
movzx eax, byte [esp + 0x2f]
jmp 0x4d6890
xor edx, edx
test dl, dl
je 0x4d68f9
mov eax, dword [esp + 0xbc]
mov edx, dword [eax + 0x18]
mov dword [esp], edx
mov edx, dword [esp + 0xc0]
mov dword [esp + 4], edx
mov ebp, dword [esp + 0xc4]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0xc8]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0xd8]
mov dword [esp + 0x1c], ecx
call fcn.004d72d0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x50]
movzx ecx, byte [esp + 0x2f]
movzx ebx, byte [esp + 0x2e]
jmp 0x4d663a
mov eax, dword [esp + 0xbc]
mov edx, dword [eax + 0x1c]
mov dword [esp], edx
mov edx, dword [esp + 0xc0]
mov dword [esp + 4], edx
mov ebp, dword [esp + 0xc4]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0xc8]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
mov edi, dword [esp + 0x50]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0xd8]
mov dword [esp + 0x1c], ecx
call fcn.004d6c00
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x54]
mov edx, eax
sub eax, ecx
mov ebx, dword [esp + 0x50]
mov ebp, ebx
sub ebx, edx
movzx esi, byte [esp + 0x24]
xchg esi, eax
mov byte [esp + 0x2e], al
xchg esi, eax
mov edi, dword [esp + 0x3c]
sar edi, 3
mov dword [esp + 0x4c], edi
cmp ebx, eax
jle 0x4d69e3
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xbc]
mov ebx, dword [eax + 0x20]
mov dword [esp], ebx
mov ebx, dword [esp + 0xc0]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0xc4]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0xc8]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x18], ecx
mov edi, dword [esp + 0xd8]
mov dword [esp + 0x1c], edi
call fcn.004d65c0
mov eax, dword [esp + 0x38]
inc eax
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
cmp ecx, edx
setle cl
mov edx, dword [esp + 0x50]
jmp 0x4d6a4d
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0xbc]
mov ecx, dword [eax + 0x20]
mov dword [esp], ecx
mov ecx, dword [esp + 0xc0]
mov dword [esp + 4], ecx
mov ebx, dword [esp + 0xc4]
mov dword [esp + 8], ebx
mov esi, dword [esp + 0xc8]
mov dword [esp + 0xc], esi
lea edi, [edx + 1]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x18], ebp
mov edi, dword [esp + 0xd8]
mov dword [esp + 0x1c], edi
call fcn.004d65c0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
setle cl
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x38]
movzx ebx, byte [esp + 0x2e]
jmp 0x4d663a
mov ebp, dword [ebp + 4]
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x18], eax
call fcn.004d8240
add esp, 0xb8
ret
mov ebp, dword [ebp]
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x18], eax
call fcn.004d86d0
add esp, 0xb8
ret
add esp, 0xb8
ret
mov eax, ecx
mov ecx, ebp
call fcn.00464b30
mov eax, edx
mov ecx, ebp
call fcn.00464b30
mov edi, dword [esp + 0x78]
lea esi, [esp + 0xa4]
call fcn.0046518e
mov ecx, dword [esp + 0x48]
lea esi, [ecx + 1]
dec ebp
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
cmp ebp, esi
jle 0x4d6bc8
cmp eax, esi
jbe 0x4d6be9
mov dword [esp + 0x48], esi
lea ebx, [esi + esi*4]
lea ebx, [edx + ebx*4]
lea edi, [esp + 0xa4]
mov esi, ebx
call fcn.0046518e
cmp eax, ebp
jbe 0x4d6be0
mov dword [esp + 0x44], ebp
mov ecx, dword [0x6cff38]
lea esi, [ebp + ebp*4]
lea esi, [edx + esi*4]
mov dword [esp + 0x78], esi
test ecx, ecx
je 0x4d6b7b
mov dword [esp + 0x74], ebx
lea eax, [0x562400]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
call fcn.004113a0
mov eax, dword [esp + 0xc4]
mov edx, dword [esp + 0xc0]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x78]
mov edi, ebx
call fcn.0046518e
mov ecx, dword [0x6cff38]
test ecx, ecx
je 0x4d6ada
lea eax, [0x562400]
mov dword [esp], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 4], eax
lea ecx, [esp + 0xa4]
mov dword [esp + 8], ecx
call fcn.004113a0
mov eax, dword [esp + 0xc4]
mov edx, dword [esp + 0xc0]
mov ebp, dword [esp + 0x44]
jmp 0x4d6ada
sub ecx, edi
sub ebx, ecx
lea ecx, [ebx - 1]
movzx ebx, byte [esp + 0x2f]
test bl, bl
mov eax, 1
jmp 0x4d676b
mov ecx, eax
mov eax, ebp
call fcn.00464b30
mov ecx, eax
mov eax, esi
call fcn.00464b30
nop
call fcn.004636b0
jmp fcn.004d65c0