Function at 0x401077
Capabilities:
Get hostname
Identify system language via api
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104c
call fcn.00408c90
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp dword [0x1d7c474], 0x134
push edi
mov dword [ebp - 0x18], eax
jne 0x4010d8
push esi
lea eax, [ebp - 0x44c]
push eax
push esi
push str.napede
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
lea eax, [ebp - 0x38]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentConsoleFont]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
lea eax, [ebp - 0x20]
push eax
push esi
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
cmp dword [0x1d7c474], 0x114e
mov dword [ebp - 0x10], esi
jne 0x4010f5
push esi
lea eax, [ebp - 0x84c]
push eax
push esi
call sub.KERNEL32.dll_VerLanguageNameW
mov eax, dword [0x431f98]
mov dword [ebp - 0x24], eax
mov eax, dword [0x431f9c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
call fcn.0040106a
add dword [ebp - 0x10], 0x54
cmp dword [0x1d7c474], 0xb54
jne 0x401148
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x104c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov eax, dword [0x431fa0]
mov dword [ebp - 0x28], eax
mov eax, dword [0x431fa4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, ebx
lea ecx, [ebp - 4]
call fcn.0040105a
cmp dword [0x1d7c474], 0x4c3
jne 0x401192
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x1d7c474]
cmp eax, 0xfa9
jne 0x4011ae
mov dword [0x1d147e4], 0xedeb2e40
mov ecx, dword [ebp - 8]
mov edi, ebx
shr edi, cl
mov dword [0x1d147e0], 0x9150ce2e
add edi, dword [ebp - 0x14]
cmp eax, 0x3eb
jne 0x4011d8
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
mov dword [0x1d115dc], esi
mov eax, dword [ebp - 0x10]
add eax, ebx
xor dword [ebp - 4], eax
xor edi, dword [ebp - 4]
cmp dword [0x1d7c474], 0xdab
jne 0x40122d
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeUserPhysicalPages]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
lea eax, [ebp - 0x30]
push eax
push esi
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, edi
lea eax, [ebp - 0x18]
call fcn.00401071
mov dword [ebp - 0xc], esi
and eax, 0x5dc052bb
sub dword [ebp - 0xc], 0x5396dd36
add dword [ebp - 0xc], 0x5396dd3a
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov eax, edx
shl eax, cl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x20]
mov eax, edx
shr eax, 5
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
call fcn.00401074
mov eax, dword [ebp - 0x10]
add eax, edx
push eax
mov eax, dword [ebp - 4]
call fcn.00401063
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00401060
sub ebx, dword [ebp - 4]
lea eax, [ebp - 0x10]
mov dword [0x44ef98], esi
call fcn.00401053
dec dword [ebp - 0x1c]
jne 0x40115f
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [eax], ebx
mov dword [eax + 4], edx
pop ebx
leave
ret 4