Function at 0x40a0a0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x964
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
lea edx, [ebp - 0x110]
push ecx
call fcn.0040a050
cmp dword [0x44bac0], 0
pop ecx
jne 0x40a12f
lea eax, [ebp - 0x958]
push eax
lea eax, [ebp - 0x960]
push eax
lea eax, [ebp - 0x950]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x40a184
lea eax, [ebp - 0x110]
push eax
push str.GetDiskFreeSpace___s__error:
push str.os_get_vol_info
push 0x83
push str.srcliblibpaloswindowsos_vol.c
push 0x432f04
push 0x108
push 0
call fcn.0040f171
add esp, 0x20
or eax, 0xffffffff
jmp 0x40a31b
push 0x208
lea edx, [ebp - 0x528]
lea ecx, [ebp - 0x110]
call fcn.004081dc
pop ecx
lea eax, [ebp - 0x958]
push eax
lea eax, [ebp - 0x960]
push eax
lea eax, [ebp - 0x950]
push eax
lea eax, [ebp - 0x528]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x40a184
lea eax, [ebp - 0x110]
push eax
push str.GetDiskFreeSpace___s__error:
push str.os_get_vol_info
push 0x8d
jmp 0x40a10e
cmp dword [0x44bac0], 0
mov eax, dword [ebp - 0x950]
mov ecx, dword [ebp - 0x94c]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x958]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x960]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp - 0x954]
mov dword [esi + 0x18], eax
mov eax, 0x104
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp - 0x95c]
mov dword [esi + 0x1c], ecx
push eax
jne 0x40a1fc
lea ecx, [ebp - 0x320]
push ecx
lea ecx, [ebp - 0x940]
push ecx
lea ecx, [ebp - 0x93c]
push ecx
lea ecx, [ebp - 0x944]
push ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
jmp 0x40a22d
lea ecx, [ebp - 0x938]
push ecx
lea ecx, [ebp - 0x940]
push ecx
lea ecx, [ebp - 0x93c]
push ecx
lea ecx, [ebp - 0x944]
push ecx
push eax
lea eax, [ebp - 0x730]
push eax
lea eax, [ebp - 0x528]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
lea edi, [esi + 0x30]
lea ebx, [esi + 0x20]
test eax, eax
jne 0x40a27e
lea eax, [ebp - 0x110]
push eax
push str.GetVolumeInformation__s__error:
push str.os_get_vol_info
push 0xa9
push str.srcliblibpaloswindowsos_vol.c
push 0x432f04
push 0x108
push 0
call fcn.0040f171
mov dword [esi + 4], 0xff
add esp, 0x20
mov dword [esi], 0x8000
mov byte [edi], 0x30
mov byte [ebx], 0x30
jmp 0x40a319
cmp dword [0x44bac0], 0
mov edx, edi
mov eax, dword [ebp - 0x93c]
mov dword [esi + 4], eax
push 0x100
jne 0x40a2b4
lea ecx, [ebp - 0x218]
call fcn.004084fc
pop ecx
push 0x10
mov edx, ebx
lea ecx, [ebp - 0x320]
call fcn.004084fc
jmp 0x40a2cf
lea ecx, [ebp - 0x730]
call fcn.004080e5
pop ecx
push 0x10
mov edx, ebx
lea ecx, [ebp - 0x938]
call fcn.004080e5
mov eax, dword [ebp - 0x940]
pop ecx
test eax, 0x80000
je 0x40a2e0
or dword [esi], 1
test al, 4
je 0x40a2e7
or dword [esi], 2
test al, 2
je 0x40a2ee
or dword [esi], 4
test al, 1
je 0x40a2f5
or dword [esi], 8
test eax, 0x40000
je 0x40a2ff
or dword [esi], 0x10
test al, 8
je 0x40a306
or dword [esi], 0x40
test eax, 0x400000
je 0x40a313
or dword [esi], 0x80
or dword [esi], 0x8000
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410199
leave
ret