Function at 0x42f190
Capabilities:
Create directory
Get common file path
Get hostname
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8e4
mov eax, dword [0x43a004]
xor eax, esp
mov dword [esp + 0x8e0], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
jmp 0x42f1c0
call edi
call ebx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
cmp esi, 0x176afc
jg 0x42f1e3
inc esi
cmp esi, 0x365ea5f8
jl 0x42f1c0
jmp 0x42f1f6
cmp dword [0x2be26b4], 0xa
jne 0x42f1f6
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
xor ebx, ebx
xor esi, esi
cmp esi, 0x562d05
jne 0x42f212
mov eax, dword [0x43bbc4]
mov dword [0x2be26b8], eax
cmp dword [0x2be26b4], 0x3c
jne 0x42f21e
push ebx
call edi
inc esi
cmp esi, 0x5f6c74
jl 0x42f200
cmp dword [0x2be26b4], 0x7c
jne 0x42f27a
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push str.hamiraz
call dword [sym.imp.KERNEL32.dll_AddAtomW]
lea ecx, [esp + 0xe8]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsW]
cmp dword [0x2be26b4], 0x2d
jne 0x42f27a
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FatalAppExitA]
cmp dword [0x2be26b4], 0x110a
jne 0x42f2ec
push ebx
push ebx
push ebx
mov dword [0x2be2320], ebx
mov dword [0x2be2324], ebx
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoA]
push ebx
push ebx
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
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.0040129d
push 0x4383c4
push str.0__f
push 0x43cca0
call fcn.0040117b
add esp, 0x14
push ebx
call fcn.00401263
add esp, 4
push ebx
push ebx
call fcn.0040129d
add esp, 8
call fcn.0042e720
xor esi, esi
cmp dword [0x2be26b4], ebx
jbe 0x42f33f
mov edi, dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov eax, dword [0x2be26b8]
mov dword [esp + 0xc], eax
mov eax, 0xa231
add dword [esp + 0xc], eax
mov ecx, dword [esp + 0xc]
mov dl, byte [ecx + esi]
mov eax, dword [0x2be0234]
mov byte [eax + esi], dl
cmp dword [0x2be26b4], 0x5ab
jne 0x42f336
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call edi
inc esi
cmp esi, dword [0x2be26b4]
jb 0x42f301
call fcn.0042f010
call fcn.0042e750
call fcn.0042f100
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessWorkingSetSize]
xor esi, esi
cmp dword [0x2be26b4], 0x41
jne 0x42f364
push ebx
push ebx
push ebx
call edi
cmp esi, 0xbd9cb
jne 0x42f376
add dword [0x2be0234], 0
inc esi
cmp esi, 0x15a63d
jl 0x42f356
mov ebx, dword [esp + 0x18]
mov edi, dword [sym.imp.USER32.dll_GetClassLongA]
xor esi, esi
jmp 0x42f390
push 0
push 0
call edi
cmp esi, 0x1ac2b
jle 0x42f3a6
cmp ebx, 0xf5bee1
jne 0x42f3af
inc esi
cmp esi, 0x1ebc2db6
jl 0x42f390
mov ecx, dword [esp + 0x8ec]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004010e8
mov esp, ebp
pop ebp
ret