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

Disassembly:
push 0xffffffffffffffff
push 0x471573
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x489320]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x489320]
xor eax, esp
push eax
lea eax, [esp + 0x460]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x470]
xor esi, esi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x468], esi
mov eax, dword [0x48c7fc]
mov edx, dword [eax + 0xc]
mov ecx, 0x48c7fc
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov byte [esp + 0x468], 1
test byte [0x48f5c8], 1
jne 0x4229c3
or dword [0x48f5c8], 1
mov byte [esp + 0x468], 2
call fcn.00423700
push 0x4758b0
call fcn.00454158
add esp, 4
mov byte [esp + 0x468], 1
cmp byte [0x48ebd4], 0
jne 0x422b12
push 0x206
lea ecx, [esp + 0x25a]
xor eax, eax
push esi
push ecx
mov word [esp + 0x260], ax
call fcn.004560e0
add esp, 0xc
push 0x206
lea eax, [esp + 0x52]
xor edx, edx
push esi
push eax
mov word [esp + 0x58], dx
call fcn.004560e0
mov edx, dword [0x48c7fc]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x48c7fc
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x20], ebx
push 0x104
lea ecx, [esp + 0x50]
push ecx
mov byte [esp + 0x470], 3
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
jne 0x422a9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [ebx - 0x10]
mov eax, esi
call fcn.00406de0
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x468], 1
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x422a79
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x468], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422b9e
mov ecx, dword [eax]
push eax
jmp 0x422b97
lea eax, [esp + 0x4c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x422aa6
sub eax, edx
sar eax, 1
mov edi, 0x5c
dec eax
cmp word [esp + 0x4c], di
je 0x422c05
lea ecx, [esp + 0x4c]
push ecx
push str.FindFirstVolumeW_FindNextVolumeW_returned_a_bad_path:__s_n
call fcn.00455486
add esp, 8
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
lea eax, [ebx - 0x10]
mov byte [0x48ebd4], 1
mov byte [esp + 0x468], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422b0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x24]
lea ecx, [esp + 0x28]
push ecx
lea ebx, [esp + 0x478]
call fcn.00423670
mov esi, dword [esp + 0x28]
mov edi, dword [0x48ec34]
test esi, esi
je 0x422b39
cmp esi, dword [0x48ec1c]
je 0x422b3e
call fcn.004544a7
mov ebx, dword [esp + 0x2c]
cmp ebx, edi
je 0x422b69
test esi, esi
jne 0x422e9c
call fcn.004544a7
cmp ebx, dword [esi + 0x18]
jne 0x422b5d
call fcn.004544a7
lea eax, [ebx + 0x10]
lea edi, [esp + 0x18]
call fcn.00406a50
mov esi, dword [esp + 0x18]
add esi, 0xfffffff0
mov eax, esi
call fcn.00406de0
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x468], 0
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x422b9e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x468], 0xffffffff
mov eax, dword [esp + 0x474]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422bcc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x460]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.0045300b
add esp, 0x458
ret
mov edi, 0x5c
cmp word [esp + 0x4e], di
jne 0x422ac6
cmp word [esp + 0x50], 0x3f
jne 0x422ac6
cmp word [esp + 0x52], di
jne 0x422ac6
cmp word [esp + eax*2 + 0x4c], di
lea esi, [esp + eax*2 + 0x4c]
jne 0x422ac6
push 0x104
lea edx, [esp + 0x258]
push edx
lea eax, [esp + 0x5c]
xor ecx, ecx
push eax
mov word [esi], cx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov word [esi], di
test eax, eax
je 0x422e73
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push ecx
lea ecx, [esp + 0x54]
lea edi, [esp + 0x28]
call fcn.00405380
call fcn.004227e0
add esp, 4
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x258]
call fcn.00405380
mov byte [esp + 0x468], 4
mov edx, dword [esp + 0x14]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x422cbb
mov ecx, esi
lea eax, [esp + 0x14]
call fcn.00406b60
mov edx, dword [esp + 0x14]
lea eax, [esi + 1]
push eax
push edx
call fcn.00454ac0
add esp, 8
test esi, esi
jl 0x422e92
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x422e92
mov ebx, dword [esp + 0x20]
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x14]
xor ecx, ecx
push ecx
mov word [edx + esi*2], cx
lea eax, [ebx - 0x10]
mov dword [esp + 0x34], esp
mov esi, esp
call fcn.00406de0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x46c], 5
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x44], esp
mov esi, esp
call fcn.00406de0
add eax, 0x10
mov dword [esi], eax
lea esi, [esp + 0x3c]
mov byte [esp + 0x470], 4
call fcn.00424240
add esp, 8
mov esi, eax
mov byte [esp + 0x468], 6
mov eax, dword [esi]
sub eax, 0x10
call fcn.00406de0
lea ebp, [eax + 0x10]
mov dword [esp + 0x28], ebp
mov byte [esp + 0x468], 7
mov eax, dword [esi + 4]
sub eax, 0x10
call fcn.00406de0
lea esi, [eax + 0x10]
mov dword [esp + 0x2c], esi
lea eax, [esp + 0x28]
push eax
lea edi, [esp + 0x44]
mov byte [esp + 0x46c], 8
call fcn.00423550
lea eax, [esi - 0x10]
mov byte [esp + 0x468], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422da5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 0xfffffff0
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422dc2
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov byte [esp + 0x468], 4
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422dea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422e0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x1c]
push 0x104
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
je 0x422e7e
mov byte [esp + 0x468], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422e4b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x4c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x422e52
sub eax, edx
sar eax, 1
dec eax
cmp word [esp + 0x4c], 0x5c
je 0x422c00
jmp 0x422ac6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x422ad8
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x14]
call fcn.00406e50
jmp 0x422ad8
push 0x80070057
call fcn.00406db0
mov esi, dword [esi]
jmp 0x422b53