Function at 0x417530
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe28
mov eax, dword [0x72400c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xe24], ebx
cmp dword [eax + 0x14], 8
mov dword [ebp - 0xe28], eax
mov dword [eax + 0x10], 0
jb 0x417565
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x417584
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ce564
mov esp, ebp
pop ebp
ret 8
cmp eax, 0x400
ja 0x417571
push 0x402
lea eax, [ebp - 0x614]
push 0
push eax
call fcn.004e7b30
add esp, 0xc
lea eax, [ebp - 0x614]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edx, eax
mov dword [ebp - 0xe20], edx
lea ecx, [edx - 1]
cmp ecx, 0x1ff
ja 0x417571
lea ecx, [edx + edx]
cmp ecx, 0x402
jae 0x41780b
push esi
xor eax, eax
or esi, 0xffffffff
push edi
xor edi, edi
mov word [ebp + ecx - 0x614], ax
cmp dword [ebx + 0x10], eax
jbe 0x41761d
nop dword [eax + eax]
cmp dword [ebx + 0x14], 8
jb 0x4175fa
mov eax, dword [ebx]
jmp 0x4175fc
mov eax, ebx
movzx eax, word [eax + edi*2]
push eax
call fcn.004ecea8
mov word [ebp + edi*2 - 0xe18], ax
add esp, 4
inc edi
cmp edi, dword [ebx + 0x10]
jb 0x4175f0
mov edx, dword [ebp - 0xe20]
mov eax, dword [ebx + 0x10]
add eax, eax
cmp eax, 0x802
jae 0x41780b
xor ecx, ecx
xor edi, edi
mov word [ebp + eax - 0xe18], cx
lea ecx, [edx + 1]
mov dword [ebp - 0xe1c], ecx
test ecx, ecx
jle 0x41775d
nop word [eax + eax]
cmp word [ebp + edi*2 - 0x614], 0
jne 0x417754
mov eax, edi
cmp esi, 0xffffffff
jne 0x41766a
xor ebx, ebx
jmp 0x41766f
lea ebx, [esi + 1]
sub eax, ebx
mov dword [ebp - 0xe20], ebx
mov esi, edi
test eax, eax
je 0x417754
lea ecx, [eax + ebx]
add ecx, ecx
movzx edx, word [ebp + ecx - 0x616]
cmp edx, 0x5c
je 0x417696
cmp edx, 0x2f
jne 0x4176b0
add ecx, 0xfffffffe
cmp ecx, 0x402
jae 0x41780b
xor edx, edx
dec eax
mov word [ebp + ecx - 0x614], dx
mov esi, edi
test eax, eax
je 0x41774e
push 0x104
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x614]
lea eax, [eax + ebx*2]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov ebx, eax
test ebx, ebx
je 0x41774e
cmp ebx, 0x104
ja 0x41774e
mov eax, dword [ebp - 0xe24]
cmp ebx, dword [eax + 0x10]
ja 0x41774e
xor esi, esi
test ebx, ebx
je 0x41771e
nop word [eax + eax]
movzx eax, word [ebp + esi*2 - 0x210]
push eax
call fcn.004ecea8
mov word [ebp + esi*2 - 0x210], ax
add esp, 4
inc esi
cmp esi, ebx
jb 0x417700
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004ecc28
mov ebx, eax
mov esi, edi
push ebx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0xe18]
push eax
call fcn.004ecebb
add esp, 0x14
test eax, eax
je 0x417772
mov ecx, dword [ebp - 0xe1c]
inc edi
cmp edi, ecx
jl 0x417650
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ce564
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0xe20]
lea ecx, [ebp - 0x614]
lea eax, [ecx + eax*2]
mov ecx, dword [ebp - 0xe28]
push eax
call fcn.0040f7e0
mov ecx, dword [ebp - 0xe28]
push 0x70fec0
call fcn.00417a60
mov eax, dword [ebp - 0xe24]
cmp dword [eax + 0x14], 8
jb 0x4177ad
mov edi, dword [eax]
jmp 0x4177af
mov edi, eax
lea ecx, [ebp - 0xe24]
push ecx
mov ecx, eax
call fcn.00410740
lea edx, [edi + ebx*2]
mov esi, eax
mov ebx, dword [ebp - 0xe28]
mov edi, dword [ebx + 0x14]
cmp edi, 8
jb 0x4177d4
mov ecx, dword [ebx]
jmp 0x4177d6
mov ecx, ebx
mov eax, dword [ebx + 0x10]
add eax, eax
add ecx, eax
cmp edi, 8
jb 0x4177e6
mov edi, dword [ebx]
jmp 0x4177e8
mov edi, ebx
push dword [esi]
add eax, edi
push edx
push ecx
push eax
mov ecx, ebx
call fcn.00412550
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ce564
mov esp, ebp
pop ebp
ret 8
call fcn.004ceba5
int3