Function at 0x42e4ba
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x864
mov eax, dword [0x4310b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, 0x104
mov dword [ebp - 0x854], ecx
push eax
xor esi, esi
mov dword [ebp - 0x640], eax
xor ebx, ebx
mov dword [ebp - 0x648], esi
lea eax, [ebp - 0x850]
inc ebx
push esi
push eax
mov edi, edx
mov byte [ebp - 0x644], bl
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x430], esi
mov eax, 0x104
mov byte [ebp - 0x42c], bl
mov dword [ebp - 0x428], eax
push eax
lea eax, [ebp - 0x638]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x218], esi
mov eax, 0x104
mov byte [ebp - 0x214], bl
mov dword [ebp - 0x210], eax
push eax
lea eax, [ebp - 0x420]
push esi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
lea ecx, [ebp - 0x850]
add esp, 0xc
cmp byte [ebp - 0x644], al
sete al
dec eax
and eax, 0x7ee3
add eax, 0x104
push eax
call fcn.0040d300
test eax, eax
js 0x42e7c3
xor eax, eax
lea ecx, [ebp - 0x638]
cmp byte [ebp - 0x42c], al
sete al
dec eax
and eax, 0x7ee3
add eax, 0x104
push eax
call fcn.0040d300
test eax, eax
js 0x42e7c3
xor eax, eax
lea ecx, [ebp - 0x420]
cmp byte [ebp - 0x214], al
sete al
dec eax
and eax, 0x7ee3
add eax, 0x104
push eax
call fcn.0040d300
test eax, eax
js 0x42e7c3
push edi
lea ecx, [ebp - 0x850]
call fcn.0040f229
mov edx, dword [ebp - 0x218]
test edx, edx
jne 0x42e5f1
lea edx, [ebp - 0x420]
mov edi, dword [ebp - 0x648]
mov ecx, edi
test edi, edi
jne 0x42e603
lea ecx, [ebp - 0x850]
lea eax, [ecx + 2]
mov dword [ebp - 0x858], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x42e60c
sub ecx, dword [ebp - 0x858]
sar ecx, 1
test edi, edi
jne 0x42e629
lea edi, [ebp - 0x850]
push dword [ebp - 0x210]
push edx
lea edx, [ecx + 1]
mov ecx, edi
call fcn.00407349
test al, al
je 0x42e7cf
push 0x40263c
lea ecx, [ebp - 0x420]
call fcn.004121c1
mov ecx, dword [ebp - 0x430]
test ecx, ecx
jne 0x42e662
lea ecx, [ebp - 0x638]
mov eax, dword [ebp - 0x218]
test eax, eax
jne 0x42e672
lea eax, [ebp - 0x420]
push esi
push esi
push esi
push esi
lea edx, [ebp - 0x860]
push edx
push dword [ebp - 0x428]
push ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumeInformationW]
test eax, eax
jne 0x42e6b4
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x90
je 0x42e7cf
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
call fcn.004128ff
pop ecx
pop ecx
jmp 0x42e7d1
mov eax, dword [ebp - 0x218]
mov ecx, eax
test eax, eax
jne 0x42e6c6
lea ecx, [ebp - 0x420]
cmp word [ecx], 0x5c
jne 0x42e6eb
test eax, eax
jne 0x42e6d6
lea eax, [ebp - 0x420]
mov ecx, eax
jmp 0x42e6df
mov ecx, eax
add eax, 2
cmp word [eax], si
jne 0x42e6da
xor eax, eax
mov word [ecx], ax
jmp 0x42e6fb
test eax, eax
jne 0x42e6f5
lea eax, [ebp - 0x420]
xor ecx, ecx
mov word [eax + 2], cx
mov eax, dword [ebp - 0x430]
mov ecx, eax
test eax, eax
jne 0x42e70d
lea ecx, [ebp - 0x638]
cmp word [ecx], si
je 0x42e746
test eax, eax
jne 0x42e71c
lea eax, [ebp - 0x638]
mov ecx, dword [ebp - 0x218]
test ecx, ecx
jne 0x42e72c
lea ecx, [ebp - 0x420]
mov edi, dword [ebp - 0x854]
push eax
push ecx
push 2
push 0x235f
push edi
call fcn.0042b807
add esp, 0x14
jmp 0x42e76c
mov eax, dword [ebp - 0x218]
test eax, eax
jne 0x42e756
lea eax, [ebp - 0x420]
mov edi, dword [ebp - 0x854]
push eax
push ebx
push 0x235e
push edi
call fcn.0042b807
add esp, 0x10
mov esi, eax
test esi, esi
jne 0x42e7d3
mov eax, dword [ebp - 0x860]
test eax, eax
jne 0x42e784
cmp dword [ebp - 0x85c], eax
je 0x42e7d3
movzx eax, ax
push eax
movzx eax, word [ebp - 0x85e]
push eax
push 0x4036b4
lea eax, [ebp - 0x208]
push 0x100
push eax
call fcn.00409041
add esp, 0x14
lea eax, [ebp - 0x208]
push eax
push ebx
push 0x235b
push edi
call fcn.0042b807
add esp, 0x10
mov esi, eax
jmp 0x42e7d3
push esi
push 8
call fcn.004128ff
pop ecx
pop ecx
mov esi, ebx
mov ebx, esi
mov esi, ebx
lea ecx, [ebp - 0x420]
call fcn.0040fce6
lea ecx, [ebp - 0x638]
call fcn.0040fce6
lea ecx, [ebp - 0x850]
call fcn.0040fce6
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417b90
leave
ret