Function at 0x10d922
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, 0x35c
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
xor eax, eax
push 0x104
lea ecx, [ebp - 0x10]
mov word [ebp - 0x358], ax
call fcn.000f6b0f
mov eax, dword [ebp + 8]
xor edi, edi
mov esi, dword [eax]
mov ebx, edi
push esi
push dword [ebx*4 + 0x1abde0]
call fcn.001115e3
pop ecx
pop ecx
test eax, eax
je 0x10d969
inc ebx
cmp ebx, 0x61
jl 0x10d950
mov esi, dword [ebp - 0x18]
cmp ebx, 0x61
je 0x16abc2
cmp ebx, 0x60
ja case.0x10d97a.88
jmp dword [ebx*4 + 0x10da96]
lea eax, [esi + 0xd8]
mov ecx, dword [ebp + 0xc]
push eax
call fcn.000f6b68
lea ecx, [ebp - 0x10]
call fcn.000fcb37
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
push 0x18dcb0
mov ecx, dword [ebp + 0xc]
call fcn.000fcdb9
jmp case.0x10d97a.88
lea eax, [esi + 0xc8]
jmp 0x10d987
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00102c20
mov dword [esi], edi
mov dword [esi + 0xc], 1
jmp case.0x10d97a.88
push 0x1a422c
jmp 0x10d9a6
push 0x1a3884
jmp 0x10d9a6
push 0x1a4230
jmp 0x10d9a6
push 0x26
jmp 0x16ae2f
push 0x2b
jmp 0x16ae2f
push 5
jmp 0x16ae2f
push 0x23
jmp 0x16ae2f
push 0x19
jmp 0x16ae2f
push 0x2e
jmp 0x16ae2f
push 0x1f
jmp 0x16ae2f
push 0x17
jmp 0x16ae2f
push 0x16
jmp 0x16ae2f
push 0x18
jmp 0x16ae2f
push 0x1c
jmp 0x16ae2f
push 0x1a
jmp 0x16ae2f
push 0x10
jmp 0x16ae2f
push 6
jmp 0x16ae2f
push 2
jmp 0x16ae2f
push 0xb
jmp 0x16ae2f
lea eax, [esi + 0xb8]
jmp 0x10d987
push str.WIN32_NT
jmp 0x10d9a6
mov eax, dword [0x1b218c]
add eax, 0xc
jmp 0x10d987
xor ecx, ecx
inc ecx
jmp 0x16b258
push 3
jmp 0x16b257
push 4
jmp 0x16b257
lea eax, [esi + 0x150]
jmp 0x10d987
push 0x1a41d0
lea ecx, [ebp - 0x3c]
call fcn.000fce19
push dword [ebp + 8]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x18], edi
call fcn.000f510d
push edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.000fd645
cmp dword [ebp + 8], edi
jne 0x16abf9
or edi, 0xffffffff
jmp 0x16ac04
push dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
call fcn.000fdcae
lea ecx, [ebp - 0x3c]
jmp 0x16ad2f
mov eax, dword [esi]
lea ecx, [esi + 4]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.000f3359
mov edi, dword [eax + 0x14]
jmp 0x16ac26
mov edi, dword [esi + 0x14c]
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00102c20
mov dword [esi], edi
xor edi, edi
jmp 0x10d9c4
mov eax, dword [esi]
lea ecx, [esi + 4]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.000f3359
mov ecx, dword [ebp + 0xc]
add eax, 0x20
push eax
call fcn.000fdcae
jmp case.0x10d97a.88
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x116]
push eax
push 0x1a4234
jmp 0x16ac8d
lea ecx, [ebp - 0x12c]
call fcn.0014ec97
mov ecx, eax
call fcn.0014ec26
push eax
push 0x1a35e4
lea eax, [ebp - 0x358]
push eax
call fcn.0011172b
jmp 0x16acbb
lea eax, [ebp - 0x358]
push eax
push 0x104
push str.InstallLanguage
mov edx, str.SYSTEMCurrentControlSetControlNlsLanguage
mov ecx, 0x80000002
call fcn.0010d298
add esp, 0xc
jmp 0x16acc6
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x358]
jmp 0x16acd3
mov eax, str.WIN_XP
push eax
jmp 0x10d9a6
push 0x1a4240
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x104]
call fcn.0014ec97
mov ecx, eax
call fcn.0014ebcb
mov ecx, dword [ebp + 0xc]
push eax
call fcn.000f6b68
lea ecx, [ebp - 0x7c]
jmp 0x16ad2f
push 0x1a4268
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp - 0xa4]
call fcn.0014ec97
mov ecx, eax
call fcn.0014ebcb
mov ecx, dword [ebp + 0xc]
push eax
call fcn.000f6b68
lea ecx, [ebp - 0xfc]
call fcn.000fcb37
jmp case.0x10d97a.88
push 0x1a4248
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0xbc]
call fcn.0014ec97
mov ecx, eax
call fcn.0014ebcb
mov ecx, dword [ebp + 0xc]
push eax
call fcn.000f6b68
lea ecx, [ebp - 0x8c]
jmp 0x16ad2f
push 0x1a4250
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x13c]
call fcn.0014ec97
mov ecx, eax
call fcn.0014ebcb
mov ecx, dword [ebp + 0xc]
push eax
call fcn.000f6b68
lea ecx, [ebp - 0x9c]
jmp 0x16ad2f
push 0x1a35e4
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0xec]
call fcn.0014ec97
mov ecx, eax
call fcn.0014ebcb
mov ecx, dword [ebp + 0xc]
push eax
call fcn.000f6b68
lea ecx, [ebp - 0xb4]
jmp 0x16ad2f
push 0x1a4258
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0xd4]
call fcn.0014ec97
mov ecx, eax
call fcn.0014ebcb
mov ecx, dword [ebp + 0xc]
push eax
call fcn.000f6b68
lea ecx, [ebp - 0xcc]
jmp 0x16ad2f
push 0x1a4260
lea eax, [ebp - 0xe4]
push eax
lea ecx, [ebp - 0x134]
call fcn.0014ec97
mov ecx, eax
call fcn.0014ebcb
mov ecx, dword [ebp + 0xc]
push eax
call fcn.000f6b68
lea ecx, [ebp - 0xe4]
jmp 0x16ad2f
push 7
lea edx, [ebp - 0x10]
pop ecx
call fcn.00137053
jmp 0x16ae42
lea ecx, [ebp - 0x10]
call fcn.000f5374
lea eax, [ebp - 0x10]
jmp 0x10d987
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x358]
push eax
mov dword [ebp - 0x14], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
jmp 0x16acc6
push 0x104
lea eax, [ebp - 0x358]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je case.0x10d97a.88
jmp 0x16acc6
mov eax, dword [0x1b218c]
push 0x104
cmp byte [eax + 0x30], 0
lea eax, [ebp - 0x358]
push eax
je 0x16acc0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], edi
call fcn.0014ebb3
call eax
cmp dword [ebp - 0x2c], edi
je 0x16acc6
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x16acc6
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00102c20
mov dword [esi], 6
jmp 0x10d9c4
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00102c20
mov dword [esi], 3
jmp 0x10d9c4
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00102c20
mov dword [esi], 9
jmp 0x10d9c4
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00102c20
mov dword [esi], 5
jmp 0x10d9c4
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00102c20
mov dword [esi], 0xa
jmp 0x10d9c4
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00102c20
mov dword [esi], 2
jmp 0x10d9c4
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00102c20
mov dword [esi], 7
jmp 0x10d9c4
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00102c20
mov dword [esi], 8
jmp 0x10d9c4
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00102c20
mov dword [esi], 4
jmp 0x10d9c4
call fcn.00102c20
mov dword [esi + 0xc], ebx
mov dword [esi], ebx
jmp case.0x10d97a.88
xor ebx, ebx
inc ebx
cmp byte [0x1b10c6], bl
jmp 0x16afa8
xor ebx, ebx
inc ebx
cmp byte [0x1b1711], bl
mov esi, dword [ebp + 0xc]
mov ecx, esi
je 0x16af85
call fcn.00102c20
mov dword [esi + 0xc], ebx
mov dword [esi], edi
jmp case.0x10d97a.88
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00102c20
mov dword [esi], 0x40
jmp 0x10d9c4
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00102c20
mov dword [esi], 0x41
jmp 0x10d9c4
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00102c20
mov dword [esi], 0x42
jmp 0x10d9c4
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00102c20
mov dword [esi], 0x43
jmp 0x10d9c4
mov eax, dword [esi + 0xf8]
test eax, eax
jne 0x16b022
mov eax, dword [esi + 0xf4]
push eax
call fcn.00132875
mov edi, eax
jmp 0x16ac26
lea eax, [ebp - 0x358]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x16acc6
mov eax, dword [0x1b218c]
movzx eax, word [eax + 0x32]
test eax, eax
je 0x16b07e
cmp eax, 6
je 0x16b074
mov ecx, dword [ebp + 0xc]
cmp eax, 9
je 0x16b06a
push str.UNKNOWN
jmp 0x10d9a9
push 0x1a4284
jmp 0x10d9a9
push str.IA64
jmp 0x10d9a6
push 0x1a4270
jmp 0x10d9a6
xor ecx, ecx
mov eax, 0x80000001
cpuid
lea esi, [ebp - 0x114]
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
test dword [ebp - 0x108], 0x20000000
mov eax, 0x1a4284
jne 0x16acd3
mov eax, 0x1a4270
jmp 0x16acd3
mov eax, dword [0x1b218c]
xor ebx, ebx
inc ebx
cmp byte [eax + 0x2c], bl
jne 0x16b0d8
push str.WIN_81
jmp 0x10d9a6
cmp byte [eax + 0x2e], bl
jne 0x16b0e7
push str.WIN_2012R2
jmp 0x10d9a6
cmp byte [eax + 0x2a], bl
jne 0x16b0f6
push str.WIN_2012
jmp 0x10d9a6
cmp byte [eax + 0x28], bl
jne 0x16b105
push str.WIN_8
jmp 0x10d9a6
cmp byte [eax + 0x26], bl
jne 0x16b114
push str.WIN_2008R2
jmp 0x10d9a6
cmp byte [eax + 0x24], bl
jne 0x16b123
push str.WIN_7
jmp 0x10d9a6
cmp byte [eax + 0x22], bl
jne 0x16b132
push str.WIN_2008
jmp 0x10d9a6
cmp byte [eax + 0x20], bl
jne 0x16b141
push str.WIN_VISTA
jmp 0x10d9a6
cmp byte [eax + 0x1e], bl
jne 0x16b150
push str.WIN_2003
jmp 0x10d9a6
cmp byte [eax + 0x1c], bl
jne 0x16b169
cmp byte [eax + 0x34], 0
mov eax, str.WIN_XPe
jne 0x16acd3
jmp 0x16acce
push str.UNKNOWN
jmp 0x10d9a6
mov eax, dword [0x1b218c]
mov edi, dword [eax + 8]
jmp 0x16ac26
lea eax, [ebp - 0x358]
push eax
push 0x104
push str.SchemeLangID
mov edx, str.Control_PanelAppearance
mov ecx, 0x80000001
call fcn.0010d298
movzx eax, word [ebp - 0x358]
add esp, 0xc
lea ecx, [ebp - 0x358]
push edi
push eax
push 4
pop edx
mov dword [ebp - 0x14], eax
call fcn.000fce87
pop ecx
pop ecx
jmp 0x16acc6
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
lea eax, [ebp - 0x150]
jmp 0x16acd3
lea eax, [ebp - 0x358]
push str.3__3__12__0
push eax
call fcn.00110d23
lea eax, [ebp - 0x358]
push eax
mov esi, edi
mov ebx, edi
call fcn.00110cdb
add esp, 0xc
test eax, eax
jle 0x16b246
push 0x20
pop edi
push 0x2e
pop ecx
movzx eax, word [ebp + ebx*2 - 0x358]
cmp ax, di
je 0x16b22f
cmp eax, 0x2c
jne 0x16b226
mov word [ebp + esi*2 - 0x358], cx
jmp 0x16b22e
mov word [ebp + esi*2 - 0x358], ax
inc esi
lea eax, [ebp - 0x358]
push eax
inc ebx
call fcn.00110cdb
pop ecx
push 0x2e
pop ecx
cmp ebx, eax
jl 0x16b20a
xor edi, edi
xor eax, eax
mov word [ebp + esi*2 - 0x358], ax
jmp 0x16acc6
push 2
pop ecx
lea edx, [ebp - 0x5c]
call fcn.00136f02
lea eax, [ebp - 0x5c]
jmp 0x16acd3
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [ebp - 0x64]
jmp 0x16ac26
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [ebp - 0x60]
jmp 0x16ac26
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_GetDC]
push 0xc
jmp 0x16b2c0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_GetDC]
push 0x74
mov ebx, eax
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov esi, dword [ebp + 0xc]
mov ecx, esi
mov edi, eax
call fcn.00102c20
push ebx
push dword [ebp + 8]
mov dword [esi + 0xc], 1
mov dword [esi], edi
call dword [sym.imp.USER32.dll_ReleaseDC]
xor edi, edi
jmp case.0x10d97a.88
push 0x104
lea eax, [ebp - 0x358]
push eax
push str.COMSPEC
jmp 0x16b313
push 0x104
lea eax, [ebp - 0x358]
push eax
push str.USERDNSDOMAIN
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x16acc6
lea eax, [ebp - 0x358]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x358]
call fcn.000f3699
jmp 0x16acc6
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x358]
push eax
mov dword [ebp - 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
jmp 0x16acc6
mov eax, dword [0x1b1130]
cmp eax, 3
je case.0x10d97a.44
cmp eax, 4
jne case.0x10d97a.31
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00102c20
xor ebx, ebx
inc ebx
jmp 0x16af8a
push 0x104
lea eax, [ebp - 0x358]
push eax
push str.USERPROFILE
jmp 0x16b313
push 0x104
lea eax, [ebp - 0x358]
push eax
push str.HOMEDRIVE
jmp 0x16b313
push 0x104
lea eax, [ebp - 0x358]
push eax
push str.HOMEPATH
jmp 0x16b313
push 0x104
lea eax, [ebp - 0x358]
push eax
push str.HOMESHARE
jmp 0x16b313
push 0x104
lea eax, [ebp - 0x358]
push eax
push str.LOGONSERVER
jmp 0x16b313
push 0x104
lea eax, [ebp - 0x358]
push eax
push str.USERDOMAIN
jmp 0x16b313
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp + 8], eax
fild dword [ebp + 8]
test eax, eax
jns 0x16b41c
fadd qword [0x1a6a00]
mov esi, dword [ebp + 0xc]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
mov ecx, esi
fstp qword [ebp - 0x20]
call fcn.00102c20
fld qword [ebp - 0x20]
mov dword [esi + 0xc], 3
fstp qword [esi]
jmp case.0x10d97a.88