Function at 0x5f3c90
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x6f0f64]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x228], eax
mov eax, ecx
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x234], ecx
push edi
mov edi, dword [ebp + 0x10]
test ecx, ecx
jne 0x5f3cf6
lea eax, [ebp - 0x10c]
push eax
push 0x105
call fcn.00614f10
add esp, 8
test eax, eax
jne 0x5f3f92
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x234], eax
push eax
call fcn.00605490
mov ecx, eax
add esp, 4
mov dword [ebp - 0x22c], ecx
test ecx, ecx
jne 0x5f3d1d
lea eax, [ecx + 7]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058d09a
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x14]
mov edx, 0xc0000000
mov eax, ebx
and eax, 2
mov dword [ebp - 0x230], eax
mov eax, SysReAllocStringLen
cmove edx, eax
mov dword [ebp - 0x23c], edx
push esi
test bl, 0x10
je 0x5f3d4c
mov esi, 1
jmp 0x5f3d62
test bl, 4
mov eax, 0
setne al
add eax, 3
mov dword [ebp - 0x224], eax
mov esi, eax
test bl, 8
mov dword [ebp - 0x224], 0x80
mov eax, 0x4000102
cmove eax, dword [ebp - 0x224]
mov dword [ebp - 0x224], eax
mov eax, dword [0x6ff2e4]
test eax, eax
jne 0x5f3dbf
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [ebp - 0x22c]
xor eax, eax
cmp dword [ebp - 0x210], 2
mov edx, dword [ebp - 0x23c]
sete al
inc eax
mov dword [0x6ff2e4], eax
push 0
push dword [ebp - 0x224]
push esi
push 0
push 3
push edx
push ecx
cmp eax, 2
jne 0x5f3ddb
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x5f3de1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x5f3e5d
push dword [ebp - 0x22c]
call fcn.005bffae
add esp, 4
cmp dword [ebp - 0x230], 0
je 0x5f3e33
mov edx, dword [ebp - 0x228]
and ebx, 0xfffffffd
push edx
or ebx, 1
push ebx
push edi
push dword [ebp - 0x240]
push dword [ebp - 0x238]
call fcn.005f3c90
add esp, 0x14
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058d09a
mov esp, ebp
pop ebp
ret
push 0x7336
push str.cannot_open_file_at_source_line__d
push 0xe
call fcn.00658600
add esp, 0xc
mov eax, 0xe
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058d09a
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x228]
test edx, edx
je 0x5f3e75
xor eax, eax
cmp dword [ebp - 0x230], eax
setne al
inc eax
mov dword [edx], eax
lea eax, [ebp - 0x214]
mov dword [edi + 8], 0
push eax
push 0x104
push dword [ebp - 0x234]
mov dword [edi + 0x10], 0
push dword [ebp - 0x238]
mov dword [edi], 0x6b4160
mov dword [edi + 4], ecx
mov dword [edi + 0xc], 0
mov dword [ebp - 0x224], 0x200
call fcn.005f41c0
add esp, 0x10
test eax, eax
jne 0x5f3f77
lea eax, [ebp - 0x214]
push eax
call fcn.00605490
mov esi, eax
add esp, 4
test esi, esi
je 0x5f3f70
call fcn.00616060
mov ecx, esi
test eax, eax
je 0x5f3f2d
movzx eax, word [esi]
test ax, ax
je 0x5f3f0e
mov edx, eax
cmp dx, 0x5c
je 0x5f3f09
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x5f3ef3
jmp 0x5f3f0e
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x228]
push eax
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x228]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x5f3f61
mov al, byte [esi]
test al, al
je 0x5f3f44
cmp al, 0x5c
je 0x5f3f41
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x5f3f33
jmp 0x5f3f44
mov byte [ecx], 0
lea eax, [ebp - 0x228]
push eax
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x228]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov ebx, eax
call fcn.005bffae
add esp, 4
test ebx, ebx
jne 0x5f3f77
mov eax, 0x200
jmp 0x5f3f7d
mov eax, dword [ebp - 0x224]
push dword [ebp - 0x22c]
mov dword [edi + 0x10], eax
call fcn.005bffae
add esp, 4
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0058d09a
mov esp, ebp
pop ebp
ret