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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa8
lea eax, [esp + 0x60]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.00506f70
add esp, 0x14
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x78]
mov esi, dword [esp + 0x70]
mov ebx, dword [esp + 0x94]
mov edx, eax
mov edi, eax
mov dword [esp + 0xc], eax
mov eax, ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], esi
sub edx, ecx
mov ecx, edi
mov edi, dword [esp + 0x98]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x2c], edi
mov eax, edx
sub eax, esi
mov dword [esp + 0x38], eax
mov eax, edx
neg eax
mov dword [esp + 0x34], eax
xor eax, eax
sub ecx, esi
cmovb ecx, eax
mov al, byte [esp + 0x6e]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0xc]
mov byte [esp + 3], al
mov eax, dword [esp + 0x60]
dec ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 8], ecx
lea ecx, [esi - 1]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x90]
lea ecx, [eax + edx]
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], ecx
lea ecx, [esi + edx]
mov dword [esp + 0x4c], ecx
add ecx, eax
mov dword [esp + 0x48], ecx
lea ecx, [edi + esi]
mov edi, edx
mov dh, byte [esp + 3]
mov dword [esp + 0x54], ecx
mov ch, byte [esp + 0x6c]
mov esi, dword [esp + 0x10]
mov dword [esp + 4], edi
jmp 0x4d793e
jne 0x4d7da8
test cl, cl
je 0x4d7cc5
cmp dword [esp + 0x5c], 0
mov cl, ch
jne 0x4d7a20
mov eax, dword [esp + 0x18]
test dh, dh
jne 0x4d7cc3
mov ch, cl
xor ch, 1
test eax, eax
je 0x4d796e
cmp ebx, eax
jbe 0x4d7930
cmp byte [esi + eax], 0xbf
jle 0x4d7da8
cmp ebx, eax
je 0x4d7936
mov dl, byte [esi + eax]
movzx eax, dl
test dl, dl
js 0x4d7985
test cl, cl
jne 0x4d793e
jmp 0x4d7cdd
mov edi, dword [esp + 0x18]
and eax, 0x1f
movzx edi, byte [esi + edi + 1]
and edi, 0x3f
cmp dl, 0xdf
jbe 0x4d79e7
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x18]
shl edi, 6
movzx esi, byte [esi + ebx + 2]
and esi, 0x3f
or esi, edi
cmp dl, 0xf0
jb 0x4d79f9
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
and eax, 7
shl esi, 6
shl eax, 0x12
movzx edx, byte [edi + edx + 3]
and edx, 0x3f
or edx, esi
mov esi, edi
or eax, edx
mov dh, byte [esp + 3]
mov ebx, dword [esp + 0x14]
test cl, cl
jne 0x4d793e
jmp 0x4d7cdd
shl eax, 6
or eax, edi
test cl, cl
jne 0x4d793e
jmp 0x4d7cdd
shl eax, 0xc
or eax, esi
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test cl, cl
jne 0x4d793e
jmp 0x4d7cdd
mov edi, dword [esp + 4]
mov byte [esp + 0x6c], cl
cmp edi, ebx
je 0x4d7cc9
mov eax, dword [esp + 0xc]
lea ecx, [edi + eax - 1]
cmp ecx, ebx
jae 0x4d7cf3
mov edx, dword [esp + 0x68]
mov esi, dword [esp + 0x6c]
cmp dword [esp + 8], 0xffffffff
lea eax, [edi + eax]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x3c], esi
je 0x4d7b86
mov eax, dword [esp + 0x30]
mov esi, edi
add eax, edi
mov dword [esp + 0x1c], eax
cmp edi, esi
jne 0x4d7cf3
mov eax, dword [esp + 0x10]
xor edx, edx
mov esi, 1
xor edi, edi
mov cl, byte [eax + ecx]
mov eax, 1
shld edx, eax, cl
shl esi, cl
test cl, 0x20
cmovne edx, esi
cmovne esi, edi
and edx, dword [esp + 0x3c]
and esi, dword [esp + 0x14]
or esi, edx
je 0x4d7b00
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 8]
cmp eax, ecx
cmova ecx, eax
mov edx, ecx
nop word cs:[eax + eax]
nop
cmp edx, dword [esp + 0xc]
jae 0x4d7b30
mov eax, dword [esp + 4]
lea esi, [eax + edx]
cmp esi, ebx
jae 0x4d7d01
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
lea esi, [edx + 1]
movzx eax, byte [eax + edx]
cmp al, byte [edi + edx]
mov edx, esi
je 0x4d7ac0
add esi, dword [esp + 0x38]
jmp 0x4d7b04
mov esi, dword [esp + 0x20]
xor edx, edx
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 4]
mov dword [esp + 8], edx
lea ecx, [esi + eax]
cmp ecx, ebx
jb 0x4d7a6e
jmp 0x4d7cf3
mov eax, dword [esp + 0x24]
mov dh, byte [esp + 3]
mov edi, dword [esp + 0x20]
nop dword [eax]
cmp dword [esp + 8], eax
jae 0x4d7b79
dec eax
cmp eax, dword [esp + 0xc]
jae 0x4d7d3b
mov ecx, dword [esp + 4]
add ecx, eax
cmp ecx, ebx
jae 0x4d7d50
mov esi, dword [esp + 0x2c]
mov dl, byte [esi + eax]
mov esi, dword [esp + 0x10]
cmp dl, byte [esi + ecx]
je 0x4d7b40
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x50]
jmp 0x4d7b06
mov dword [esp + 8], 0
jmp 0x4d7ca6
mov eax, dword [esp + 0x30]
add eax, edi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
neg eax
mov dword [esp + 8], eax
mov eax, edi
mov edi, dword [esp + 0x20]
jmp 0x4d7bbe
mov ecx, dword [esp + 0x40]
add ecx, eax
cmp ecx, ebx
jae 0x4d7cf8
cmp dword [esp + 4], eax
jne 0x4d7cf8
mov eax, dword [esp + 0x10]
mov edx, 1
mov cl, byte [eax + ecx]
xor eax, eax
shld eax, edx, cl
mov edx, 1
shl edx, cl
test cl, 0x20
mov ecx, 0
cmovne eax, edx
cmovne edx, ecx
and eax, dword [esp + 0x3c]
and edx, dword [esp + 0x14]
or edx, eax
mov dh, byte [esp + 3]
mov eax, edi
je 0x4d7bb0
xor ecx, ecx
nop word cs:[eax + eax]
nop dword [eax]
cmp dword [esp + 0x58], ecx
je 0x4d7c50
mov eax, dword [esp + 0x4c]
add eax, ecx
cmp eax, ebx
jae 0x4d7d16
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x48]
mov dl, byte [eax + ecx]
lea eax, [ecx + 1]
cmp dl, byte [esi + ecx]
mov ecx, eax
je 0x4d7c10
add eax, dword [esp + 8]
jmp 0x4d7bb0
mov eax, dword [esp + 0x44]
nop word cs:[eax + eax]
nop
cmp eax, 0xffffffff
je 0x4d7c9e
mov ecx, dword [esp + 0xc]
cmp dword [esp + 0x44], ecx
jae 0x4d7d65
mov ecx, dword [esp + 4]
add ecx, eax
cmp ecx, ebx
jae 0x4d7d84
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
movzx ecx, byte [ecx + eax]
cmp cl, byte [esi + eax]
lea eax, [eax - 1]
je 0x4d7c60
mov eax, dword [esp + 0x1c]
jmp 0x4d7bb0
mov dword [esp + 8], 0xffffffff
mov eax, dword [esp + 0xc]
add dword [esp + 0x38], eax
add dword [esp + 0x28], eax
sub dword [esp + 0x34], eax
add dword [esp + 0x48], eax
add dword [esp + 0x4c], eax
jmp 0x4d7921
mov ch, cl
mov byte [esp + 0x6c], ch
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
sub edx, edi
add eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [ebp + 0xc]
cmp eax, 0x110000
mov byte [esp + 0x6c], ch
mov edi, edx
je 0x4d7cce
mov edi, dword [esp + 0x18]
jmp 0x4d7cce
mov edx, dword [ebp + 0xc]
jmp 0x4d7cce
mov edx, dword [ebp + 0xc]
mov edi, dword [esp + 4]
jmp 0x4d7cce
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x84], edx
jmp 0x4d7d2d
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x84], 0xffffffff
mov dword [esp + 0x7c], eax
add ecx, eax
cmp ebx, ecx
cmova ecx, ebx
push 0x5f5028
jmp 0x4d7d9c
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x84], edx
jmp 0x4d7d78
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x84], edx
jmp 0x4d7d97
mov ecx, dword [esp + 4]
mov dword [esp + 0x84], 0xffffffff
mov dword [esp + 0x7c], ecx
push 0x5f5038
push dword [esp + 0x10]
push eax
jmp 0x4d7d9e
mov eax, dword [esp + 4]
mov dword [esp + 0x84], 0xffffffff
mov dword [esp + 0x7c], eax
push 0x5f5048
push ebx
push ecx
call fcn.00570800
add esp, 0xc
ud2
mov byte [esp + 0x6c], ch
push 0x5f5058
push ebx
push eax
push ebx
push esi
call fcn.00570b30
add esp, 0x14
ud2