Function at 0x4e4f28
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x4e51dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [0x50aa70], 0x50aa58
push 0x50aa58
call sub.kernel32.dll_InitializeCriticalSection_1
call fcn.004e5cac
push 0xffffffffffffffff
push 0x4e4ef8
call sub.kernel32.dll_SetConsoleCtrlHandler
call fcn.004e7df0
call fcn.004d5de8
call fcn.004e5244
lea eax, [ebp - 0x20]
call fcn.004d3fbc
push dword [ebp - 0x20]
push 0x4e51f8
lea eax, [ebp - 0x24]
mov edx, dword [0x4f11a4]
mov edx, dword [edx]
call fcn.0040aa28
push dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.0040ac9c
mov eax, dword [ebp - 0x1c]
call fcn.0040a9c0
mov edx, eax
mov eax, dword [0x4f1108]
call fcn.004d4100
mov eax, dword [0x4f1108]
call fcn.004d40f0
mov ecx, eax
mov edx, dword [0x4f1108]
mov eax, dword [0x4f1108]
call fcn.004d9bec
mov eax, 0x50a814
xor edx, edx
call fcn.004d7e34
call fcn.004e59dc
mov eax, dword [0x4f1108]
call fcn.004e5504
mov ebx, eax
cmp word [0x50a814], 0x5c
jne 0x4e5067
cmp word [0x50a816], 0x5c
jne 0x4e5067
cmp byte [0x4f09de], 0
jne 0x4e5067
push 0
lea edx, [ebp - 0x28]
mov eax, dword [0x4f13d0]
call fcn.0040d7c0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], 0x50a814
mov byte [ebp - 0x2c], 0xa
lea ecx, [ebp - 0x30]
mov edx, 1
call fcn.004e6fc4
push 0x105
push 0x50a814
call sub.kernel32.dll_GetWindowsDirectoryW
mov eax, 0x50a814
mov dl, 1
call fcn.004d8258
call sub.kernel32.dll_GetConsoleOutputCP_1
mov dword [0x50aa34], eax
push 0x50aa20
mov eax, dword [0x50aa34]
push eax
call sub.kernel32.dll_GetCPInfo
call fcn.004d4694
mov eax, 0x20c
call fcn.004066cc
mov dword [0x50aa50], eax
mov eax, 0x20c
call fcn.004066cc
mov dword [0x50aa54], eax
cmp dword [0x50aa50], 0
je 0x4e50d6
cmp dword [0x50aa54], 0
je 0x4e50d6
push 0x104
mov eax, dword [0x50aa54]
push eax
call sub.kernel32.dll_GetConsoleTitleW
mov edx, dword [0x50aa54]
mov eax, dword [0x50aa50]
call fcn.004d4100
cmp byte [0x4f09dd], 0
jne 0x4e512c
mov eax, 1
call fcn.004d7dd0
test eax, eax
je 0x4e512c
cmp word [0x4f09fc], 0
je 0x4e5116
lea eax, [ebp - 0x16]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_GetConsoleScreenBufferInfo
test eax, eax
je 0x4e5116
movzx eax, word [ebp - 0xe]
mov word [0x4f09fc], ax
cmp word [0x4f09fc], 0
je 0x4e512c
movzx eax, word [0x4f09fc]
call fcn.004dd1ac
test ebx, ebx
jne 0x4e5198
push 0xffffffffffffffff
lea edx, [ebp - 0x34]
mov eax, dword [0x4f0f18]
call fcn.0040d7c0
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
xor edx, edx
call fcn.004e6f4c
cmp byte [0x4f09f6], 0
je 0x4e5173
push 0xffffffffffffffff
lea edx, [ebp - 0x38]
mov eax, dword [0x4f1118]
call fcn.0040d7c0
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
xor edx, edx
call fcn.004e6f4c
jmp 0x4e5198
cmp byte [0x4f09f4], 0
je 0x4e5198
push 0xffffffffffffffff
lea edx, [ebp - 0x3c]
mov eax, dword [0x4f0f1c]
call fcn.0040d7c0
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x34]
xor edx, edx
call fcn.004e6f4c
push 0x4e5204
push 0x4e5228
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040f3d8
mov edx, dword [0x4f1290]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e51e4
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00409ec8
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.00409ec8
ret