Function at 0xc5c707
Capabilities:
Get common file path
Get comspec environment variable
Get hostname
Get keyboard layout
Get session user name
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
xor eax, eax
push 0x104
lea ecx, [ebp - 0x10]
mov word [ebp - 0x330], ax
call fcn.00c57b76
mov eax, dword [ebp + 8]
xor edi, edi
mov esi, edi
mov edi, dword [eax]
push edi
push dword [esi*4 + 0xcf5510]
call fcn.00c7378c
pop ecx
pop ecx
test eax, eax
je 0xc5c74e
inc esi
cmp esi, 0x61
jl 0xc5c735
push 0
mov dword [ebp - 0x2c], esi
cmp esi, 0x61
mov esi, dword [ebp - 0x1c]
pop edi
je 0xc91aae
mov eax, dword [ebp - 0x2c]
cmp eax, 0x60
ja case.0xc5c768.88
jmp dword [eax*4 + 0xc5c88f]
lea eax, [esi + 0xd8]
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00c59b9c
lea ecx, [ebp - 0x10]
call fcn.00c55a64
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0xce2bb8
mov ecx, dword [ebp + 0xc]
call fcn.00c59bf8
jmp case.0xc5c768.88
lea eax, [esi + 0xc8]
jmp 0xc5c775
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00c59a20
mov dword [esi], edi
mov dword [esi + 0xc], 1
jmp case.0xc5c768.88
push 0xd0ad7c
jmp 0xc5c796
push 0xd0a470
jmp 0xc5c796
push 0xd0ad80
jmp 0xc5c796
push 0x26
jmp 0xc91d08
push 0x2b
jmp 0xc91d08
push 5
jmp 0xc91d08
push 0x23
jmp 0xc91d08
push 0x19
jmp 0xc91d08
push 0x2e
jmp 0xc91d08
push 0x1f
jmp 0xc91d08
push 0x17
jmp 0xc91d08
push 0x16
jmp 0xc91d08
push 0x18
jmp 0xc91d08
push 0x1c
jmp 0xc91d08
push 0x1a
jmp 0xc91d08
push 0x10
jmp 0xc91d08
push 6
jmp 0xc91d08
push 2
jmp 0xc91d08
push 0xb
jmp 0xc91d08
mov esi, dword [ebp + 0xc]
mov ecx, esi
jmp 0xc91e5f
lea eax, [esi + 0xb8]
jmp 0xc5c775
push str.WIN32_NT
jmp 0xc5c796
mov eax, dword [0xd17428]
add eax, 0xc
jmp 0xc5c775
xor ecx, ecx
inc ecx
jmp 0xc92145
push 3
jmp 0xc92144
push 4
jmp 0xc92144
lea eax, [esi + 0x14c]
jmp 0xc5c775
push 0xd0ad20
lea ecx, [ebp - 0x40]
call fcn.00c57f41
push dword [ebp + 8]
lea ecx, [ebp - 0x40]
call fcn.00c57c8e
push edi
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00c5859a
test eax, eax
jne 0xc91ae0
or edi, 0xffffffff
jmp 0xc91ae9
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00c59e9c
lea ecx, [ebp - 0x40]
jmp 0xc91c08
mov eax, dword [esi]
lea ecx, [esi + 4]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00c6ff9a
mov edi, dword [eax + 0x14]
jmp 0xc91b0b
mov edi, dword [esi + 0x148]
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00c59a20
mov dword [esi], edi
xor edi, edi
jmp 0xc5c7b4
mov eax, dword [esi]
lea ecx, [esi + 4]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00c6ff9a
mov ecx, dword [ebp + 0xc]
add eax, 0x20
push eax
call fcn.00c59e9c
jmp case.0xc5c768.88
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x1a]
push eax
push 0xd0ad84
jmp 0xc91b6c
lea ecx, [ebp - 0x100]
call fcn.00ccc3f9
mov ecx, eax
call fcn.00ccc398
push eax
push 0xd0a18c
lea eax, [ebp - 0x330]
push eax
call fcn.00c738d8
jmp 0xc91b9a
lea eax, [ebp - 0x330]
mov edx, str.SYSTEMCurrentControlSetControlNlsLanguage
push eax
push 0x104
push str.InstallLanguage
mov ecx, 0x80000002
call fcn.00c535b0
add esp, 0xc
jmp 0xc91ba5
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x330]
jmp 0xc91bb2
mov eax, str.WIN_XP
push eax
jmp 0xc5c796
push 0xd0ad90
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x30]
call fcn.00ccc3f9
mov ecx, eax
call fcn.00ccc33b
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00c59b9c
lea ecx, [ebp - 0xf8]
jmp 0xc91c08
push 0xd0adb8
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x38]
call fcn.00ccc3f9
mov ecx, eax
call fcn.00ccc33b
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00c59b9c
lea ecx, [ebp - 0x80]
call fcn.00c55a64
jmp case.0xc5c768.88
push 0xd0ad98
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0xa8]
call fcn.00ccc3f9
mov ecx, eax
call fcn.00ccc33b
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00c59b9c
lea ecx, [ebp - 0x90]
jmp 0xc91c08
push 0xd0ada0
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0xe8]
call fcn.00ccc3f9
mov ecx, eax
call fcn.00ccc33b
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00c59b9c
lea ecx, [ebp - 0x110]
jmp 0xc91c08
push 0xd0a18c
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00ccc3f9
mov ecx, eax
call fcn.00ccc33b
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00c59b9c
lea ecx, [ebp - 0xa0]
jmp 0xc91c08
push 0xd0ada8
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0xd8]
call fcn.00ccc3f9
mov ecx, eax
call fcn.00ccc33b
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00c59b9c
lea ecx, [ebp - 0xb8]
jmp 0xc91c08
push 0xd0adb0
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0xe0]
call fcn.00ccc3f9
mov ecx, eax
call fcn.00ccc33b
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00c59b9c
lea ecx, [ebp - 0xd0]
jmp 0xc91c08
push 7
lea edx, [ebp - 0x10]
pop ecx
call fcn.00cb49ff
jmp 0xc91d1b
lea ecx, [ebp - 0x10]
call fcn.00c54864
lea eax, [ebp - 0x10]
jmp 0xc5c775
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x104
push eax
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
jmp 0xc91ba5
push 0x104
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je case.0xc5c768.88
jmp 0xc91ba5
mov eax, dword [0xd17428]
push 0x104
cmp byte [eax + 0x34], 0
lea eax, [ebp - 0x330]
push eax
je 0xc91b9f
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], edi
call fcn.00ccc304
call eax
cmp dword [ebp - 0x24], 0
je 0xc91ba5
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0xc91ba5
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00c59a20
mov dword [esi], 6
jmp 0xc5c7b4
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00c59a20
mov dword [esi], 3
jmp 0xc5c7b4
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00c59a20
mov dword [esi], 9
jmp 0xc5c7b4
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00c59a20
mov dword [esi], 5
jmp 0xc5c7b4
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00c59a20
mov dword [esi], 0xa
jmp 0xc5c7b4
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00c59a20
mov dword [esi], 2
jmp 0xc5c7b4
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00c59a20
mov dword [esi], 7
jmp 0xc5c7b4
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00c59a20
mov dword [esi], 8
jmp 0xc5c7b4
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00c59a20
mov dword [esi], 4
jmp 0xc5c7b4
call fcn.00c59a20
xor eax, eax
inc eax
mov dword [esi + 0xc], eax
mov dword [esi], eax
jmp case.0xc5c768.88
cmp byte [0xd16288], 1
jmp 0xc91e81
cmp byte [0xd16899], 1
mov esi, dword [ebp + 0xc]
mov ecx, esi
je 0xc91e5f
call fcn.00c59a20
xor eax, eax
mov dword [esi], edi
inc eax
mov dword [esi + 0xc], eax
jmp case.0xc5c768.88
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00c59a20
mov dword [esi], 0x40
jmp 0xc5c7b4
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00c59a20
mov dword [esi], 0x41
jmp 0xc5c7b4
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00c59a20
mov dword [esi], 0x42
jmp 0xc5c7b4
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00c59a20
mov dword [esi], 0x43
jmp 0xc5c7b4
push dword [esi + 0xf4]
call fcn.00caff75
mov edi, eax
jmp 0xc91b0b
lea eax, [ebp - 0x330]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0xc91ba5
mov eax, dword [0xd17428]
movzx eax, word [eax + 0x36]
test eax, eax
je 0xc91f4f
cmp eax, 6
je 0xc91f45
mov ecx, dword [ebp + 0xc]
cmp eax, 9
je 0xc91f3b
push str.UNKNOWN
jmp 0xc5c799
push 0xd0add4
jmp 0xc5c799
push str.IA64
jmp 0xc5c796
push 0xd0adc0
jmp 0xc5c796
lea esi, [ebp - 0x80]
xor ecx, ecx
mov eax, 0x80000001
cpuid
mov dword [esi], eax
mov eax, 0xd0add4
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
test dword [ebp - 0x74], 0x20000000
jne 0xc91bb2
mov eax, 0xd0adc0
jmp 0xc91bb2
mov eax, dword [0xd17428]
xor ecx, ecx
inc ecx
cmp byte [eax + 0x30], cl
jne 0xc91fa3
push str.WIN_10
jmp 0xc5c796
cmp byte [eax + 0x32], cl
jne 0xc91fb2
push str.WIN_2016
jmp 0xc5c796
cmp byte [eax + 0x2c], cl
jne 0xc91fc1
push str.WIN_81
jmp 0xc5c796
cmp byte [eax + 0x2e], cl
jne 0xc91fd0
push str.WIN_2012R2
jmp 0xc5c796
cmp byte [eax + 0x2a], cl
jne 0xc91fdf
push str.WIN_2012
jmp 0xc5c796
cmp byte [eax + 0x28], cl
jne 0xc91fee
push str.WIN_8
jmp 0xc5c796
cmp byte [eax + 0x26], cl
jne 0xc91ffd
push str.WIN_2008R2
jmp 0xc5c796
cmp byte [eax + 0x24], cl
jne 0xc9200c
push str.WIN_7
jmp 0xc5c796
cmp byte [eax + 0x22], cl
jne 0xc9201b
push str.WIN_2008
jmp 0xc5c796
cmp byte [eax + 0x20], cl
jne 0xc9202a
push str.WIN_VISTA
jmp 0xc5c796
cmp byte [eax + 0x1e], cl
jne 0xc92039
push str.WIN_2003
jmp 0xc5c796
cmp byte [eax + 0x1c], cl
jne 0xc92052
cmp byte [eax + 0x38], 0
mov eax, str.WIN_XPe
jne 0xc91bb2
jmp 0xc91bad
push str.UNKNOWN
jmp 0xc5c796
mov eax, dword [0xd17428]
mov edi, dword [eax + 8]
jmp 0xc91b0b
lea eax, [ebp - 0x330]
mov edx, str.Control_PanelAppearance
push eax
push 0x104
push str.SchemeLangID
mov ecx, 0x80000001
call fcn.00c535b0
movzx eax, word [ebp - 0x330]
lea ecx, [ebp - 0x330]
add esp, 0xc
mov dword [ebp - 0x14], eax
push edi
push eax
push 4
pop edx
call fcn.00c6fd71
pop ecx
pop ecx
jmp 0xc91ba5
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
lea eax, [ebp - 0x124]
jmp 0xc91bb2
lea eax, [ebp - 0x330]
push str.3__3__14__5
push eax
call fcn.00c72ffc
lea eax, [ebp - 0x330]
mov dword [ebp + 8], edi
push eax
mov esi, edi
call fcn.00c72e3c
add esp, 0xc
test eax, eax
jle 0xc92133
push 0x20
pop ecx
push 0x2e
pop edx
movzx eax, word [ebp + edi*2 - 0x330]
cmp ax, cx
je 0xc92119
cmp eax, 0x2c
jne 0xc92110
mov word [ebp + esi*2 - 0x330], dx
jmp 0xc92118
mov word [ebp + esi*2 - 0x330], ax
inc esi
lea eax, [ebp - 0x330]
inc edi
push eax
call fcn.00c72e3c
pop ecx
push 0x20
pop ecx
push 0x2e
pop edx
cmp edi, eax
jl 0xc920f4
xor edi, edi
xor eax, eax
mov word [ebp + esi*2 - 0x330], ax
jmp 0xc91ba5
push 2
pop ecx
lea edx, [ebp - 0x70]
call fcn.00cb48f3
lea eax, [ebp - 0x70]
jmp 0xc91bb2
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [ebp - 0x48]
jmp 0xc91b0b
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [ebp - 0x44]
jmp 0xc91b0b
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_GetDC]
push 0xc
jmp 0xc921ad
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_GetDC]
push 0x74
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov esi, dword [ebp + 0xc]
mov edi, eax
mov ecx, esi
call fcn.00c59a20
push dword [ebp + 8]
mov dword [esi + 0xc], 1
push dword [ebp - 0x1c]
mov dword [esi], edi
call dword [sym.imp.USER32.dll_ReleaseDC]
xor edi, edi
jmp case.0xc5c768.88
push 0x104
lea eax, [ebp - 0x330]
push eax
push str.COMSPEC
jmp 0xc92203
push 0x104
lea eax, [ebp - 0x330]
push eax
push str.USERDNSDOMAIN
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0xc91ba5
lea eax, [ebp - 0x330]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x330]
call fcn.00c707a1
jmp 0xc91ba5
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x104
push eax
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
jmp 0xc91ba5
mov eax, dword [0xd162e0]
cmp eax, 3
je case.0xc5c768.44
cmp eax, 4
jne case.0xc5c768.31
jmp case.0xc5c768.44
push 0x104
lea eax, [ebp - 0x330]
push eax
push str.USERPROFILE
jmp 0xc92203
push 0x104
lea eax, [ebp - 0x330]
push eax
push str.HOMEDRIVE
jmp 0xc92203
push 0x104
lea eax, [ebp - 0x330]
push eax
push str.HOMEPATH
jmp 0xc92203
push 0x104
lea eax, [ebp - 0x330]
push eax
push str.HOMESHARE
jmp 0xc92203
push 0x104
lea eax, [ebp - 0x330]
push eax
push str.LOGONSERVER
jmp 0xc92203
push 0x104
lea eax, [ebp - 0x330]
push eax
push str.USERDOMAIN
jmp 0xc92203
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp + 8], eax
fild dword [ebp + 8]
test eax, eax
jns 0xc92300
fadd qword [0xd0bac8]
mov esi, dword [ebp + 0xc]
mov ecx, esi
fstp qword [ebp - 0x20]
call fcn.00c59a20
fld qword [ebp - 0x20]
fstp qword [esi]
mov dword [esi + 0xc], 3
jmp case.0xc5c768.88