Function at 0x495850
Capabilities:
Get disk information
Get disk size
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa38
xor edx, edx
push ebx
push esi
push edi
xor edi, edi
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
mov dword [eax], edx
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x38], 4
mov dword [ebp - 0x3c], 4
mov dword [ebp - 0x40], 8
mov ecx, dword [ebp + 0x10]
sub ecx, 1
jb 0x495e28
je 0x495e28
dec ecx
je 0x4958a5
dec ecx
je 0x495976
jmp 0x495b83
mov dword [ebp - 0x5a8], 0x94
lea eax, [ebp - 0x5a8]
push eax
call sub.KERNEL32.DLL_GetVersionExA
mov dword [ebp - 0x5c8], 0x20
lea edx, [ebp - 0x5c8]
push edx
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp + 0x14]
add eax, eax
add eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x5a8]
add eax, dword [ebp - 0x5c8]
mov dword [edx], eax
push eax
call fcn.0049b898
pop ecx
mov edi, eax
mov eax, dword [ebp + 0x10]
push eax
push edi
mov edx, dword [ebx + 4]
push edx
call fcn.00412eb0
add esp, 0xc
mov esi, eax
mov eax, dword [ebp - 0x5a8]
push eax
lea edx, [esi + edi]
push edx
mov ecx, dword [ebx + 4]
push ecx
call fcn.00412eb0
add esp, 0xc
add esi, eax
mov eax, dword [ebp - 0x5a8]
push eax
lea edx, [ebp - 0x5a8]
push edx
lea ecx, [esi + edi]
push ecx
call fcn.0049c00c
add esp, 0xc
add esi, dword [ebp - 0x5a8]
mov eax, dword [ebp - 0x5c8]
push eax
lea edx, [esi + edi]
push edx
mov ecx, dword [ebx + 4]
push ecx
call fcn.00412eb0
add esp, 0xc
add esi, eax
mov eax, dword [ebp - 0x5c8]
push eax
lea edx, [ebp - 0x5c8]
push edx
add esi, edi
push esi
call fcn.0049c00c
add esp, 0xc
jmp 0x495e28
lea eax, [ebp - 0x28]
push eax
push 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.004149d0
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x495e28
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov al, byte [ecx]
xor ecx, ecx
mov byte [ebp - 0x44], al
xor eax, eax
mov byte [ebp - 0x43], 0x3a
mov byte [ebp - 0x42], 0x5c
mov byte [ebp - 0x41], 0
mov dword [ebp - 0x1b0], edx
mov dword [ebp - 0x194], ecx
mov dword [ebp - 0x190], eax
xor edx, edx
mov dword [ebp - 0x18c], edx
xor ecx, ecx
mov dword [ebp - 0x188], ecx
lea edx, [ebp - 0x80]
mov al, byte [ebp - 0x44]
lea ecx, [ebp - 0x50]
mov byte [ebp - 0x184], al
lea eax, [ebp - 0x4c]
mov byte [ebp - 0x183], 0x3a
mov byte [ebp - 0x182], 0
push 0xe
push edx
push ecx
push eax
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x514]
push edx
push 0xff
push ecx
lea eax, [ebp - 0x44]
push eax
call sub.KERNEL32.DLL_GetVolumeInformationA
test eax, eax
je 0x495a86
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x10]
push ecx
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x44]
push edx
call sub.KERNEL32.DLL_GetDiskFreeSpaceExA
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x194], ecx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x190], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18c], edx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x188], ecx
lea eax, [ebp - 0x514]
push eax
call fcn.0049c15c
pop ecx
test eax, eax
jbe 0x495a86
xor eax, eax
lea edi, [ebp - 0x514]
or ecx, 0xffffffff
lea esi, [ebp - 0x182]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x600
lea eax, [ebp - 0x310]
push 0x160
push eax
lea edx, [ebp - 0x44]
push 0
push edx
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + 4]
push eax
call fcn.004a8af0
add esp, 0x18
lea edx, [ebp - 0x44]
push edx
mov esi, dword [ebx + 8]
push esi
call fcn.00493114
add esp, 8
lea edx, [ebp - 0x1b0]
lea ecx, [ebp - 0x200]
push eax
mov eax, dword [ebp - 0x30c]
push eax
push edx
push ecx
lea eax, [ebp - 0x304]
push eax
push 0
push esi
call fcn.00492968
add esp, 0x1c
mov esi, eax
lea edx, [ebp - 0x30]
push edx
push esi
mov ecx, dword [ebx + 8]
push ecx
call fcn.00492164
add esp, 0xc
mov dword [ebp - 0x2c], eax
push esi
mov eax, dword [ebx + 8]
push eax
call fcn.00492b34
mov eax, dword [ebp - 0x38]
add esp, 8
mov edx, dword [ebp + 0x14]
add eax, eax
add eax, dword [ebp - 0x30]
mov dword [edx], eax
push eax
call fcn.0049b898
pop ecx
mov edi, eax
mov eax, dword [ebp + 0x10]
push eax
push edi
mov edx, dword [ebx + 4]
push edx
call fcn.00412eb0
add esp, 0xc
mov esi, eax
mov eax, dword [ebp - 0x30]
push eax
lea edx, [esi + edi]
push edx
mov ecx, dword [ebx + 4]
push ecx
call fcn.00412eb0
add esp, 0xc
add esi, eax
xor eax, eax
mov dword [ebp - 0x54], eax
lea edx, [edi + esi]
mov dword [ebp - 0x70], edx
mov ecx, dword [ebp - 0x2c]
mov eax, ecx
mov edx, dword [ebp - 0x54]
cmp edx, dword [ebp - 0x30]
jge 0x495b74
mov cl, byte [eax]
mov edx, dword [ebp - 0x70]
mov byte [edx], cl
inc dword [ebp - 0x70]
inc dword [ebp - 0x54]
inc eax
mov ecx, dword [ebp - 0x54]
cmp ecx, dword [ebp - 0x30]
jl 0x495b5e
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0049b6d4
pop ecx
jmp 0x495e28
xor eax, eax
xor edx, edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], edx
mov word [ebp - 0x1e], 0
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x5c], eax
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x58], ecx
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.00414b90
add esp, 8
mov edi, eax
test edi, edi
je 0x495cbb
lea eax, [ebp - 0x28]
push eax
push edi
mov edx, dword [ebp + 0xc]
push edx
call fcn.00414c40
add esp, 0xc
mov dword [ebp - 0x24], eax
push edi
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00414bbc
add esp, 8
mov edi, eax
push 0
mov eax, dword [ebp - 0x24]
push eax
mov edx, dword [ebx + 8]
push edx
call fcn.00492878
add esp, 0xc
mov esi, eax
lea eax, [ebp - 0x1c]
push 0
push 0
push eax
push 0
push 0
push 0
push esi
mov edx, dword [ebx + 8]
push edx
call fcn.00492b74
add esp, 0x20
test al, al
je 0x495cb0
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
or dword [ebp - 0x6c], eax
cmp dword [ebp - 0x58], 0
jne 0x495c49
lea edx, [ebp - 0x30]
push edx
push esi
mov ecx, dword [ebx + 8]
push ecx
call fcn.00492164
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
push edx
mov ecx, dword [ebx + 8]
push ecx
call fcn.004930bc
add esp, 8
test al, al
je 0x495c80
lea eax, [ebp - 0x60]
push eax
lea edx, [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x68]
push ecx
mov eax, dword [ebp - 0x24]
push eax
mov edx, dword [ebx + 8]
push edx
call fcn.00493da8
add esp, 0x14
inc dword [ebp - 0x5c]
jmp 0x495ca3
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0x20]
push eax
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx + 0x1c]
push ecx
mov eax, dword [ebx + 4]
push eax
call fcn.00413004
add esp, 0xc
add dword [ebp - 0x68], eax
adc dword [ebp - 0x64], edx
inc dword [ebp - 0x60]
push esi
mov edx, dword [ebx + 8]
push edx
call fcn.00492b34
add esp, 8
inc dword [ebp - 0x58]
test edi, edi
jne 0x495bcd
cmp dword [ebp - 0x58], 1
jne 0x495cec
lea ecx, [ebp - 0x414]
push ecx
push 0x4e168e
mov eax, dword [ebp - 0x24]
push eax
call sub.SHELL32.DLL_FindExecutableA
cmp eax, 0x1f
jbe 0x495cec
lea edx, [ebp - 0x414]
push edx
call fcn.0049c15c
pop ecx
mov word [ebp - 0x1e], ax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 0x14]
shl eax, 2
movzx edx, word [ebp - 0x1e]
add eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x34]
add eax, edx
mov dword [ecx], eax
push eax
call fcn.0049b898
pop ecx
mov edi, eax
mov eax, dword [ebp + 0x10]
push eax
push edi
mov edx, dword [ebx + 4]
push edx
call fcn.00412eb0
add esp, 0xc
mov esi, eax
mov eax, dword [ebp - 0x58]
push eax
lea edx, [esi + edi]
push edx
mov ecx, dword [ebx + 4]
push ecx
call fcn.00412eb0
add esp, 0xc
add esi, eax
mov eax, dword [ebp - 0x6c]
push eax
lea edx, [esi + edi]
push edx
mov ecx, dword [ebx + 4]
push ecx
call fcn.00412f18
add esp, 0xc
add esi, eax
push dword [ebp - 0x64]
push dword [ebp - 0x68]
lea edx, [esi + edi]
push edx
mov ecx, dword [ebx + 4]
push ecx
call fcn.00412f80
add esp, 0x10
add esi, eax
mov eax, dword [ebp - 0x5c]
push eax
lea edx, [esi + edi]
push edx
mov ecx, dword [ebx + 4]
push ecx
call fcn.00412eb0
add esp, 0xc
add esi, eax
mov eax, dword [ebp - 0x60]
push eax
lea edx, [esi + edi]
push edx
mov ecx, dword [ebx + 4]
push ecx
call fcn.00412eb0
add esp, 0xc
add esi, eax
mov eax, dword [ebp - 0x30]
push eax
lea edx, [esi + edi]
push edx
mov ecx, dword [ebx + 4]
push ecx
call fcn.00412eb0
add esi, eax
xor eax, eax
mov dword [ebp - 0x54], eax
add esp, 0xc
mov edx, dword [ebp - 0x2c]
lea eax, [edi + esi]
mov ecx, edx
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x54]
cmp edx, dword [ebp - 0x30]
jge 0x495ddd
mov ecx, dword [ebp - 0x70]
mov dl, byte [ecx]
mov byte [eax], dl
inc esi
inc eax
inc dword [ebp - 0x54]
inc dword [ebp - 0x70]
mov ecx, dword [ebp - 0x54]
cmp ecx, dword [ebp - 0x30]
jl 0x495dc6
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0049b6d4
mov ax, word [ebp - 0x1e]
pop ecx
push eax
lea edx, [esi + edi]
push edx
mov ecx, dword [ebx + 4]
push ecx
call fcn.00412e44
add esp, 0xc
add esi, eax
xor eax, eax
mov dword [ebp - 0x54], eax
lea edx, [edi + esi]
mov dword [ebp - 0x70], edx
lea eax, [ebp - 0x414]
jmp 0x495e1f
mov dl, byte [eax]
mov ecx, dword [ebp - 0x70]
mov byte [ecx], dl
inc dword [ebp - 0x70]
inc dword [ebp - 0x54]
inc eax
movzx edx, word [ebp - 0x1e]
cmp edx, dword [ebp - 0x54]
jg 0x495e11
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret