Function at 0x1003a3f0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x100ec084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, ecx
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0x18]
push ebx
mov dword [ebp - 0x21c], eax
push esi
mov esi, dword [ebp + 0x14]
mov eax, esi
and eax, 0x10
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x234], eax
mov ebx, esi
mov eax, esi
mov dword [ebp - 0x230], ecx
and eax, 8
and ebx, 2
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x224], eax
mov eax, esi
and eax, 4
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x238], eax
mov dword [edi + 8], 0xffffffff
test ecx, ecx
jne 0x1003a48e
lea eax, [ebp - 0x214]
push eax
push 0x105
call fcn.1005f8a0
add esp, 8
test eax, eax
jne 0x1003a741
lea edx, [ebp - 0x214]
mov dword [ebp - 0x230], edx
push edx
call fcn.10055220
add esp, 4
mov dword [ebp - 0x220], eax
test eax, eax
jne 0x1003a4b7
pop edi
pop esi
mov eax, 7
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10031516
mov esp, ebp
pop ebp
ret
test ebx, ebx
mov edx, 0xc0000000
mov eax, 0x80000000
cmove edx, eax
cmp dword [ebp - 0x234], 0
mov dword [ebp - 0x23c], edx
je 0x1003a4dc
mov ebx, 1
jmp 0x1003a4ea
xor ebx, ebx
cmp dword [ebp - 0x238], ebx
setne bl
add ebx, 3
cmp dword [ebp - 0x224], 0
mov eax, 0x80
mov ecx, 0x4000102
cmove ecx, eax
mov eax, dword [0x100efd74]
mov dword [ebp - 0x224], ecx
test eax, eax
jne 0x1003a542
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [ebp - 0x224]
xor eax, eax
cmp dword [ebp - 0x8c], 2
mov edx, dword [ebp - 0x23c]
sete al
inc eax
mov dword [0x100efd74], eax
push 0
push ecx
push ebx
mov ebx, dword [ebp - 0x220]
push 0
push 3
push edx
push ebx
cmp eax, 2
jne 0x1003a55f
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x1003a565
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x1003a5f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [edi + 0x10], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp dword [ebp - 0x218], 0
je 0x1003a5c2
mov edx, dword [ebp - 0x21c]
and esi, 0xfffffff9
mov eax, dword [ebp - 0x22c]
or esi, 1
mov ecx, dword [ebp - 0x228]
push edx
push esi
push edi
push eax
push ecx
call fcn.1003a3f0
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10031516
mov esp, ebp
pop ebp
ret
push 0x100c2c6c
push 0x81e2
push str.cannot_open_file_at_line__d_of___.10s_
push 0xe
call fcn.10048080
add esp, 0x10
mov eax, 0xe
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10031516
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x21c]
test edx, edx
je 0x1003a609
xor eax, eax
cmp dword [ebp - 0x218], eax
setne al
inc eax
mov dword [edx], eax
mov eax, dword [ebp - 0x22c]
mov dword [edi + 0xc], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x1c], eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
push dword [ebp - 0x230]
mov dword [edi + 8], ecx
mov ecx, dword [ebp - 0x228]
push ecx
mov dword [edi], 0x100bb7f8
mov dword [edi + 0x10], 0
mov dword [edi + 4], ecx
mov dword [edi + 0x18], 0
mov dword [ebp - 0x21c], 0x200
call fcn.1003aed0
add esp, 0x10
test eax, eax
jne 0x1003a727
lea eax, [ebp - 0x10c]
push eax
call fcn.10055220
mov esi, eax
add esp, 4
test esi, esi
je 0x1003a720
call fcn.10060a30
mov ecx, esi
test eax, eax
je 0x1003a6dc
movzx eax, word [esi]
test ax, ax
je 0x1003a6bd
mov edx, eax
cmp dx, 0x5c
je 0x1003a6b8
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x1003a6a2
jmp 0x1003a6bd
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x218]
push eax
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x1003a710
mov al, byte [esi]
test al, al
je 0x1003a6f3
cmp al, 0x5c
je 0x1003a6f0
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x1003a6e2
jmp 0x1003a6f3
mov byte [ecx], 0
lea eax, [ebp - 0x218]
push eax
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov ebx, eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test ebx, ebx
jne 0x1003a727
mov eax, 0x200
jmp 0x1003a72d
mov eax, dword [ebp - 0x21c]
push dword [ebp - 0x220]
mov dword [edi + 0x14], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10031516
mov esp, ebp
pop ebp
ret