Function at 0x419b40
Capabilities:
Enumerate disk volumes
Get disk information
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471a6b
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x48d000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
push 0x206
lea ecx, [ebp - 0x41e]
xor eax, eax
push edi
mov dword [ebp - 0x424], edi
push ecx
mov dword [ebp - 0x428], ebx
mov word [ebp - 0x420], ax
call fcn.00457050
push 0x206
lea eax, [ebp - 0x216]
xor edx, edx
push edi
push eax
mov word [ebp - 0x218], dx
call fcn.00457050
add esp, 0x18
lea ecx, [ebp - 0x424]
push ecx
mov ecx, 0x47eac4
call fcn.00401f70
push 0x104
lea edx, [ebp - 0x218]
push edx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov esi, eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 0xffffffff
jne 0x419c43
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4813f0
call fcn.00456c26
mov eax, dword [ebp - 0x424]
add esp, 8
add eax, 0xfffffff0
call fcn.00401a40
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419c3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
jmp 0x419cd1
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x419c50
sub eax, edx
sar eax, 1
mov ebx, 0x5c
dec eax
cmp word [ebp - 0x218], bx
je 0x419cf5
lea ecx, [ebp - 0x218]
push ecx
push str.FindFirstVolumeW_FindNextVolumeW_returned_a_bad_path:__s_n
call fcn.00456c26
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
call fcn.00401a40
mov esi, dword [ebp - 0x428]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x419ccf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00454d73
mov esp, ebp
pop ebp
ret 4
mov ebx, 0x5c
cmp word [ebp - 0x216], bx
jne 0x419c72
cmp word [ebp - 0x214], 0x3f
jne 0x419c72
cmp word [ebp - 0x212], bx
jne 0x419c72
cmp word [ebp + eax*2 - 0x218], bx
lea edi, [ebp + eax*2 - 0x218]
jne 0x419c72
push 0x104
lea edx, [ebp - 0x420]
push edx
lea eax, [ebp - 0x210]
xor ecx, ecx
push eax
mov word [edi], cx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov word [edi], bx
test eax, eax
je 0x419db3
mov ecx, dword [ebp + 8]
push ecx
lea ebx, [ebp - 0x218]
call fcn.00419a70
test eax, eax
jne 0x419dbe
push 0x104
mov edx, ebx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov edi, eax
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test edi, edi
je 0x419dd4
mov eax, ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x419d90
sub eax, edx
sar eax, 1
dec eax
cmp word [ebp - 0x218], 0x5c
je 0x419cf0
jmp 0x419c72
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x419c86
lea edx, [ebp - 0x420]
lea edi, [ebp - 0x424]
call fcn.00401f30
jmp 0x419c86
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x419c86
push eax
push str.FindNextVolumeW_failed_with_error_code__d_n
jmp 0x419c7e