Function at 0x50e028
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040483c
mov eax, dword [ebp - 8]
call fcn.0040483c
xor eax, eax
push ebp
push 0x50e364
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x28]
mov eax, dword [ebx + 0x480]
mov edx, 0x66
call fcn.004bdc34
mov eax, dword [ebp - 0x28]
mov edx, 0x50e378
call fcn.00404c10
je 0x50e32c
lea eax, [ebp - 0x24]
mov edx, 0xff
call fcn.004049d8
push 0xff
mov eax, dword [ebp - 0x24]
call fcn.0040484c
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov eax, dword [ebp - 0x24]
call fcn.0040484c
mov edx, eax
lea eax, [ebp - 0x24]
call fcn.00404584
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x24]
call fcn.0040464c
mov edx, eax
mov ecx, 1
mov eax, dword [ebp - 0x24]
call fcn.004048ac
mov eax, dword [ebp - 0x2c]
mov edx, 0x50e384
call fcn.00404798
jne 0x50e10c
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x24]
call fcn.0040464c
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x24]
call fcn.004048ac
mov eax, dword [ebx + 0x480]
mov edx, dword [eax]
call dword [edx + 0xc4]
mov eax, dword [ebx + 0x480]
call fcn.0046499c
call sub.user32.dll_GetDesktopWindow
push eax
call sub.user32.dll_GetDC
mov edi, eax
mov ecx, ebx
mov dl, 1
mov eax, dword [0x437078]
call fcn.00438968
mov esi, eax
xor edx, edx
mov eax, esi
call fcn.00464380
mov eax, dword [ebx + 0x480]
mov edx, dword [eax + 0x48]
mov eax, esi
call fcn.00463bf4
mov eax, dword [ebx + 0x480]
mov edx, dword [eax + 0x4c]
mov eax, esi
call fcn.00463c18
mov eax, dword [ebx + 0x480]
mov edx, dword [eax + 0x40]
mov ecx, dword [ebx + 0x314]
add edx, dword [ecx + 0x40]
mov dword [ebp - 0x10], edx
mov eax, dword [eax + 0x44]
mov edx, dword [ebx + 0x314]
add eax, dword [edx + 0x44]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.00463f78
mov eax, dword [ebx + 0x480]
call fcn.004c0e60
cmp ax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x19], al
cmp byte [ebp - 0x19], 0
je 0x50e1c2
mov eax, dword [ebx + 0x480]
call fcn.004c0d00
push 0xc000ca
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push edi
mov eax, dword [ebx + 0x480]
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [ebx + 0x480]
mov eax, dword [eax + 0x48]
push eax
push 0
push 0
mov eax, esi
call fcn.00438d3c
call fcn.00429eb4
push eax
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x30]
call fcn.004e3a58
lea eax, [ebp - 0x30]
mov edx, 0x50e390
call fcn.00404654
mov edx, dword [ebp - 0x30]
mov eax, dword [esi + 0x168]
call fcn.0042bef8
cmp byte [ebp - 0x19], 0
je 0x50e22e
mov eax, dword [ebx + 0x480]
call fcn.004c0cb0
mov eax, esi
call fcn.00403558
push edi
mov eax, ebx
call fcn.0046ace0
push eax
call sub.user32.dll_ReleaseDC
mov dl, 1
mov eax, dword [0x43aef8]
call fcn.0043aff8
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x50e325
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000001
mov eax, dword [ebp - 0x20]
call fcn.0043b098
xor ecx, ecx
mov edx, 0x50e3bc
mov eax, dword [ebp - 0x20]
call fcn.0043b100
lea ecx, [ebp - 0x34]
mov edx, 0x50e3dc
mov eax, dword [ebp - 0x20]
call fcn.0043b4a8
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
call fcn.004e3a58
lea eax, [ebp - 0x38]
mov edx, 0x50e390
call fcn.00404654
mov edx, dword [ebp - 0x38]
pop eax
call fcn.00404798
je 0x50e2b5
call fcn.004e3890
lea eax, [ebp - 0x3c]
call fcn.004e3a58
lea eax, [ebp - 0x3c]
mov edx, 0x50e390
call fcn.00404654
mov ecx, dword [ebp - 0x3c]
mov edx, 0x50e3dc
mov eax, dword [ebp - 0x20]
call fcn.0043b47c
mov ecx, dword [ebp - 4]
mov edx, 0x50e3f0
mov eax, dword [ebp - 0x20]
call fcn.0043b47c
mov ecx, dword [ebp - 8]
mov edx, 0x50e408
mov eax, dword [ebp - 0x20]
call fcn.0043b47c
push 2
push 0
push 0
push 0x14
call sub.user32.dll_SystemParametersInfoA
mov eax, dword [ebp - 0x20]
call fcn.0043b068
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50e32c
mov eax, dword [ebp - 0x20]
call fcn.00403558
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50e36b
lea eax, [ebp - 0x3c]
mov edx, 5
call fcn.004043b0
lea eax, [ebp - 0x28]
call fcn.00404a98
lea eax, [ebp - 0x24]
call fcn.0040438c
lea eax, [ebp - 8]
mov edx, 2
call fcn.004043b0
ret