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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xb0
mov edi, dword [0x6dd4e0]
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x44], edx
mov dword [ecx], edi
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
lea ecx, [esp + 0x68]
push esi
push eax
push dword [ebp + 8]
call fcn.0045fa60
add esp, 0xc
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0xa4]
mov ecx, dword [esp + 0x80]
mov ebx, dword [esp + 0x98]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], 0
mov esi, eax
mov dword [esp + 0x4c], eax
mov byte [esp + 7], al
mov eax, dword [esp + 0x70]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0xc], ebx
and esi, 0xffffff00
mov dword [esp + 0x5c], esi
mov esi, edx
sub esi, ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x54], esi
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x48], ecx
neg ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x9c]
mov edi, ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x50], eax
cmp edi, 1
jne 0x4ed8b0
mov ecx, dword [esp + 0x28]
lea eax, [ecx + edx - 1]
cmp eax, dword [esp + 0x10]
jae 0x4edc9e
movzx edi, byte [esp + 7]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x40], esi
or edi, dword [esp + 0x5c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 8], ecx
mov dword [esp + 0x38], edi
jmp 0x4ed9f7
mov eax, 0xff0000
mov dl, byte [esp + 7]
test dword [esp + 0x4c], eax
je 0x4ed8e1
jmp 0x4edc9e
mov ecx, 0xff0000
add esi, eax
test dword [esp + 0x4c], ecx
jne 0x4edc9e
mov eax, edx
test esi, esi
je 0x4ed906
cmp dword [esp + 0x10], esi
jbe 0x4ed900
cmp byte [ebx + esi], 0xbf
jg 0x4ed906
jmp 0x4edd5e
jne 0x4edd5e
mov edx, eax
xor dl, 1
cmp esi, dword [esp + 0x10]
je 0x4edb80
movzx ecx, byte [ebx + esi]
test cl, cl
jns 0x4ed98a
movzx ebx, byte [ebx + esi + 1]
mov ah, dl
mov edx, ecx
and edx, 0x1f
and ebx, 0x3f
cmp cl, 0xdf
jbe 0x4ed96a
mov edi, esi
mov esi, dword [esp + 0xc]
shl ebx, 6
movzx esi, byte [esi + edi + 2]
and esi, 0x3f
or esi, ebx
cmp cl, 0xf0
jb 0x4ed977
mov ebx, dword [esp + 0xc]
shl esi, 6
and edx, 7
shl edx, 0x12
movzx ecx, byte [ebx + edi + 3]
and ecx, 0x3f
or ecx, esi
mov esi, edi
mov edi, dword [esp + 0x3c]
or ecx, edx
jmp 0x4ed988
shl edx, 6
or edx, ebx
mov ebx, dword [esp + 0xc]
mov ecx, edx
jmp 0x4ed988
shl edx, 0xc
mov ebx, dword [esp + 0xc]
or esi, edx
mov ecx, esi
mov esi, edi
mov edi, dword [esp + 0x3c]
mov dl, ah
test al, al
jne 0x4edba0
cmp ecx, 0x110000
je 0x4edc9e
mov eax, 1
cmp ecx, 0x80
jb 0x4ed8d0
mov eax, 2
cmp ecx, 0x800
jb 0x4ed8d0
cmp ecx, 0x10000
mov eax, 4
sbb eax, 0
jmp 0x4ed8d0
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 8]
lea eax, [eax + edx - 1]
cmp eax, dword [esp + 0x10]
jae 0x4edc9e
mov cl, byte [ebx + eax]
xor eax, eax
mov esi, 1
shld eax, esi, cl
mov esi, 1
shl esi, cl
test cl, 0x20
mov ecx, 0
cmovne eax, esi
cmovne esi, ecx
and esi, dword [esp + 0x64]
and eax, edi
or esi, eax
je 0x4edab0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
cmova ecx, eax
cmp dword [esp + 0x20], 0xffffffff
cmove ecx, eax
mov eax, edx
cmp ecx, edx
mov edx, dword [esp + 8]
cmova eax, ecx
lea esi, [ebx + edx]
mov ebx, ecx
nop dword [eax]
cmp eax, ebx
je 0x4edad0
mov edx, dword [esp + 8]
lea edi, [edx + ebx]
cmp edi, dword [esp + 0x10]
jae 0x4edd1e
mov edx, dword [esp + 0x50]
lea edi, [ebx + 1]
movzx edx, byte [edx + ebx]
cmp dl, byte [esi + ebx]
mov ebx, edi
je 0x4eda50
mov eax, dword [esp + 8]
add eax, dword [esp + 0x60]
add eax, edi
cmp dword [esp + 0x20], 0xffffffff
mov dword [esp + 8], eax
jne 0x4ed9d3
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x38]
jmp 0x4ed9e5
add dword [esp + 8], edx
xor eax, eax
cmp dword [esp + 0x20], 0xffffffff
jne 0x4ed9e1
jmp 0x4ed9e5
cmp dword [esp + 0x20], 0xffffffff
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0xc]
mov eax, 0
cmove esi, eax
nop dword [eax]
cmp esi, ecx
jae 0x4edb50
dec ecx
cmp ecx, edx
jae 0x4edd3a
mov eax, dword [esp + 8]
add eax, ecx
cmp eax, dword [esp + 0x10]
jae 0x4edd49
mov edi, dword [esp + 0x50]
movzx ebx, byte [edi + ecx]
mov edi, dword [esp + 0xc]
cmp bl, byte [edi + eax]
mov ebx, dword [esp + 0xc]
je 0x4edaf0
mov eax, dword [esp + 8]
mov edi, dword [esp + 0x38]
add eax, dword [esp + 0x58]
cmp dword [esp + 0x20], 0xffffffff
mov dword [esp + 8], eax
mov eax, dword [esp + 0x54]
jne 0x4ed9e1
jmp 0x4ed9e5
mov eax, dword [esp + 8]
cmp dword [esp + 0x20], 0xffffffff
mov esi, dword [esp + 0x40]
lea ecx, [eax + edx]
mov edx, dword [esp + 0x2c]
mov eax, 0
cmovne edx, eax
mov eax, ecx
mov dword [esp + 0x20], edx
mov dl, byte [esp + 7]
jmp 0x4edbb0
test al, al
mov eax, dword [esp + 0x10]
mov esi, eax
mov ecx, eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
jne 0x4edbb0
jmp 0x4edc9e
mov eax, dword [esp + 0x28]
mov ecx, esi
mov dword [esp + 8], esi
nop word [eax + eax]
test ebx, ebx
je 0x4edd0c
mov dword [esp + 0x28], eax
mov byte [esp + 7], dl
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 8]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x40], esi
add edi, eax
add edx, eax
mov eax, dword [esp + 0x1c]
sub edx, edi
mov ebx, edi
mov edi, edx
mov eax, dword [eax + 4]
sub eax, dword [esp + 0x24]
cmp eax, edx
jb 0x4edc64
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
add ecx, esi
push edi
push ebx
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x1c]
add esi, edi
mov edx, esi
mov dword [eax + 8], esi
mov eax, dword [eax + 4]
sub eax, esi
cmp eax, dword [ebp + 0x18]
jb 0x4edc85
mov esi, dword [esp + 0x1c]
mov ebx, dword [ebp + 0x18]
mov edi, edx
mov eax, dword [esi]
mov dword [esp + 0x18], eax
add eax, edx
push ebx
push dword [ebp + 0x14]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
add edi, ebx
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0xc]
mov dword [esi + 8], edi
mov dword [esp + 0x24], edi
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
cmp edi, 1
jne 0x4ed8b0
jmp 0x4ed872
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov ecx, esi
push edi
call fcn.005f2340
add esp, 4
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov dword [esp + 0x24], eax
jmp 0x4edbf1
mov esi, dword [esp + 0x1c]
mov ecx, esi
push dword [ebp + 0x18]
call fcn.005f2340
add esp, 4
mov edx, dword [esi + 8]
jmp 0x4edc17
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x30]
mov ecx, dword [ebp + 8]
mov edi, dword [esp + 0x24]
mov eax, dword [eax + 4]
add esi, edx
add ecx, edx
mov edx, edi
sub ecx, esi
mov ebx, esi
sub eax, edi
mov edi, ecx
cmp eax, ecx
jb 0x4edcf2
mov eax, dword [esp + 0x14]
mov esi, edx
add eax, edx
push edi
push ebx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x1c]
add esi, edi
mov dword [eax + 8], esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [esp + 0x1c]
mov ecx, esi
push edi
call fcn.005f2340
add esp, 4
mov eax, dword [esi]
mov edx, dword [esi + 8]
mov dword [esp + 0x14], eax
jmp 0x4edcce
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], 0
jmp 0x4edca6
add ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
cmp edx, ecx
cmova ecx, edx
push 0x6dd4b0
call fcn.0045a150
add esp, 4
ud2
push 0x6dd4c0
call fcn.0045a150
add esp, 4
ud2
mov edx, dword [esp + 0x10]
mov ecx, eax
push 0x6dd4d0
call fcn.0045a150
add esp, 4
ud2
mov edx, dword [esp + 0x10]
mov ecx, ebx
push 0x6dd4e8
push edx
push esi
call fcn.0045d720
add esp, 0xc
ud2