Function at 0x426584
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push 0x4e4
mov eax, 0x431b6a
call fcn.004148fb
mov dword [ebp - 0x4d4], ecx
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x4d0], eax
cmp dword [esi + 0x50], eax
mov eax, esi
je 0x4265ae
lea eax, [esi + 0x3c]
push eax
lea ecx, [ebp - 0x43c]
call fcn.0040b470
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x424]
mov ecx, dword [ebp - 0x438]
mov edi, ecx
cmp edx, 8
jae 0x4265d7
lea edi, [ebp - 0x438]
mov eax, dword [ebp - 0x428]
push 0x5c
pop ebx
cmp word [edi + eax*2 - 2], bx
mov ebx, dword [ebp - 0x4d4]
je 0x42660a
push 0x5c
pop eax
push eax
push 1
lea ecx, [ebp - 0x43c]
call fcn.004186eb
mov edx, dword [ebp - 0x424]
mov ecx, dword [ebp - 0x438]
cmp edx, 8
jae 0x426615
lea ecx, [ebp - 0x438]
push ecx
push ebx
call fcn.0041ebeb
test al, al
jne 0x426627
xor bl, bl
jmp 0x426a2a
cmp byte [esi + 0x38], 0
jne 0x426634
mov bl, 1
jmp 0x426a2a
cmp dword [ebp - 0x424], 8
mov eax, dword [ebp - 0x438]
jae 0x426649
lea eax, [ebp - 0x438]
mov ebx, 0x104
lea ecx, [ebp - 0x218]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov esi, 0x80070000
test eax, eax
jne 0x42668a
sub esp, 0x1c
mov ecx, esp
push 0x4047b0
call fcn.0040b41d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x426684
movzx eax, ax
or eax, esi
push eax
call fcn.004150e1
push ebx
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x4266c7
sub esp, 0x1c
mov ecx, esp
push 0x4047d8
call fcn.0040b41d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4266c1
movzx eax, ax
or eax, esi
push eax
call fcn.004150e1
xor ebx, ebx
mov dword [ebp - 0x4e4], ebx
mov dword [ebp - 0x4e0], ebx
mov dword [ebp - 0x4dc], ebx
mov dword [ebp - 0x4d8], ebx
lea edx, [ebp - 0x218]
mov byte [ebp - 4], 1
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x4266ee
sub esp, 0x1c
sub edx, ecx
mov ecx, esp
mov dword [ebp - 0x4cc], esp
mov dword [ebp - 0x4d0], ecx
xor eax, eax
sar edx, 1
push 0xffffffffffffffff
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
mov word [ecx + 4], ax
lea eax, [ebp - 0x43c]
push edx
push eax
call fcn.0040b6f9
mov dword [ebp - 0x4d0], 2
sub esp, 0x1c
mov byte [ebp - 4], 2
lea eax, [ebp - 0x420]
mov ecx, esp
push eax
call fcn.0040b41d
lea eax, [ebp - 0x4c8]
mov byte [ebp - 4], 1
push eax
call fcn.0041c867
push eax
lea ecx, [ebp - 0x4e8]
mov byte [ebp - 4], 3
call fcn.0042acd9
lea ecx, [ebp - 0x4c8]
mov byte [ebp - 4], 1
call fcn.004103e2
jmp 0x426a10
mov eax, dword [ebp - 0x4dc]
mov esi, eax
mov edi, dword [ebp - 0x4e0]
cmp edi, esi
ja 0x426794
sub eax, edi
mov ebx, dword [ebp - 0x4e4]
lea ecx, [ebp - 0x474]
push dword [ebx + eax*4]
call fcn.0040b470
mov byte [ebp - 4], 4
cmp edi, esi
ja 0x4267b2
sub esi, edi
mov eax, dword [ebx + esi*4]
lea ecx, [ebp - 0x490]
add eax, 0x1c
push eax
call fcn.0040b470
lea ecx, [ebp - 0x4e8]
call fcn.004294cc
cmp dword [ebp - 0x45c], 8
mov eax, dword [ebp - 0x470]
jae 0x4267e4
lea eax, [ebp - 0x470]
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
mov esi, eax
mov dword [ebp - 0x4ec], esi
xor ebx, ebx
mov byte [ebp - 4], 6
cmp esi, 0xffffffff
je 0x4269f0
mov edi, dword [ebp - 0x4d0]
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x4cc], edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x426823
push dword [sym.imp.msvcrt.dll_towupper]
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push eax
lea eax, [eax + ecx*2]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0041c8ba
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x458]
push eax
call fcn.0040e08c
lea eax, [ebp - 0x490]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x4ac]
push eax
call fcn.0040e0d5
add esp, 0x18
or edi, 1
mov byte [ebp - 4], 8
cmp dword [eax + 0x18], 8
lea ecx, [eax + 4]
mov dword [ebp - 0x4d0], edi
jb 0x4268a2
mov ecx, dword [ecx]
push dword [eax + 0x14]
push ebx
push ecx
lea ecx, [ebp - 0x458]
call fcn.00427f58
test eax, eax
jne 0x4268dd
cmp dword [ebp - 0x440], 8
mov eax, dword [ebp - 0x454]
jae 0x4268cb
lea eax, [ebp - 0x454]
push eax
push dword [ebp - 0x4d4]
call fcn.0041ebeb
test al, al
jne 0x4268dd
mov bl, 1
mov edi, dword [ebp - 0x4cc]
lea ecx, [ebp - 0x4ac]
xor eax, eax
mov dword [ebp - 4], 7
push eax
and edi, 0xfffffffe
push 1
mov dword [ebp - 0x4d0], edi
call fcn.0040b613
test bl, bl
jne 0x426a44
cmp dword [ebp - 0x440], 8
mov eax, dword [ebp - 0x454]
jae 0x426920
lea eax, [ebp - 0x454]
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x42695e
sub esp, 0x1c
mov ecx, esp
push 0x4047d8
call fcn.0040b41d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x426958
movzx eax, ax
or eax, 0x80070000
push eax
call fcn.004150e1
sub esp, 0x1c
xor ebx, ebx
mov eax, esp
mov dword [ebp - 0x4cc], esp
xor ecx, ecx
mov dword [eax + 0x18], 7
mov dword [eax + 0x14], ebx
mov word [eax + 4], cx
sub esp, 0x1c
mov byte [ebp - 4], 9
lea eax, [ebp - 0x420]
mov ecx, esp
push eax
call fcn.0040b41d
lea eax, [ebp - 0x4c8]
mov byte [ebp - 4], 7
push eax
call fcn.0041c867
push eax
lea ecx, [ebp - 0x4e8]
mov byte [ebp - 4], 0xa
call fcn.0042acd9
lea ecx, [ebp - 0x4c8]
call fcn.004103e2
push ebx
push 1
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 6
call fcn.0040b613
push 0x104
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
cmp eax, 1
je 0x426814
push esi
call dword [sym.imp.KERNEL32.dll_FindVolumeMountPointClose]
push ebx
push 1
lea ecx, [ebp - 0x490]
call fcn.0040b613
push ebx
push 1
lea ecx, [ebp - 0x474]
mov byte [ebp - 4], 1
call fcn.0040b613
cmp dword [ebp - 0x4d8], 0
jne 0x426780
mov bl, 1
lea ecx, [ebp - 0x4e8]
call fcn.00424c91
xor eax, eax
lea ecx, [ebp - 0x43c]
push eax
push 1
call fcn.0040b613
mov al, bl
call fcn.004148aa
ret 4
xor ebx, ebx
lea ecx, [ebp - 0x458]
push ebx
push 1
call fcn.0040b613
push esi
call dword [sym.imp.KERNEL32.dll_FindVolumeMountPointClose]
push ebx
push 1
lea ecx, [ebp - 0x490]
call fcn.0040b613
push ebx
push 1
lea ecx, [ebp - 0x474]
call fcn.0040b613
jmp 0x426a1f