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

Disassembly:
sub esp, 0x324
push ebx
push ebp
push esi
lea eax, [esp + 0x94]
push edi
push eax
mov byte [esp + 0x98], 0x66
mov byte [esp + 0x17e], 0
mov dword [esp + 0x9c], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edi, dword [esp + 0x344]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x180]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x234], 0
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x10], 0x100
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x3f
lea edi, [esp + 0x235]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x24]
stosb byte es:[edi], al
push ecx
mov edi, 1
push edx
push 0
push edi
push 0
push 0
push 0
push 0x10001abc
push 0x80000001
mov dword [esp + 0x48], edi
call dword [fcn.10003cd8]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x10002698
push 0x100012e4
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebp
mov esi, eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x234]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x30]
push ecx
push edx
push 0
push 0x1001fef0
push eax
mov dword [esp + 0x44], edi
call dword [fcn.10003cfc]
test eax, eax
jne 0x100156f3
mov ecx, dword [esp + 0x14]
push ecx
call dword [fcn.10003ca4]
jmp 0x10015702
lea edx, [esp + 0x10]
lea eax, [esp + 0x234]
push edx
push eax
call esi
xor ecx, ecx
lea edx, [esp + 0x28]
mov dword [esp + 0x40], ecx
push edx
mov dword [esp + 0x48], ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x4c], ecx
push eax
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x344]
mov dword [esp + 0x30], 0x10
mov edx, dword [ecx + 0xa8]
push edx
call dword [fcn.10003e1c]
mov eax, dword [esp + 0x44]
mov ecx, 0xc
lea esi, [esp + 0x234]
lea edi, [esp + 0x148]
mov dword [esp + 0x144], eax
push 0x10002688
rep movsd dword es:[edi], dword [esi]
push 0x100012e4
movsw word es:[edi], word [esi]
call ebx
push eax
call ebp
lea ecx, [esp + 0x70]
push ecx
call eax
mov dx, word [esp + 0x84]
mov word [esp + 0x134], dx
call fcn.10015290
mov dword [esp + 0x138], eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x54], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 0x58]
shr ecx, 0x14
inc ecx
mov dword [esp + 0x13c], ecx
call fcn.100152f0
xor ebp, ebp
xor esi, esi
xor edi, edi
mov byte [esp + 0x17a], al
xor ebx, ebx
mov dl, bl
lea eax, [esp + 0x18]
add dl, 0x42
push eax
mov byte [esp + 0x1c], dl
mov byte [esp + 0x1d], 0x3a
mov byte [esp + 0x1e], 0x5c
mov byte [esp + 0x1f], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x10015820
lea ecx, [esp + 0x38]
push 0
push ecx
lea edx, [esp + 0x20]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x10015820
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
add esi, eax
adc edi, ecx
mov ecx, 0x14
mov eax, esi
mov edx, edi
call fcn.1001e0e0
mov ebp, eax
inc ebx
cmp ebx, 0x1a
jl 0x100157c4
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], 0
fild qword [esp + 0x30]
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x340]
mov dword [esp + 0x140], eax
mov dword [esp + 0x17c], edx
call fcn.10015350
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1e4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x1a0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x344]
call fcn.100067c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x324
ret