Function at 0x4262a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1734
call fcn.00424210
mov eax, dword [0x43e004]
xor eax, esp
mov dword [esp + 0x1730], eax
push ebx
push esi
push edi
push 0x1000
lea eax, [esp + 0x73c]
push 0
push eax
call fcn.00407d30
push 0x208
lea eax, [esp + 0x4c0]
push 0
push eax
call fcn.00407d30
add esp, 0x18
or ebx, 0xffffffff
xor ecx, ecx
movzx eax, word [ecx + 0x4400d8]
lea ecx, [ecx + 2]
mov word [esp + ecx + 0x4ae], ax
test ax, ax
jne 0x4262f1
push 0x80
lea eax, [esp + 0x6bc]
push 0
push eax
call fcn.00407d30
lea ecx, [esp + 0x4bc]
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x426330
sub ecx, edx
lea eax, [esp + 0x4b0]
sar ecx, 1
push eax
cmp ecx, 3
ja 0x426396
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
add eax, 0xfffffffe
cmp eax, 3
ja case.default.0x42635a
jmp dword [eax*4 + 0x426584]
xor esi, esi
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1730]
xor ecx, esp
call fcn.00406bb3
mov esp, ebp
pop ebp
ret
mov esi, 1
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1730]
xor ecx, esp
call fcn.00406bb3
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call edi
push 0x5c
lea esi, [esp + eax*2 + 0x4b2]
lea eax, [esp + 0x4b4]
push eax
call fcn.004078b9
add esp, 8
cmp eax, esi
jne 0x4263f1
lea ecx, [esp + 0x4b0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4263c5
sub ecx, edx
sar ecx, 1
lea ecx, [ecx*2 - 2]
cmp ecx, 0x208
jae 0x42657f
xor eax, eax
mov word [esp + ecx + 0x4b0], ax
push 0x43a24c
call edi
push eax
lea eax, [esp + 0x4b4]
push 0x43a24c
push eax
call fcn.00412f6f
add esp, 0xc
test eax, eax
jne 0x426442
lea eax, [esp + 0x4b4]
push 0x5c
push eax
call fcn.004077f2
add esp, 8
test eax, eax
je case.default.0x42635a
add eax, 2
push 0x5c
push eax
call fcn.004077f2
add esp, 8
test eax, eax
je case.0x42635a.2
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x4b4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x426542
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x426474
cmp eax, 2
jne case.default.0x42635a
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [esp + 0x738]
push 0x800
push eax
push 0x3c
push dword [0x43fbf8]
call esi
push 0x40
lea eax, [esp + 0x6bc]
push eax
push 0x442
push dword [0x43fbf8]
call esi
push 0x24
lea eax, [esp + 0x6bc]
push eax
lea eax, [esp + 0x740]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x4264e8
cmp eax, 1
je 0x4264e8
mov esi, 3
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1730]
xor ecx, esp
call fcn.00406bb3
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x4b0]
call fcn.00426010
test eax, eax
jne 0x426514
mov esi, 2
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1730]
xor ecx, esp
call fcn.00406bb3
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x260]
push eax
lea eax, [esp + 0x4b4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je case.default.0x42635a
mov esi, dword [esp + 0x260]
mov dword [esp + 0x10], esi
jmp 0x426546
mov esi, dword [esp + 0x10]
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
shr esi, 4
not esi
and esi, 1
cmp edi, 0xffffffff
je 0x426560
push edi
call eax
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
cmp ebx, 0xffffffff
je 0x426568
push ebx
call eax
mov ecx, dword [esp + 0x173c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406bb3
mov esp, ebp
pop ebp
ret
call fcn.00406ce3
popal
arpl word [edx], ax
popal
arpl word [edx], ax
popal
arpl word [edx], ax
popal
arpl word [edx], ax
int3