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, 0x22c0
call fcn.0040fac0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x44a3b8]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x44a3bc]
mov dword [ebp - 0x2c], eax
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 [0x44a3c0]
mov edx, dword [0x44a3c4]
add dword [ebp - 0xc], 0x23f
mov ebx, dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov dword [ebp - 0x30], 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 [0x4588a4]
shl esi, 4
add esi, dword [ebp - 0x30]
cmp eax, 0xfa9
jne 0x4028c4
mov dword [0x4588a0], 0xedeb2e40
jmp 0x4028df
cmp eax, 0x3eb
jne 0x4028df
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x458330], 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 [0x4588a4], 0x9e6
mov dword [0x45889c], 0xf4ea3dee
jne 0x40291a
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 8], esi
cmp dword [0x4588a4], 0x213
jne 0x4029ee
push 0
lea eax, [ebp - 0x1abc]
push eax
push 0
push 0x4025b8
push 0
push 0
call ebx
lea ecx, [ebp - 0xabc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
push 0
lea edx, [ebp - 0x2bc]
push edx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x12bc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
push 0
push 0
lea edx, [ebp - 0x22bc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0x30
lea eax, [ebp - 0x6c]
push 0
push eax
mov dword [ebp - 0x70], 0
call fcn.0040b170
add esp, 0xc
lea ecx, [ebp - 0x70]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogW]
lea edx, [ebp - 0x3c]
push edx
push 0
lea eax, [ebp - 0x84]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
lea ecx, [ebp - 0x19c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub edi, dword [ebp - 8]
cmp dword [0x4588a4], 0xc
jne 0x402a0c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0xc]
mov edx, edi
shr edx, 5
lea ecx, [eax + edi]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], eax
mov eax, edi
shl eax, 4
add eax, dword [ebp - 0x20]
xor eax, dword [ebp - 8]
xor eax, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
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]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4