Function at 0x4d5780
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x654d10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
mov ebx, ecx
mov eax, dword [ebx + 4]
push 0x4eb
push eax
call esi
lea ecx, [ebp - 0x50]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebx + 4]
lea edx, [ebp - 0x30]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp - 0x4c]
sub ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x24]
lea eax, [edx + ecx - 0x10]
mov ecx, dword [ebx + 4]
push 0x4ef
push ecx
mov dword [ebp - 0x24], eax
call esi
push eax
lea ecx, [ebx + 0x50]
call fcn.004d56a0
mov edx, dword [0x716734]
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x24]
push 0
push edx
mov edx, dword [ebp - 0x28]
push 0
push eax
mov eax, dword [ebp - 0x2c]
sub ecx, eax
push ecx
mov ecx, dword [ebp - 0x30]
sub edx, ecx
push edx
push eax
push ecx
push 0x50b11044
push 0
push str.RICHEDIT
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebx + 0x40], eax
mov eax, dword [ebx + 0x54]
push eax
mov eax, dword [ebx + 0x40]
push eax
call dword [sym.imp.USER32.dll_SetParent]
push 0x204
lea ecx, [ebp - 0x254]
push 0
push ecx
mov dword [ebp - 0x258], 0
call fcn.006100a0
add esp, 0xc
push 1
push 0x1a
lea edx, [ebp - 0x258]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x258]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4d5875
mov edx, dword [0x66ea40]
mov eax, 0x67559c
mov dword [edi], edx
mov esi, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4d5890
lea edi, [ebp - 0x258]
sub eax, esi
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4d58a6
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x258]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4d58d0
mov dword [edi], edx
lea edi, [ebp - 0x258]
add edi, 0xfffffffe
jmp 0x4d58f0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4d58f0
mov ecx, 9
mov esi, 0x673628
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x258]
movsw word es:[edi], word [esi]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4d5913
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebx + 0x4c]
call fcn.00401670
mov eax, dword [ebx + 0x4c]
cmp dword [eax - 4], 1
jle 0x4d5947
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebx + 0x4c]
call fcn.00401370
mov esi, dword [ebx + 0x4c]
push 0x6711ac
push esi
call fcn.00614a04
mov edi, eax
add esp, 8
mov dword [ebp - 0x10], edi
test edi, edi
je 0x4d5b19
push 2
push 0
push edi
call fcn.006167c5
push edi
call fcn.006166d6
push 0
push 0
push edi
mov dword [ebp - 0x1c], eax
call fcn.006167c5
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
add esp, 0x1c
mov ecx, 0x700724
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
mov ecx, 1
mov dword [ebp - 4], ecx
mov eax, dword [esi - 8]
mov edx, dword [ebp - 0x1c]
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x4d59c1
push edx
lea ecx, [ebp - 0x20]
call fcn.00405120
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
push edi
push edx
push 1
push esi
call fcn.00614929
mov ecx, dword [ebp - 0x10]
push ecx
mov edi, eax
call fcn.0061466b
add esp, 0x14
test edi, edi
js 0x4d5b33
cmp edi, dword [esi - 8]
jg 0x4d5b33
mov dword [esi - 0xc], edi
push esi
lea ecx, [ebx + 0x48]
mov byte [edi + esi], 0
call fcn.00405830
mov edi, dword [ebx + 0x48]
mov edx, dword [ebx + 0x40]
push edi
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x40]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [0x716734]
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x34]
push 0
push edx
mov edx, dword [ebp - 0x38]
push 0
push eax
mov eax, dword [ebp - 0x3c]
sub ecx, eax
push ecx
mov ecx, dword [ebp - 0x40]
sub edx, ecx
push edx
push eax
push ecx
push 0x50300040
push 0
push str.AtlAxWin80
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push str.file:__localhost_
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov dword [ebx + 0x44], eax
call fcn.0040bea0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x258]
lea ecx, [eax + 2]
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4d5a70
sub eax, ecx
sar eax, 1
push eax
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x18]
call fcn.00401710
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
push ecx
push 0x67350c
lea ecx, [ebx + 0x44]
call fcn.004c4890
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push 0
push ecx
mov ecx, dword [ebp - 0x18]
push ecx
push eax
call edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4d5ad3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d5af6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d5b19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx + 0x54]
mov edx, dword [ebx + 0x44]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetParent]
lea esi, [ebx + 0x74]
test esi, esi
je 0x4d5b3d
lea eax, [esi - 0x24]
jmp 0x4d5b3f
push 0x80070057
call fcn.004011d0
xor eax, eax
mov edx, dword [eax + 4]
lea ecx, [esi + 8]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
test byte [esi + 0x3c], 1
mov edi, dword [sym.imp.KERNEL32.dll_MulDiv]
je 0x4d5b77
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x28]
sub eax, dword [esi + 0x20]
sub eax, dword [esi + 0xc]
test eax, eax
jle 0x4d5ba3
push 0x2710
push eax
mov eax, dword [esi + 0x34]
push eax
call edi
jmp 0x4d5b95
mov ecx, dword [esi + 0x3c]
shr ecx, 2
test cl, 1
je 0x4d5ba3
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x28]
sub eax, dword [esi + 0x20]
sub eax, dword [esi + 0xc]
test eax, eax
jle 0x4d5ba3
sub eax, dword [esi + 0x34]
push 0
push eax
mov ecx, esi
mov byte [esi + 0x38], 0
call fcn.004c26a0
mov ecx, esi
call fcn.004c24c0
mov edx, dword [ebx + 0x44]
mov dword [ebx + 0x94], 3
mov ecx, esi
mov dword [esi], edx
call fcn.004c24c0
mov eax, dword [ebx + 0x40]
mov ecx, esi
mov dword [esi + 4], eax
call fcn.004c24c0
and dword [esi + 0x3c], 0xfffffffe
push 0x64
push 0x2710
push 0x32
call edi
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x28]
mov dword [esi + 0x34], eax
sub ecx, dword [esi + 0x20]
sub ecx, dword [esi + 0xc]
test ecx, ecx
jle 0x4d5c06
push 0x2710
push ecx
push eax
call edi
push 0
push eax
mov ecx, esi
mov byte [esi + 0x38], 0
call fcn.004c26a0
mov ecx, esi
call fcn.004c24c0
push 0x2000000
push 1
push 1
lea ecx, [ebx + 0x20]
call fcn.004d5230
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10