Function at 0x51d5d4
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 0x51d620
add esp, 0xfffffff0
call fcn.00404238
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x51d864
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 0x51d660
je 0x51d66f
dec eax
je 0x51d67e
jmp 0x51d6a5
lea eax, [ebp - 0x10]
mov edx, 0x51d894
call fcn.00404ea8
jmp 0x51d6a5
lea eax, [ebp - 0x10]
mov edx, 0x51d8a8
call fcn.00404ea8
jmp 0x51d6a5
mov eax, dword [ebp - 0xa0]
sub eax, 5
jne 0x51d698
lea eax, [ebp - 0x10]
mov edx, 0x51d8c0
call fcn.00404ea8
jmp 0x51d6a5
lea eax, [ebp - 0x10]
mov edx, 0x51d8d4
call fcn.00404ea8
cmp esi, 1
je 0x51d6b0
mov byte [ebx + 0x50], 1
jmp 0x51d6b4
mov byte [ebx + 0x50], 0
push 0
push 0x51d8e0
call sub.user32.dll_FindWindowA
test eax, eax
jbe 0x51d6ec
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.0051db88
mov edx, dword [ebp - 0xa8]
lea eax, [ebx + 0x60]
call fcn.00404e64
push dword [ebp - 0x10]
push 0x51d8f0
mov eax, dword [ebp - 0x98]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xac]
call fcn.00409df8
push dword [ebp - 0xac]
push 0x51d904
lea eax, [ebp - 0xb0]
lea edx, [ebp - 0x90]
mov ecx, 0x80
call fcn.00405080
push dword [ebp - 0xb0]
push 0x51d910
lea eax, [ebx + 0x70]
mov edx, 6
call fcn.004051ac
lea eax, [ebx + 0x64]
mov edx, 0xff
call fcn.00405478
lea eax, [ebx + 0x68]
mov edx, 0xff
call fcn.00405478
mov eax, dword [ebx + 0x64]
call fcn.004050ec
push eax
mov eax, dword [ebx + 0x64]
call fcn.004052ec
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, dword [ebx + 0x68]
call fcn.004050ec
push eax
mov eax, dword [ebx + 0x68]
call fcn.004052ec
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov eax, dword [ebx + 0x68]
call fcn.004052ec
mov edx, eax
lea eax, [ebp - 0xb4]
call fcn.00405008
mov edx, dword [ebp - 0xb4]
lea eax, [ebx + 0x68]
mov ecx, 0x51d91c
call fcn.00405138
mov eax, dword [ebx + 0x64]
call fcn.004052ec
mov edx, eax
lea eax, [ebp - 0xb8]
call fcn.00405008
mov edx, dword [ebp - 0xb8]
lea eax, [ebx + 0x64]
mov ecx, 0x51d91c
call fcn.00405138
mov dl, 1
mov eax, dword [0x41c644]
call fcn.00403e90
mov dword [ebx + 0x54], eax
lea edx, [ebp - 0xbc]
mov eax, ebx
call fcn.0051d970
push dword [ebp - 0xbc]
lea edx, [ebp - 0xc4]
mov eax, ebx
call fcn.0051e93c
mov eax, dword [ebp - 0xc4]
lea edx, [ebp - 0xc0]
call fcn.004097b8
push dword [ebp - 0xc0]
push 0x51d928
lea eax, [ebx + 0x6c]
mov edx, 3
call fcn.004051ac
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.00427d04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51d86b
lea eax, [ebp - 0xc4]
mov edx, 8
call fcn.00404e34
lea eax, [ebp - 0x10]
call fcn.00404e10
ret