Function at 0x4037e8
Capabilities:
Get common file path
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x803be7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1ccc
call fcn.0040bc20
push ebx
push esi
xor esi, esi
cmp dword [0xc6ada4], 0x5b1
push edi
jne 0x403888
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
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea eax, [esp + 0x1c]
call fcn.00403b41
push esi
mov dword [esp + 0x1ce8], esi
call fcn.004046d6
pop ecx
call fcn.00404674
lea ecx, [esp + 0x10]
call fcn.0040336c
lea ecx, [esp + 0x10]
call fcn.00403385
push esi
push esi
call fcn.004049f3
push esi
call reloc.KERNEL32.dll_TerminateProcess
add esp, 0xc
push esi
call fcn.00404e0c
add dword [0xc6ada4], 0x1134b
push dword [0xc6ada4]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0xc43f40], eax
call fcn.00403733
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 0x4038d1
inc edi
cmp edi, 0x4f6a4
jl 0x4038b1
xor edi, edi
cmp dword [0xc6ada4], esi
jbe 0x40392f
cmp dword [0xc6ada4], 0xa8
mov eax, dword [0xc6b808]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0xc43f40]
mov byte [ecx + edi], al
jne 0x403926
push 0x402de8
push esi
call dword [sym.imp.KERNEL32.dll_SetComputerNameExW]
push 0x402e20
lea eax, [esp + 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
inc edi
cmp edi, dword [0xc6ada4]
jb 0x4038db
xor edi, edi
mov eax, dword [0xc6ada4]
add eax, edi
cmp eax, 0xe
jne 0x403995
push esi
lea eax, [esp + 0xdc]
push eax
push esi
push 0x402e70
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 0x402e88
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
push 0x402ed8
push 0x402ef8
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
lea eax, [esp + 0x14e0]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
inc edi
cmp edi, 0x39621
jl 0x403931
call fcn.00403617
xor edi, edi
call ebx
cmp edi, 0x26
jne 0x4039b1
call fcn.00403719
inc edi
cmp edi, 0x6753f
jl 0x4039a5
push 0x7b
pop edi
cmp dword [0xc6ada4], 0x86
jne 0x403a22
push esi
push esi
push esi
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
push 0x402f18
push 0x402f80
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
push esi
push esi
push esi
push 0x402ff4
push 0x403000
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 [0xc6ada4], 0xf
jne 0x403a33
push esi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
dec edi
jne 0x4039bd
push 0x403010
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