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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbd15
mov eax, dword fs:[0]
push eax
sub esp, 0xa78
mov eax, dword [0x5365f0]
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 eax, dword [ebp + 8]
push 0x206
xor edi, edi
lea edx, [ebp - 0x216]
xor ecx, ecx
push edi
push edx
mov dword [ebp - 0xa74], eax
mov word [ebp - 0x218], cx
call fcn.004da450
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov esi, eax
mov dword [ebp - 0xa78], esi
cmp esi, 0xffffffff
jne 0x4519c0
xor eax, eax
jmp 0x451da5
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4519d0
sub eax, edx
mov ecx, 0x5c
sar eax, 1
cmp word [ebp - 0x218], cx
jne 0x451d99
cmp word [ebp - 0x216], cx
jne 0x451d99
cmp word [ebp - 0x214], 0x3f
jne 0x451d99
cmp word [ebp - 0x212], cx
jne 0x451d99
cmp word [ebp + eax*2 - 0x21a], cx
jne 0x451d99
push 0x7fe
lea edx, [ebp - 0xa16]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0xa18], cx
call fcn.004da450
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
add esp, 0xc
lea eax, [ebp - 0xa64]
push eax
push 0x400
lea ecx, [ebp - 0xa18]
push ecx
lea edx, [ebp - 0x218]
push edx
mov dword [ebp - 0xa68], edi
mov dword [ebp - 0xa64], edi
call ebx
cmp eax, edi
je 0x451a7f
lea ebx, [ebp - 0xa18]
jmp 0x451aeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x451d78
mov eax, dword [ebp - 0xa64]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d4853
mov esi, eax
add esp, 4
mov dword [ebp - 0xa68], esi
cmp esi, edi
je 0x451d78
mov ecx, dword [ebp - 0xa64]
lea eax, [ebp - 0xa64]
push eax
push ecx
push esi
lea edx, [ebp - 0x218]
push edx
call ebx
cmp eax, edi
jne 0x451ae9
push esi
call fcn.004d632b
add esp, 4
jmp 0x451d78
mov ebx, esi
mov esi, ebx
cmp word [ebx], di
je 0x451b40
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x451af7
sub eax, edx
sar eax, 1
cmp eax, 3
jne 0x451b21
push 0x517adc
push esi
call fcn.004d6c0e
add esp, 8
test eax, eax
jne 0x451dc3
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x451b26
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], di
lea esi, [esi + eax*2 + 2]
jne 0x451af2
xor eax, eax
mov dword [ebp - 0xa30], 7
mov dword [ebp - 0xa34], edi
mov word [ebp - 0xa44], ax
mov dword [ebp - 4], edi
lea ecx, [ebp - 0xa28]
push 0x24
mov dword [ebp - 0xa6c], ecx
mov dword [ebp - 0xa24], edi
call fcn.004d67b0
add esp, 4
cmp eax, edi
je 0x451de2
mov dword [ebp - 0xa28], eax
mov dword [eax], eax
mov eax, dword [ebp - 0xa28]
mov dword [eax + 4], eax
mov byte [ebp - 4], 3
mov dword [ebp - 0xa1c], edi
mov dword [ebp - 4], 4
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
jmp 0x451bb0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x451bb0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
lea esi, [ebp - 0xa44]
call fcn.004027c0
cmp word [ebx], di
je 0x451cb4
lea ebx, [ebx]
xor edx, edx
mov eax, ebx
mov word [ebp - 0xa60], dx
mov dword [ebp - 0xa4c], 7
mov dword [ebp - 0xa50], edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x451c00
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [ebp - 0xa60]
call fcn.004027c0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0xa28]
mov edx, dword [eax + 4]
lea esi, [eax + 4]
lea ecx, [ebp - 0xa60]
push ecx
push edx
push eax
call fcn.0044b4a0
mov ecx, 0x9249248
sub ecx, dword [ebp - 0xa24]
cmp ecx, 1
jb 0x451dd8
inc dword [ebp - 0xa24]
mov dword [esi], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0xa4c], 8
jb 0x451c78
mov edx, dword [ebp - 0xa60]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov word [ebp - 0xa60], ax
mov eax, ebx
mov dword [ebp - 0xa4c], 7
mov dword [ebp - 0xa50], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x451c96
sub eax, edx
sar eax, 1
cmp word [ebx + eax*2 + 2], di
lea ebx, [ebx + eax*2 + 2]
jne 0x451be0
mov ebx, dword [ebp - 0xa74]
mov esi, dword [ebx + 0x88]
mov edx, dword [esi + 4]
lea ecx, [ebp - 0xa44]
push ecx
push edx
push esi
call fcn.004550c0
mov ecx, dword [ebx + 0x8c]
mov edx, 0x5d1745c
sub edx, ecx
cmp edx, 1
jb 0x451dd8
inc ecx
mov dword [ebx + 0x8c], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov eax, dword [ebp - 0xa68]
cmp eax, edi
je 0x451d09
push eax
call fcn.004d632b
add esp, 4
mov dword [ebp - 4], 6
lea eax, [ebp - 0xa28]
mov dword [ebp - 0xa6c], eax
mov byte [ebp - 4], 8
mov ebx, eax
call fcn.00409750
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xa28]
push ecx
call fcn.004d5559
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xa30], 8
jb 0x451d59
mov edx, dword [ebp - 0xa44]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov dword [ebp - 0xa30], 7
mov dword [ebp - 0xa34], 0
mov word [ebp - 0xa44], ax
xor edi, edi
mov esi, dword [ebp - 0xa78]
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x4519c0
push esi
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov eax, 1
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.004d5564
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0xa68]
cmp eax, edi
je 0x451d78
push eax
call fcn.004d632b
add esp, 4
jmp 0x451d78
push str.list_T__too_long
call fcn.004d4798
lea edx, [ebp - 0xa70]
push edx
lea ecx, [ebp - 0xa84]
mov dword [ebp - 0xa70], edi
call fcn.004d5a62
mov byte [ebp - 4], 1
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
mov byte [ebp - 4], 0
push 0x527948
lea eax, [ebp - 0xa84]
push eax
call fcn.004dab36
int3