Function at 0x4037f3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4208a7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x20cc
call fcn.0040bc00
push ebx
push esi
xor esi, esi
cmp dword [0x4d3590], 0x5b1
push edi
jne 0x4038af
push esi
lea eax, [esp + 0xdc]
push eax
push esi
push 0x402d90
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
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.00403b6a
push esi
mov dword [esp + 0x20e8], esi
call fcn.00404705
pop ecx
call fcn.004046a3
push 0x402dd0
lea ecx, [esp + 0x10]
call fcn.00403310
lea ecx, [esp + 0xc]
call fcn.0040332c
lea ecx, [esp + 0xc]
call fcn.00403372
lea ecx, [esp + 0xc]
call fcn.0040338b
push esi
push esi
call fcn.00404a22
push esi
call fcn.004049f3
add esp, 0xc
push esi
call fcn.00404e3b
add dword [0x4d3590], 0x1134b
push dword [0x4d3590]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x4d24e0], eax
call fcn.0040373e
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 0x4038f8
inc edi
cmp edi, 0x4f6a4
jl 0x4038d8
xor edi, edi
cmp dword [0x4d3590], esi
jbe 0x403957
cmp dword [0x4d3590], 0xa8
mov eax, dword [0x4d3594]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x4d24e0]
mov byte [ecx + edi], al
jne 0x40394e
push 0x402de0
push esi
call dword [sym.imp.KERNEL32.dll_SetComputerNameExW]
push 0x402e08
lea eax, [esp + 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
inc edi
cmp edi, dword [0x4d3590]
jb 0x403902
xor edi, edi
mov eax, dword [0x4d3590]
add eax, edi
cmp eax, 0xe
jne 0x4039bd
push esi
lea eax, [esp + 0xdc]
push eax
push esi
push 0x402df4
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push esi
lea eax, [esp + 0xcdc]
push eax
push esi
push 0x402e80
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
push 0x402ef8
push 0x402f04
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push esi
push esi
lea eax, [esp + 0x18e0]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
inc edi
cmp edi, 0x39621
jl 0x403959
call fcn.00403626
xor edi, edi
call ebx
cmp edi, 0x26
jne 0x4039d9
call fcn.00403724
inc edi
cmp edi, 0x6753f
jl 0x4039cd
push 0x7b
pop edi
cmp dword [0x4d3590], 0x86
jne 0x403a4a
push esi
push esi
push esi
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
push 0x402f30
push 0x402f64
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
push esi
push esi
push esi
push 0x402f7c
push 0x402f9c
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 + 0x14dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push esi
lea eax, [esp + 0x8dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp dword [0x4d3590], 0xf
jne 0x403a5b
push esi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
dec edi
jne 0x4039e5
push 0x402fd0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [esp + 0x20dc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret