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

Disassembly:
mov ecx, dword [0x6d0e30]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x38]
cmp eax, dword [ecx + 8]
jbe 0x4d6c43
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 0x4d66cd
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 0x4d6adc
test esi, esi
je 0x4d6aa7
mov dword [esp + 0x3c], edi
movzx edi, byte [esp + 0x2f]
xchg edi, eax
test al, al
xchg edi, eax
jne 0x4d6750
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.004d8030
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.004d7bc0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
cmp eax, 2
jne 0x4d67b4
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 0x4d6b4e
movzx ebx, byte [esp + 0x2f]
test bl, bl
mov dword [esp + 0x68], ecx
je 0x4d683c
movzx ebp, byte [esp + 0x2e]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x4d6841
cmp eax, 1
jne 0x4d6841
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.004d7670
movzx eax, byte [esp + 0x1c]
test al, al
jne 0x4d6b11
mov ecx, dword [esp + 0x68]
movzx ebx, byte [esp + 0x2f]
movzx ebp, byte [esp + 0x2e]
jmp 0x4d6841
movzx ebp, byte [esp + 0x2e]
mov eax, ebx
mov ebx, dword [esp + 0x54]
test ebx, ebx
jle 0x4d68de
lea edx, [ebx - 1]
mov ebp, dword [esp + 0xc4]
cmp ebp, edx
jbe 0x4d6b21
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.004651ce
mov ecx, dword [esp + 0x68]
cmp ebp, ecx
jbe 0x4d6b18
lea eax, [ecx + ecx*4]
lea esi, [ebx + eax*4]
lea edi, [esp + 0x7c]
call fcn.004651ce
mov edx, dword [esp + 0xd8]
mov eax, dword [edx]
lea edi, [esp]
lea esi, [esp + 0x90]
call fcn.004651ce
lea edi, [esp + 0x14]
lea esi, [esp + 0x7c]
call fcn.004651ce
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 0x4d68e0
xor edx, edx
test dl, dl
je 0x4d6949
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.004d7320
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x50]
movzx ecx, byte [esp + 0x2f]
movzx ebx, byte [esp + 0x2e]
jmp 0x4d668a
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.004d6c50
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 0x4d6a33
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.004d6610
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 0x4d6a9d
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.004d6610
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 0x4d668a
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.004d8290
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.004d8720
add esp, 0xb8
ret
add esp, 0xb8
ret
mov eax, ecx
mov ecx, ebp
call fcn.00464b70
mov eax, edx
mov ecx, ebp
call fcn.00464b70
mov edi, dword [esp + 0x78]
lea esi, [esp + 0xa4]
call fcn.004651ce
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 0x4d6c18
cmp eax, esi
jbe 0x4d6c39
mov dword [esp + 0x48], esi
lea ebx, [esi + esi*4]
lea ebx, [edx + ebx*4]
lea edi, [esp + 0xa4]
mov esi, ebx
call fcn.004651ce
cmp eax, ebp
jbe 0x4d6c30
mov dword [esp + 0x44], ebp
mov ecx, dword [0x6d0ed8]
lea esi, [ebp + ebp*4]
lea esi, [edx + esi*4]
mov dword [esp + 0x78], esi
test ecx, ecx
je 0x4d6bcb
mov dword [esp + 0x74], ebx
lea eax, [0x562440]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
call fcn.004113d0
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.004651ce
mov ecx, dword [0x6d0ed8]
test ecx, ecx
je 0x4d6b2a
lea eax, [0x562440]
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.004113d0
mov eax, dword [esp + 0xc4]
mov edx, dword [esp + 0xc0]
mov ebp, dword [esp + 0x44]
jmp 0x4d6b2a
sub ecx, edi
sub ebx, ecx
lea ecx, [ebx - 1]
movzx ebx, byte [esp + 0x2f]
test bl, bl
mov eax, 1
jmp 0x4d67bb
mov ecx, eax
mov eax, ebp
call fcn.00464b70
mov ecx, eax
mov eax, esi
call fcn.00464b70
nop
call fcn.004636f0
jmp fcn.004d6610