Function at 0x10fe260
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x20
cmp eax, 0xb
ja case.default.0x10fe277
push ebx
push esi
push edi
jmp dword [eax*4 + 0x10fe770]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, 2
or dword [esi + 0x438], ebx
mov ecx, dword [edi + 8]
cmp dword [ecx + 0xa50], 0
mov eax, dword [esi + 0x438]
je 0x10fe2a6
and eax, 0xfffffffb
jmp 0x10fe2a9
or eax, 4
mov dword [esi + 0x438], eax
and eax, 0xfffffefe
or eax, 0x98
mov dword [esi + 0x438], eax
mov edx, dword [edi + 8]
mov ecx, dword [edx]
mov cl, byte [ecx + 0x8232]
cmp cl, 3
je 0x10fe2da
cmp cl, bl
je 0x10fe2da
and eax, 0xfffffdff
jmp 0x10fe2df
or eax, 0x200
mov dword [esi + 0x438], eax
mov ecx, dword [edi + 8]
push 0
lea edx, [ebp - 0x10]
push edx
mov edx, dword [ecx]
lea eax, [ebp - 8]
push eax
add edx, 0x7ea6
push edx
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExW]
test eax, eax
je 0x10fe31d
cmp dword [ebp - 4], 1
ja 0x10fe31d
jb 0x10fe313
cmp dword [ebp - 8], 0
jae 0x10fe31d
or dword [esi + 0x438], 0x200
mov eax, dword [edi + 8]
cmp dword [eax + 0xa50], 0
jne 0x10fe33a
test byte [esi + 0x154], bl
je 0x10fe33a
or dword [esi + 0x438], 0x20
jmp 0x10fe341
and dword [esi + 0x438], 0xffffffdf
or dword [esi + 0x438], 0x3c00
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
mov cl, byte [edx + 0x8232]
mov eax, dword [esi + 0x438]
cmp cl, 3
je 0x10fe36c
cmp cl, bl
je 0x10fe36c
or eax, 0x4000
jmp 0x10fe371
and eax, 0xffffbfff
mov dword [esi + 0x438], eax
mov eax, dword [edi + 8]
cmp dword [eax + 0xa50], 0
jne 0x10fe394
cmp dword [eax + 0xa48], 0
je 0x10fe3a4
test byte [edi + 0x2b6ec], bl
jne 0x10fe3a4
and dword [esi + 0x1b8], 0xfffffffb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
or dword [esi + 0x1b8], 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 0x2f4]
lea edx, [ebp - 0x20]
push edx
call eax
mov ax, word [ebp - 0x18]
mov edi, dword [ebp + 0xc]
mov dword [edi + 0x1c0], 0
test ax, ax
jne 0x10fe3eb
mov dword [edi + 0x1c4], 0x1b
jmp 0x10fe3f7
movzx ecx, ax
add ecx, 3
mov dword [edi + 0x1c4], ecx
mov edx, dword [esi + 8]
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0x2a0]
call ecx
xor edx, edx
mov ecx, 0x3c
div ecx
push 4
push esi
mov dword [edi + 0x1bc], 1
mov dword [edi + 0x1c8], edx
mov edx, dword [edi + 0x1b4]
and edx, 0xffffffbf
or edx, 0x3f
mov dword [edi + 0x1b4], edx
call fcn.01077070
push esi
call fcn.010fe0f0
test eax, eax
je case.0x10fe277.8
mov eax, dword [esi + 0x2d3dc]
mov ecx, dword [esi + 8]
push 0x820
push eax
push 0xc
push ecx
call fcn.010da760
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x1b8]
or dword [ecx + 0x5c8], 4
mov edx, dword [ebp + 8]
and eax, 0xffffff3f
or eax, 0x113
mov dword [ecx + 0x1b8], eax
mov edx, dword [edx + 8]
mov edx, dword [edx]
mov dl, byte [edx + 0x8232]
cmp dl, 3
je 0x10fe4af
cmp dl, 2
je 0x10fe4af
pop edi
and eax, 0xffffffdf
or eax, 8
pop esi
mov dword [ecx + 0x1b8], eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
and eax, 0xfffffff7
or eax, 0x20
pop esi
mov dword [ecx + 0x1b8], eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x6d4]
or dword [eax + 0xc90], 0x1f
or dword [eax + 0x6a0], 0x3f
mov edx, dword [ebp + 8]
and ecx, 0xfffffff7
mov ebx, 1
or ecx, 0x17
mov dword [eax + 0x6d4], ecx
mov ecx, dword [eax + 0xc90]
mov dword [eax + 0x6a8], ebx
mov dword [eax + 0x6d8], ebx
mov edx, dword [edx + 0x2b6ec]
shr edx, 0xe
not edx
xor edx, ecx
and edx, 0x20
xor edx, ecx
mov ecx, dword [eax + 0xcf0]
pop edi
and ecx, 0xffffffbf
or ecx, 0xbd
pop esi
mov dword [eax + 0xc94], ebx
mov dword [eax + 0xcf4], ebx
mov dword [eax + 0xc90], edx
mov dword [eax + 0xcf0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
or dword [eax + 0xcc0], 0x3f
mov ecx, dword [eax + 0xc8]
mov edx, dword [eax + 0xcc0]
test ecx, 0x200
jne 0x10fe57b
mov esi, dword [ebp + 8]
mov esi, dword [esi + 8]
cmp dword [esi + 0xa60], 0
jne 0x10fe57b
and ecx, 0xffffdfff
and edx, 0xffffffbf
jmp 0x10fe584
or ecx, 0x2000
or edx, 0x40
or dword [eax + 0xcf0], 2
mov ebx, 1
pop edi
pop esi
mov dword [eax + 0xcc4], ebx
mov dword [eax + 0xcc8], ebx
mov dword [eax + 0xcc0], edx
mov dword [eax + 0xc8], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 0xc]
or dword [esi + 0x3b4], 0x200
mov edi, dword [ebp + 8]
mov edx, dword [edi + 8]
mov ecx, dword [edx]
mov cl, byte [ecx + 0x8232]
mov eax, dword [esi + 0x3b4]
cmp cl, 3
je 0x10fe5e8
mov ebx, 2
cmp cl, bl
je 0x10fe5e8
mov dword [esi + 0x730], ebx
jmp 0x10fe5f2
mov dword [esi + 0x730], 0
and eax, 0xffffff3f
or eax, 0x133
mov ebx, 1
mov dword [esi + 0x734], ebx
mov dword [esi + 0x40c], 0
mov dword [esi + 0x3b4], eax
mov edx, dword [edi + 8]
push 0xb
push edx
call fcn.010da820
test eax, eax
jne 0x10fe630
cmp dword [edi + 0x2d338], eax
je 0x10fe630
mov eax, ebx
and dword [esi + 0x3b4], 0xfffffff7
mov ecx, dword [esi + 0x3b4]
mov dword [esi + 0xcc], eax
test eax, eax
je 0x10fe660
and ecx, 0xfffffffb
and dword [esi + 0x438], 0xffffffbf
pop edi
mov dword [esi + 0x3b4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
or ecx, 4
and dword [esi + 0x438], 0xffffffbf
pop edi
mov dword [esi + 0x3b4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 0xc]
xor edi, edi
push 0x82
lea eax, [esi + 0x204]
push edi
push eax
mov dword [esi + 0x1f8], edi
mov dword [esi + 0x1fc], edi
mov dword [esi + 0x200], edi
call sub.msvcrt.dll_memset
push 0x82
lea ecx, [esi + 0x286]
push edi
push ecx
call sub.msvcrt.dll_memset
push 0x82
push edi
add esi, 0x308
push esi
call sub.msvcrt.dll_memset
add esp, 0x24
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
push edx
call fcn.01075910
pop edi
mov dword [esi + 0x67c], 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
cmp dword [esi + 0x2d3dc], 0
jne 0x10fe708
push 0
push 0
push esi
call fcn.010df9e0
mov eax, dword [esi + 0x2d3dc]
test eax, eax
je case.0x10fe277.8
push eax
call fcn.01075c30
jmp 0x10fe442
mov esi, dword [ebp + 8]
cmp dword [esi + 0x2d3dc], 0
jne 0x10fe737
push 0
push 0
push esi
call fcn.010df9e0
mov eax, dword [esi + 0x2d3dc]
test eax, eax
je case.0x10fe277.8
push eax
push esi
call fcn.010df740
jmp 0x10fe442
mov esi, dword [ebp + 8]
push 2
push esi
call fcn.01077070
push 0
push esi
call fcn.01077070
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc