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

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x58
xor edx, edx
push ebx
push ebp
push esi
cmp ecx, edx
push edi
je 0x4d536a
mov eax, dword [esp + 0x70]
cmp eax, edx
je 0x4d536a
cmp word [ecx], dx
mov edi, dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
jle 0x4d5318
jmp 0x4d501e
mov ecx, dword [esp + 0x6c]
mov eax, dword [ecx + 0xc]
mov edx, dword [esp + 0x18]
movsx eax, word [eax + edx*2]
test eax, eax
mov dword [esp + 0x1c], eax
jl 0x4d535d
mov edx, dword [ecx + 4]
mov ecx, edi
lea esi, [edx + eax*8]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], esi
lea edx, [edx + eax*8]
mov eax, dword [edx]
mov dword [esp + 0x20], eax
mov ebp, dword [edx + 4]
shl eax, cl
shl ebp, cl
sub eax, ebx
sub ebp, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebp
mov eax, dword [esi]
mov esi, dword [esi + 4]
mov dword [esp + 0x2c], ebp
shl esi, cl
shl eax, cl
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x14]
sub esi, ebx
mov dword [esp + 0x4c], esi
mov esi, edx
mov edx, dword [esp + 0x6c]
sub eax, ebx
mov edx, dword [edx + 8]
lea ebp, [edx + ecx]
mov cl, byte [edx + ecx]
and ecx, 3
cmp ecx, 2
je 0x4d535d
test ecx, ecx
jne 0x4d50ef
mov ecx, dword [esp + 0x1c]
mov dl, byte [edx + ecx]
and dl, 3
cmp dl, 1
jne 0x4d50c9
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
sub eax, 8
mov dword [esp + 0x10], eax
jmp 0x4d50eb
mov ecx, dword [esp + 0x20]
add eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x24]
sar eax, 1
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x4c]
add eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x24], eax
sub esi, 8
dec ebp
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
lea edx, [esp + 0x20]
push ecx
push edx
call dword [eax]
add esp, 8
test eax, eax
jne 0x4d536f
mov edx, dword [esp + 0x10]
cmp esi, edx
jae 0x4d52df
jmp 0x4d511c
mov edx, dword [esp + 0x10]
mov al, byte [ebp + 1]
add esi, 8
inc ebp
and eax, 3
sub eax, 0
je 0x4d5201
dec eax
je 0x4d51c9
lea ecx, [esi + 8]
cmp ecx, edx
ja 0x4d535d
mov al, byte [ebp + 1]
and al, 3
cmp al, 2
jne 0x4d535d
mov eax, dword [esi]
add esi, 0x10
mov ecx, edi
add ebp, 2
shl eax, cl
sub eax, ebx
mov dword [esp + 0x40], eax
mov eax, dword [esi - 0xc]
shl eax, cl
sub eax, ebx
mov dword [esp + 0x44], eax
mov eax, dword [esi - 8]
shl eax, cl
sub eax, ebx
mov dword [esp + 0x38], eax
mov eax, dword [esi - 4]
shl eax, cl
sub eax, ebx
cmp esi, edx
mov dword [esp + 0x3c], eax
ja 0x4d5322
mov edx, dword [esi]
mov eax, dword [esi + 4]
shl edx, cl
shl eax, cl
mov ecx, dword [esp + 0x74]
push ecx
lea ecx, [esp + 0x44]
sub edx, ebx
sub eax, ebx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
lea edx, [esp + 0x54]
lea eax, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x78]
push eax
push ecx
call dword [edx + 0xc]
add esp, 0x10
test eax, eax
jne 0x4d536f
jmp 0x4d52d5
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov ecx, edi
shl eax, cl
shl edx, cl
lea ecx, [esp + 0x58]
sub eax, ebx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x74]
sub edx, ebx
push eax
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x74]
push ecx
call dword [edx + 4]
add esp, 8
test eax, eax
jne 0x4d536f
jmp 0x4d52d5
mov eax, dword [esi]
mov ecx, edi
shl eax, cl
sub eax, ebx
mov dword [esp + 0x28], eax
mov eax, dword [esi + 4]
shl eax, cl
sub eax, ebx
mov dword [esp + 0x2c], eax
cmp esi, edx
jae 0x4d5342
mov dl, byte [ebp + 1]
mov eax, dword [esi + 8]
add esi, 8
inc ebp
mov dword [esp + 0x14], ebp
mov ecx, edi
mov ebp, dword [esi + 4]
and edx, 3
shl eax, cl
shl ebp, cl
sub eax, ebx
sub ebp, ebx
cmp edx, 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebp
je 0x4d52b0
test edx, edx
jne 0x4d535d
mov ecx, dword [esp + 0x28]
add eax, ecx
lea ecx, [esp + 0x60]
cdq
sub eax, edx
mov edx, dword [esp + 0x2c]
sar eax, 1
mov dword [esp + 0x60], eax
lea eax, [edx + ebp]
cdq
sub eax, edx
lea edx, [esp + 0x28]
sar eax, 1
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x74]
push ecx
push edx
call dword [eax + 8]
add esp, 0xc
test eax, eax
jne 0x4d536f
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x28], ecx
jmp 0x4d5218
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x30]
push eax
mov eax, dword [esp + 0x74]
lea edx, [esp + 0x2c]
push ecx
push edx
call dword [eax + 8]
add esp, 0xc
test eax, eax
jne 0x4d536f
mov ebp, dword [esp + 0x14]
cmp esi, dword [esp + 0x10]
jb 0x4d5118
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
lea edx, [esp + 0x20]
push ecx
push edx
call dword [eax + 4]
add esp, 8
test eax, eax
jne 0x4d536f
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x14], ecx
inc eax
movsx ecx, word [edx]
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x4d501a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x58
ret
mov ecx, dword [esp + 0x74]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x78]
lea ecx, [esp + 0x48]
push eax
push ecx
call dword [edx + 0xc]
add esp, 0x10
jmp 0x4d52f3
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x74]
lea edx, [esp + 0x2c]
push ecx
push edx
call dword [eax + 8]
add esp, 0xc
jmp 0x4d52f3
pop edi
pop esi
pop ebp
mov eax, 0x14
pop ebx
add esp, 0x58
ret
mov eax, 6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret