Function at 0x50e138
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff3c
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x50e184
add esp, 0xfffffff0
call fcn.00404284
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x50e3c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xa4], 0x94
lea eax, [ebp - 0xa4]
push eax
call sub.kernel32.dll_GetVersionExA
mov esi, dword [ebp - 0x94]
mov eax, esi
sub eax, 1
jb 0x50e1c4
je 0x50e1d3
dec eax
je 0x50e1e2
jmp 0x50e209
lea eax, [ebp - 0x10]
mov edx, 0x50e3f8
call fcn.00404ef4
jmp 0x50e209
lea eax, [ebp - 0x10]
mov edx, 0x50e40c
call fcn.00404ef4
jmp 0x50e209
mov eax, dword [ebp - 0xa0]
sub eax, 5
jne 0x50e1fc
lea eax, [ebp - 0x10]
mov edx, 0x50e424
call fcn.00404ef4
jmp 0x50e209
lea eax, [ebp - 0x10]
mov edx, 0x50e438
call fcn.00404ef4
cmp esi, 1
je 0x50e214
mov byte [ebx + 0x50], 1
jmp 0x50e218
mov byte [ebx + 0x50], 0
push 0
push 0x50e444
call sub.user32.dll_FindWindowA
test eax, eax
jbe 0x50e250
lea edx, [ebp - 0xc]
push edx
push eax
call sub.user32.dll_GetWindowThreadProcessId
lea ecx, [ebp - 0xa8]
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0050e6ec
mov edx, dword [ebp - 0xa8]
lea eax, [ebx + 0x60]
call fcn.00404eb0
push dword [ebp - 0x10]
push 0x50e454
mov eax, dword [ebp - 0x98]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xac]
call fcn.0040c054
push dword [ebp - 0xac]
push 0x50e468
lea eax, [ebp - 0xb0]
lea edx, [ebp - 0x90]
mov ecx, 0x80
call fcn.004050cc
push dword [ebp - 0xb0]
push 0x50e474
lea eax, [ebx + 0x70]
mov edx, 6
call fcn.004051f8
lea eax, [ebx + 0x64]
mov edx, 0xff
call fcn.004054c4
lea eax, [ebx + 0x68]
mov edx, 0xff
call fcn.004054c4
mov eax, dword [ebx + 0x64]
call fcn.00405138
push eax
mov eax, dword [ebx + 0x64]
call fcn.00405338
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, dword [ebx + 0x68]
call fcn.00405138
push eax
mov eax, dword [ebx + 0x68]
call fcn.00405338
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov eax, dword [ebx + 0x68]
call fcn.00405338
mov edx, eax
lea eax, [ebp - 0xb4]
call fcn.00405054
mov edx, dword [ebp - 0xb4]
lea eax, [ebx + 0x68]
mov ecx, 0x50e480
call fcn.00405184
mov eax, dword [ebx + 0x64]
call fcn.00405338
mov edx, eax
lea eax, [ebp - 0xb8]
call fcn.00405054
mov edx, dword [ebp - 0xb8]
lea eax, [ebx + 0x64]
mov ecx, 0x50e480
call fcn.00405184
mov dl, 1
mov eax, dword [0x41f728]
call fcn.00403edc
mov dword [ebx + 0x54], eax
lea edx, [ebp - 0xbc]
mov eax, ebx
call fcn.0050e4d4
push dword [ebp - 0xbc]
lea edx, [ebp - 0xc4]
mov eax, ebx
call fcn.0050f4a0
mov eax, dword [ebp - 0xc4]
lea edx, [ebp - 0xc0]
call fcn.0040ba14
push dword [ebp - 0xc0]
push 0x50e48c
lea eax, [ebx + 0x6c]
mov edx, 3
call fcn.004051f8
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.0042ade8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50e3cf
lea eax, [ebp - 0xc4]
mov edx, 8
call fcn.00404e80
lea eax, [ebp - 0x10]
call fcn.00404e5c
ret