Function at 0x403893
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46ba97
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1ccc
call fcn.0040bca0
push ebx
push esi
xor esi, esi
cmp dword [0x51e590], 0x5b1
push edi
jne 0x40394f
push esi
lea eax, [esp + 0xdc]
push eax
push esi
push 0x402d98
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
push esi
push esi
push esi
call sub.KERNEL32.dll_GetSystemTimes
lea eax, [esp + 0x1c]
call fcn.00403c09
push esi
mov dword [esp + 0x1ce8], esi
call fcn.004047a5
pop ecx
call fcn.00404743
push 0x402de8
lea ecx, [esp + 0x10]
call fcn.004033b0
lea ecx, [esp + 0xc]
call fcn.004033cc
lea ecx, [esp + 0xc]
call fcn.00403412
lea ecx, [esp + 0xc]
call fcn.0040342b
push esi
push esi
call fcn.00404ac2
push esi
call fcn.00404a93
add esp, 0xc
push esi
call fcn.00404edb
add dword [0x51e590], 0x1134b
push dword [0x51e590]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x51d4e0], eax
call fcn.004037de
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, 0x206d47
jg 0x403998
inc edi
cmp edi, 0x4f6a4
jl 0x403978
xor edi, edi
cmp dword [0x51e590], esi
jbe 0x4039f6
cmp dword [0x51e590], 0xa8
mov eax, dword [0x51e594]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x51d4e0]
mov byte [ecx + edi], al
jne 0x4039ed
push 0x402df8
push esi
call dword [sym.imp.KERNEL32.dll_SetComputerNameExW]
push 0x402e30
lea eax, [esp + 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
inc edi
cmp edi, dword [0x51e590]
jb 0x4039a2
xor edi, edi
mov eax, dword [0x51e590]
add eax, edi
cmp eax, 0xe
jne 0x403a5c
push esi
lea eax, [esp + 0xdc]
push eax
push esi
push 0x402e80
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
push esi
lea eax, [esp + 0x8dc]
push eax
push esi
push 0x402e98
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
push 0x402ee8
push 0x402f24
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push esi
push esi
lea eax, [esp + 0x14e0]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
inc edi
cmp edi, 0x39621
jl 0x4039f8
call fcn.004036c6
xor edi, edi
call ebx
cmp edi, 0x26
jne 0x403a78
call fcn.004037c4
inc edi
cmp edi, 0x6753f
jl 0x403a6c
push 0x7b
pop edi
cmp dword [0x51e590], 0x86
jne 0x403ae9
push esi
push esi
push esi
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
push 0x402f68
push 0x402fd0
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
push esi
push esi
push esi
push 0x403044
push 0x403050
push esi
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push esi
lea eax, [esp + 0x10dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push esi
lea eax, [esp + 0x4dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp dword [0x51e590], 0xf
jne 0x403afa
push esi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
dec edi
jne 0x403a84
push 0x403060
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [esp + 0x1cdc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret