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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x22c8
call fcn.0040fa60
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x44a3b8]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [0x44a3bc]
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.00402770
mov ecx, dword [0x44a3c0]
mov edx, dword [0x44a3c4]
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 [0x4588a4]
shl esi, 4
add esi, dword [ebp - 0x1c]
cmp eax, 0xfa9
jne 0x402814
mov dword [0x4588a0], 0xedeb2e40
jmp 0x40282f
cmp eax, 0x3eb
jne 0x40282f
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 0x40286a
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 8], esi
cmp dword [0x4588a4], 0x213
jne 0x402944
push 0
lea eax, [ebp - 0x1ac4]
push eax
push 0
push 0x4025a8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
lea ecx, [ebp - 0xac4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
push 0
lea edx, [ebp - 0x2c4]
push edx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x12c4]
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 - 0x22c4]
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.0040b110
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 - 0x1a4]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x38]
push eax
call edi
sub ebx, dword [ebp - 8]
cmp dword [0x4588a4], 0xc
jne 0x402962
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 eax, ebx
shl eax, 4
add eax, dword [ebp - 0x20]
xor eax, dword [ebp - 8]
xor eax, ecx
mov dword [ebp - 0x30], eax
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 0x4027e8
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