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

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x284
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor eax, eax
push 0x104
lea ecx, [ebp - 0x18]
mov word [ebp - 0x280], ax
call fcn.00406060
xor eax, eax
mov dword [ebp - 0x1c], eax
mov edi, eax
mov eax, dword [ebx + 8]
mov esi, dword [eax]
push esi
push dword [edi*4 + 0x4b1a00]
call fcn.00425342
pop ecx
pop ecx
test eax, eax
je 0x41de84
inc edi
cmp edi, 0x61
jl 0x41de6b
mov esi, dword [ebp - 4]
cmp edi, 0x61
je 0x45da1c
cmp edi, 0x60
ja case.0x41de95.88
jmp dword [edi*4 + 0x41def8]
lea eax, [esi + 0xd8]
push eax
mov ecx, dword [ebx + 0xc]
call fcn.004060a5
xor edi, edi
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x18]
call fcn.004092c6
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
push 0x49d11c
mov ecx, dword [ebx + 0xc]
call fcn.004096c8
jmp case.0x41de95.88
lea eax, [esi + 0xc8]
jmp 0x41dea2
mov esi, dword [ebx + 0xc]
mov ecx, esi
call fcn.0040f6d0
xor edi, edi
mov dword [esi + 0xc], 1
mov dword [esi], edi
jmp 0x41dead
push 0x4c72b0
lea ecx, [ebp - 0x2c]
call fcn.0040970d
push dword [ebx + 8]
lea ecx, [ebp - 0x2c]
call fcn.00406140
xor eax, eax
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0041e186
test eax, eax
jne 0x45da51
or dword [ebp - 0x1c], 0xffffffff
jmp 0x45da5a
mov ecx, dword [ebx + 0xc]
push eax
call fcn.0040a64f
lea ecx, [ebp - 0x2c]
call fcn.004092c6
jmp 0x41deb0
push 0x4c730c
jmp 0x41decc
push 0x4af358
jmp 0x41decc
push 0x4c7310
jmp 0x41decc
mov eax, dword [esi]
mov eax, dword [eax + 4]
cmp byte [eax + esi + 0xd], 0
mov edi, dword [eax + esi + 8]
je 0x45da98
mov edi, dword [edi + 0x38]
mov edi, dword [edi + 0x14]
jmp 0x45daa3
mov edi, dword [esi + 0x14c]
mov esi, dword [ebx + 0xc]
mov ecx, esi
call fcn.0040f6d0
mov dword [esi + 0xc], 1
mov dword [esi], edi
jmp case.0x41de95.88
mov eax, dword [esi]
mov eax, dword [eax + 4]
cmp byte [eax + esi + 0xd], 0
mov ecx, dword [eax + esi + 8]
je 0x45dace
mov ecx, dword [ecx + 0x38]
lea eax, [ecx + 0x20]
mov ecx, dword [ebx + 0xc]
push eax
call fcn.0040a64f
jmp case.0x41de95.88
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x1e]
push eax
push 0x4c7314
jmp 0x45db0a
lea ecx, [ebp - 8]
call fcn.00487379
mov ecx, eax
call fcn.0048731c
push eax
push 0x4c672c
lea eax, [ebp - 0x280]
push eax
call fcn.0041fc33
jmp 0x45db38
lea eax, [ebp - 0x280]
mov edx, str.SYSTEMCurrentControlSetControlNlsLanguage
push eax
push 0x104
push str.InstallLanguage
mov ecx, reloc.WSOCK32.dll_bind
call fcn.00403ad0
add esp, 0xc
jmp 0x45db55
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x104
push eax
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x280]
jmp 0x45db6b
xor ecx, ecx
inc ecx
lea edx, [ebp - 0x60]
call fcn.0046dd9e
lea eax, [ebp - 0x60]
push eax
jmp 0x41decc
push 0x4c7320
jmp 0x45db7d
push 0x4c7348
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 8]
call fcn.00487379
mov ecx, eax
call fcn.004872c1
mov ecx, dword [ebx + 0xc]
push eax
call fcn.004060a5
lea ecx, [ebp - 0x2c]
call fcn.004092c6
jmp case.0x41de95.88
push 0x4c7328
jmp 0x45db7d
push 0x4c7330
jmp 0x45db7d
push 0x4c672c
jmp 0x45db7d
push 0x4c7338
jmp 0x45db7d
push 0x4c7340
jmp 0x45db7d
push 0x26
jmp 0x45dbcf
push 7
lea edx, [ebp - 0x18]
pop ecx
call fcn.0046de9e
jmp 0x45dbe2
lea ecx, [ebp - 0x18]
call fcn.00403a0e
lea eax, [ebp - 0x18]
jmp 0x41dea2
push 0x2b
jmp 0x45dbcf
push 5
jmp 0x45dbcf
push 0x23
jmp 0x45dbcf
push 0x19
jmp 0x45dbcf
push 0x2e
jmp 0x45dbcf
push 0x1f
jmp 0x45dbcf
push 0x17
jmp 0x45dbcf
push 0x16
jmp 0x45dbcf
push 0x18
jmp 0x45dbcf
push 0x1c
jmp 0x45dbcf
push 0x1a
jmp 0x45dbcf
push 0x10
jmp 0x45dbcf
push 6
jmp 0x45dbcf
push 2
jmp 0x45dbcf
push 0xb
jmp 0x45dbcf
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x104
push eax
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
jmp 0x45db55
push 0x104
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je case.0x41de95.88
jmp 0x45db55
cmp byte [0x4d13c4], 0
je 0x45dcb3
push 0x49cbdc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x45dc8c
push str.GetSystemWow64DirectoryW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x45dc91
mov eax, 0x41fc5e
push 0x104
lea ecx, [ebp - 0x280]
push ecx
call eax
test esi, esi
je 0x45db55
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x45db55
push 0x104
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x45db55
mov esi, dword [ebx + 0xc]
mov ecx, esi
call fcn.0040f6d0
mov dword [esi + 0xc], 1
mov dword [esi], 6
jmp case.0x41de95.88
mov esi, dword [ebx + 0xc]
mov ecx, esi
call fcn.0040f6d0
mov dword [esi + 0xc], 1
mov dword [esi], 9
jmp case.0x41de95.88
mov esi, dword [ebx + 0xc]
mov ecx, esi
call fcn.0040f6d0
mov dword [esi + 0xc], 1
mov dword [esi], 5
jmp case.0x41de95.88
mov esi, dword [ebx + 0xc]
mov ecx, esi
call fcn.0040f6d0
mov dword [esi + 0xc], 1
mov dword [esi], 0xa
jmp case.0x41de95.88
mov esi, dword [ebx + 0xc]
mov ecx, esi
call fcn.0040f6d0
mov dword [esi + 0xc], 1
mov dword [esi], 3
jmp case.0x41de95.88
mov esi, dword [ebx + 0xc]
mov ecx, esi
call fcn.0040f6d0
mov dword [esi + 0xc], 1
mov dword [esi], 2
jmp case.0x41de95.88
mov esi, dword [ebx + 0xc]
mov ecx, esi
call fcn.0040f6d0
mov dword [esi + 0xc], 1
mov dword [esi], 7
jmp case.0x41de95.88
mov esi, dword [ebx + 0xc]
mov ecx, esi
call fcn.0040f6d0
mov dword [esi + 0xc], 1
mov dword [esi], 8
jmp case.0x41de95.88
mov esi, dword [ebx + 0xc]
mov ecx, esi
call fcn.0040f6d0
mov dword [esi + 0xc], 1
mov dword [esi], 4
jmp case.0x41de95.88
xor eax, eax
cmp byte [0x4d1358], 1
jmp 0x45ddda
xor eax, eax
cmp byte [0x4d19b9], 1
mov esi, dword [ebx + 0xc]
sete al
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.0040f6d0
mov dword [esi + 0xc], 1
mov eax, dword [ebp - 4]
jmp 0x45de06
mov esi, dword [ebx + 0xc]
mov ecx, esi
call fcn.0040f6d0
xor eax, eax
inc eax
mov dword [esi + 0xc], eax
mov dword [esi], eax
jmp case.0x41de95.88
mov esi, dword [ebx + 0xc]
mov ecx, esi
call fcn.0040f6d0
mov dword [esi + 0xc], 1
mov dword [esi], 0x40
jmp case.0x41de95.88
mov esi, dword [ebx + 0xc]
mov ecx, esi
call fcn.0040f6d0
mov dword [esi + 0xc], 1
mov dword [esi], 0x41
jmp case.0x41de95.88
mov esi, dword [ebx + 0xc]
mov ecx, esi
call fcn.0040f6d0
mov dword [esi + 0xc], 1
mov dword [esi], 0x42
jmp case.0x41de95.88
mov esi, dword [ebx + 0xc]
mov ecx, esi
call fcn.0040f6d0
mov dword [esi + 0xc], 1
mov dword [esi], 0x43
jmp case.0x41de95.88
lea eax, [esi + 0xb8]
jmp 0x41dea2
push dword [esi + 0xf4]
call fcn.004699e0
mov edi, eax
jmp 0x45daa3
lea eax, [ebp - 0x280]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x45db55
movzx eax, word [0x4d13c6]
test eax, eax
je 0x45df11
cmp eax, 6
je 0x45deda
cmp eax, 9
jne 0x45ded0
mov eax, 0x4c7364
jmp 0x45db6b
mov eax, str.UNKNOWN
jmp 0x45db6b
mov eax, str.IA64
jmp 0x45db6b
mov eax, reloc.WSOCK32.dll_accept
lea edi, [ebp - 0x2c]
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
mov dword [edi], eax
mov eax, 0x4c7364
mov dword [edi + 4], esi
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
test dword [ebp - 0x20], 0x20000000
jne 0x45db6b
mov eax, 0x4c7350
jmp 0x45db6b
push str.WIN32_NT
jmp 0x41decc
xor eax, eax
inc eax
cmp byte [0x4d13c0], al
jne 0x45df3a
mov eax, str.WIN_10
jmp 0x45db6b
cmp byte [0x4d13c2], al
jne 0x45df4c
mov eax, str.WIN_2016
jmp 0x45db6b
cmp byte [0x4d13bc], al
jne 0x45df5e
mov eax, str.WIN_81
jmp 0x45db6b
cmp byte [0x4d13be], al
jne 0x45df70
mov eax, str.WIN_2012R2
jmp 0x45db6b
cmp byte [0x4d13ba], al
jne 0x45df82
mov eax, str.WIN_2012
jmp 0x45db6b
cmp byte [0x4d13b8], al
jne 0x45df94
mov eax, str.WIN_8
jmp 0x45db6b
cmp byte [0x4d13b6], al
jne 0x45dfa6
mov eax, str.WIN_2008R2
jmp 0x45db6b
cmp byte [0x4d13b4], al
jne 0x45dfb8
mov eax, str.WIN_7
jmp 0x45db6b
cmp byte [0x4d13b2], al
jne 0x45dfca
mov eax, str.WIN_2008
jmp 0x45db6b
cmp byte [0x4d13b0], al
jne 0x45dfdc
mov eax, str.WIN_VISTA
jmp 0x45db6b
cmp byte [0x4d13ae], al
jne 0x45dfee
mov eax, str.WIN_2003
jmp 0x45db6b
cmp byte [0x4d13ac], al
jne 0x45ded0
cmp byte [0x4d13c8], 0
je 0x45e00d
mov eax, str.WIN_XPe
jmp 0x45db6b
mov eax, str.WIN_XP
jmp 0x45db6b
mov edi, dword [0x4d1398]
jmp 0x45daa3
push 0x4d139c
jmp 0x41dea3
lea eax, [ebp - 0x280]
mov edx, str.Control_PanelAppearance
push eax
push 0x104
push str.SchemeLangID
mov ecx, reloc.WSOCK32.dll_accept
call fcn.00403ad0
movzx eax, word [ebp - 0x280]
lea ecx, [ebp - 0x280]
add esp, 0xc
mov dword [ebp - 0x30], eax
xor edi, edi
push edi
push eax
push 4
pop edx
call fcn.00409773
pop ecx
pop ecx
mov ecx, dword [ebx + 0xc]
lea eax, [ebp - 0x280]
push eax
call fcn.004096c8
jmp 0x41dead
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
lea eax, [ebp - 0x74]
jmp 0x45db6b
lea eax, [ebp - 0x280]
push str.3__3__15__3
push eax
call fcn.00424a93
xor eax, eax
mov esi, eax
mov edi, eax
lea eax, [ebp - 0x280]
push eax
call fcn.00424a73
add esp, 0xc
test eax, eax
jle 0x45e0fc
push 0x2e
pop edx
movzx eax, word [ebp + edi*2 - 0x280]
mov ecx, esi
cmp eax, 0x20
je 0x45e0e7
inc esi
cmp eax, 0x2c
jne 0x45e0df
mov word [ebp + ecx*2 - 0x280], dx
jmp 0x45e0e7
mov word [ebp + ecx*2 - 0x280], ax
lea eax, [ebp - 0x280]
inc edi
push eax
call fcn.00424a73
pop ecx
push 0x2e
pop edx
cmp edi, eax
jl 0x45e0c0
xor eax, eax
mov word [ebp + esi*2 - 0x280], ax
jmp 0x45db55
push 2
jmp 0x45e111
push 4
pop ecx
jmp 0x45db60
push 3
jmp 0x45e111
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [ebp - 0x38]
jmp 0x45daa3
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [ebp - 0x34]
jmp 0x45daa3
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_GetDC]
push 0xc
jmp 0x45e173
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 - 4], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov esi, dword [ebx + 0xc]
mov edi, eax
mov ecx, esi
call fcn.0040f6d0
push dword [ebp - 4]
mov dword [esi + 0xc], 1
push dword [ebp - 0x1c]
mov dword [esi], edi
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp case.0x41de95.88
push 0x104
lea eax, [ebp - 0x280]
push eax
push str.COMSPEC
jmp 0x45e1c7
push 0x104
lea eax, [ebp - 0x280]
push eax
push str.USERDNSDOMAIN
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x45db55
lea eax, [ebp - 0x280]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x280]
call fcn.0040335b
jmp 0x45db55
mov eax, dword [0x4d13f0]
cmp eax, 3
je 0x45e20a
cmp eax, 4
je 0x45e20a
xor edi, edi
jmp 0x45daa3
xor edi, edi
inc edi
jmp 0x45daa3
push 0x104
lea eax, [ebp - 0x280]
push eax
push str.USERPROFILE
jmp 0x45e1c7
push 0x104
lea eax, [ebp - 0x280]
push eax
push str.HOMEDRIVE
jmp 0x45e1c7
push 0x104
lea eax, [ebp - 0x280]
push eax
push str.HOMEPATH
jmp 0x45e1c7
push 0x104
lea eax, [ebp - 0x280]
push eax
push str.HOMESHARE
jmp 0x45e1c7
push 0x104
lea eax, [ebp - 0x280]
push eax
push str.LOGONSERVER
jmp 0x45e1c7
push 0x104
lea eax, [ebp - 0x280]
push eax
push str.USERDOMAIN
jmp 0x45e1c7
lea eax, [esi + 0x150]
jmp 0x41dea2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 4], eax
fild dword [ebp - 4]
test eax, eax
jns 0x45e2b1
fadd qword [0x4c8110]
mov esi, dword [ebx + 0xc]
mov ecx, esi
fstp qword [ebp - 8]
call fcn.0040f6d0
fld qword [ebp - 8]
fstp qword [esi]
mov dword [esi + 0xc], 3
jmp case.0x41de95.88