Function at 0x10136ea0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x1022a094]
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 0x10136f3e
lea eax, [ebp - 0x214]
push eax
push 0x105
call fcn.1015c110
add esp, 8
test eax, eax
jne 0x101371f1
lea edx, [ebp - 0x214]
mov dword [ebp - 0x230], edx
push edx
call fcn.10151aa0
add esp, 4
mov dword [ebp - 0x220], eax
test eax, eax
jne 0x10136f67
pop edi
pop esi
mov eax, 7
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10132937
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 0x10136f8c
mov ebx, 1
jmp 0x10136f9a
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 [0x1022e3ac]
mov dword [ebp - 0x224], ecx
test eax, eax
jne 0x10136ff2
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 [0x1022e3ac], eax
push 0
push ecx
push ebx
mov ebx, dword [ebp - 0x220]
push 0
push 3
push edx
push ebx
cmp eax, 2
jne 0x1013700f
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x10137015
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x101370a1
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 0x10137072
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.10136ea0
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10132937
mov esp, ebp
pop ebp
ret
push 0x101d8574
push 0x81e2
push str.cannot_open_file_at_line__d_of___.10s_
push 0xe
call fcn.10144920
add esp, 0x10
mov eax, 0xe
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10132937
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x21c]
test edx, edx
je 0x101370b9
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], 0x101d1138
mov dword [edi + 0x10], 0
mov dword [edi + 4], ecx
mov dword [edi + 0x18], 0
mov dword [ebp - 0x21c], 0x200
call fcn.10137980
add esp, 0x10
test eax, eax
jne 0x101371d7
lea eax, [ebp - 0x10c]
push eax
call fcn.10151aa0
mov esi, eax
add esp, 4
test esi, esi
je 0x101371d0
call fcn.1015d2a0
mov ecx, esi
test eax, eax
je 0x1013718c
movzx eax, word [esi]
test ax, ax
je 0x1013716d
mov edx, eax
cmp dx, 0x5c
je 0x10137168
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x10137152
jmp 0x1013716d
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 0x101371c0
mov al, byte [esi]
test al, al
je 0x101371a3
cmp al, 0x5c
je 0x101371a0
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x10137192
jmp 0x101371a3
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 0x101371d7
mov eax, 0x200
jmp 0x101371dd
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.10132937
mov esp, ebp
pop ebp
ret