Function at 0x59bcca
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7149e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push esi
mov byte [ebp - 0x10], 0
xor eax, eax
mov al, byte [0x7d2e18]
test eax, eax
jne 0x59bd7e
push str.GetDiskFreeSpaceExA
push 0x77f2b0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x59bd54
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 0x24]
push eax
call fcn.004ee930
add esp, 4
mov byte [ebp - 0x10], al
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x34]
mov dword [edx], eax
mov ecx, dword [ebp - 0x30]
mov dword [edx + 4], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x2c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x28]
mov dword [edx + 4], ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x59bd79
xor al, al
jmp 0x59bee0
jmp 0x59be7a
push str.GetDiskFreeSpaceExW
push 0x77f2d4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x59be0d
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x64]
push edx
call fcn.004edc1e
add esp, 8
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x7c]
call fcn.004b6540
push eax
call dword [ebp - 0x40]
push eax
call fcn.004ee930
add esp, 4
mov byte [ebp - 0x10], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.004125e0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x50]
mov dword [ecx], edx
mov eax, dword [ebp - 0x4c]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x48]
mov dword [ecx], edx
mov eax, dword [ebp - 0x44]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x74]
push eax
call fcn.004edc1e
add esp, 8
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x84]
call fcn.004b6540
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x68], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.004125e0
mov edx, dword [ebp - 0x68]
and edx, 0xff
test edx, edx
je 0x59be7a
xor al, al
jmp 0x59bee0
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
xor esi, esi
push esi
push edx
push ecx
push eax
call fcn.0044fa70
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x10]
and edx, 0xff
test edx, edx
jne 0x59bede
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov edx, dword [ebp + 0xc]
push ecx
push eax
mov eax, dword [edx + 4]
push eax
mov ecx, dword [edx]
push ecx
call fcn.0044fa70
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x14]
xor eax, eax
mov ecx, dword [ebp + 0xc]
push eax
push edx
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ecx]
push eax
call fcn.0044fa70
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret