Function at 0x4e170e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5366b2
mov eax, dword fs:[0]
push eax
mov eax, 0x56ac
call fcn.004f5c90
mov eax, dword [0x583d10]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
xor ebx, ebx
push 0x208
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004f2e30
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4e1784
push ebx
push 1
jmp 0x4e19e0
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4e178d
sub ecx, edx
sar ecx, 1
je 0x4e17c6
cmp word [ebp + ecx*2 - 0x21e], 0x5c
jne 0x4e17c6
lea ecx, [ecx*2 - 2]
cmp ecx, 0x20a
jae 0x4e1a06
xor eax, eax
mov word [ebp + ecx - 0x21c], ax
push ecx
push ecx
mov esi, esp
lea eax, [ebp - 0x21c]
push eax
mov dword [esi], eax
call fcn.00416680
pop ecx
lea ecx, [ebp - 0x470]
mov dword [esi + 4], eax
call fcn.004195a0
xor eax, eax
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], ebx
mov word [ebp - 0x440], ax
push 0x208
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x426]
push ebx
push eax
mov byte [ebp - 4], 2
call fcn.004f2e30
add esp, 0xc
lea eax, [ebp - 0x428]
mov esi, 0x104
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x458]
call fcn.00417260
push 0x5506f3
lea ecx, [ebp - 0x488]
mov byte [ebp - 4], 3
call fcn.004170e0
lea eax, [ebp - 0x488]
mov byte [ebp - 4], 4
push eax
call fcn.004e4c80
push ecx
lea eax, [ebp - 0x488]
mov ecx, esp
push eax
call fcn.0041a630
lea eax, [ebp - 0x4a0]
push eax
call fcn.004286a0
add esp, 0xc
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 5
jb 0x4e189b
mov eax, dword [eax]
push esi
push eax
lea eax, [ebp - 0x56b0]
push eax
call fcn.00427870
add esp, 0xc
mov byte [ebp - 4], 4
xor esi, esi
lea ecx, [ebp - 0x4a0]
inc esi
push ebx
push esi
call fcn.00417d20
cmp dword [ebp - 0x444], 8
lea eax, [ebp - 0x458]
push 0x104
cmovae eax, dword [ebp - 0x458]
push eax
lea eax, [ebp - 0x5098]
push eax
call fcn.00427870
cmp dword [ebp - 0x45c], 8
lea eax, [ebp - 0x470]
push 0x104
cmovae eax, dword [ebp - 0x470]
push eax
lea eax, [ebp - 0x52a0]
push eax
call fcn.00427870
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push 0x104
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x4e7c]
push eax
call fcn.00427870
add esp, 0x24
lea eax, [ebp - 0x56b0]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push esi
call fcn.004e2cd0
add esp, 0x14
test al, al
je 0x4e19a9
lea eax, [ebp - 0x4c74]
push eax
call fcn.00416680
pop ecx
push eax
lea eax, [ebp - 0x4c74]
push eax
lea ecx, [ebp - 0x440]
call fcn.00417b50
lea ecx, [ebp - 0x4b0]
call fcn.0042a060
push eax
lea eax, [ebp - 0x440]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x56b8]
push eax
call fcn.0042a0b0
add esp, 0xc
lea ecx, [ebp - 0x56b8]
call fcn.00429ff0
lea ecx, [ebp - 0x4b0]
mov byte [ebp - 4], 4
call fcn.0042a0a0
push ebx
push esi
lea ecx, [ebp - 0x488]
call fcn.004178d0
push ebx
push esi
lea ecx, [ebp - 0x458]
call fcn.00417d20
push ebx
push esi
lea ecx, [ebp - 0x440]
call fcn.00417d20
lea ecx, [ebp - 0x470]
mov byte [ebp - 4], bl
call fcn.00419620
push ebx
push esi
lea ecx, [ebp + 0xc]
call fcn.00417d20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f225b
mov esp, ebp
pop ebp
ret 0x1c
call fcn.004f5df3
int3