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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4fc
mov eax, dword [0x4de4e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x44c], eax
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x43c], edi
xor esi, esi
xor ebx, ebx
push edi
push eax
mov dword [ebp - 0x444], ebx
mov dword [ebp - 0x440], esi
mov dword [ebp - 0x438], esi
call fcn.00496a10
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov dword [ebp - 0x444], eax
cmp eax, 0xffffffff
jne 0x462759
push 2
call fcn.004235b0
add esp, 4
test al, al
je 0x46272a
push 2
push 0xa8
push str.d:webapps_b_build_slave_repo_build_srcwow_basewinwow_machine_info_utils_win.cc
lea ecx, [ebp - 0x4fc]
call fcn.00422790
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 8]
push str.FindFirstVolume_failed_with_error_code:
push eax
call fcn.00401950
add esp, 8
mov ecx, eax
call fcn.0040b1d0
mov ebx, 2
test bl, 2
je 0x46273a
lea ecx, [ebp - 0x4fc]
call fcn.00422910
mov eax, dword [ebp - 0x44c]
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
mov ax, word [0x4bda70]
push 0x206
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push 0
push eax
call fcn.00496a10
add esp, 0xc
nop dword [eax]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x462790
sub ecx, edx
sar ecx, 1
cmp ecx, 5
jb 0x462a50
cmp word [ebp - 0x20c], 0x5c
jne 0x462a50
cmp word [ebp - 0x20a], 0x5c
jne 0x462a50
cmp word [ebp - 0x208], 0x3f
jne 0x462a50
cmp word [ebp - 0x206], 0x5c
jne 0x462a50
cmp word [ebp + ecx*2 - 0x20e], 0x5c
jne 0x462a50
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00496a10
add esp, 0xc
mov dword [ebp - 0x448], 0
lea eax, [ebp - 0x448]
push eax
push 0x104
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x4629b7
cmp dword [ebp - 0x448], 0
mov dword [ebp - 0x434], 0
jbe 0x4628fa
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4628fa
xor eax, eax
mov dword [ebp - 0x418], 7
mov dword [ebp - 0x41c], 0
mov word [ebp - 0x42c], ax
cmp word [ebp - 0x414], ax
jne 0x46288e
xor ecx, ecx
jmp 0x4628a6
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x462897
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x42c]
call fcn.004064e0
lea eax, [ebp - 0x42c]
or ebx, 8
push eax
call fcn.00462c10
add esp, 4
test al, al
jne 0x4628fa
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x434]
push eax
push 0
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov byte [ebp - 0x430], 1
test eax, eax
jne 0x462901
mov byte [ebp - 0x430], 0
test bl, 8
je 0x462927
mov eax, dword [ebp - 0x418]
and ebx, 0xfffffff7
cmp eax, 8
jb 0x462927
inc eax
lea ecx, [ebp - 0x42c]
push eax
push dword [ebp - 0x42c]
call fcn.00406780
cmp byte [ebp - 0x430], 0
je 0x462a13
lea eax, [ebp - 0x434]
cmp eax, edi
jae 0x462989
mov ecx, eax
mov eax, dword [ebp - 0x440]
cmp eax, ecx
ja 0x462989
mov esi, ecx
sub esi, eax
sar esi, 2
cmp edi, dword [ebp - 0x438]
jne 0x462972
push 1
lea ecx, [ebp - 0x440]
call fcn.0041e5e0
mov edi, dword [ebp - 0x43c]
mov eax, dword [ebp - 0x440]
test edi, edi
je 0x46297b
mov eax, dword [eax + esi*4]
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x43c], edi
jmp 0x462a13
cmp edi, esi
jne 0x4629a0
push 1
lea ecx, [ebp - 0x440]
call fcn.0041e5e0
mov edi, dword [ebp - 0x43c]
test edi, edi
je 0x4629ac
mov eax, dword [ebp - 0x434]
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x43c], edi
jmp 0x462a13
push 2
call fcn.004235b0
add esp, 4
test al, al
je 0x462a00
push 2
push 0xc8
push str.d:webapps_b_build_slave_repo_build_srcwow_basewinwow_machine_info_utils_win.cc
lea ecx, [ebp - 0x4fc]
or ebx, 0x10
call fcn.00422790
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 8]
push str.GetVolumePathNamesForVolumeName_failed_with_error_code:
push eax
call fcn.00401950
add esp, 8
mov ecx, eax
call fcn.0040b1d0
test bl, 0x10
je 0x462a13
lea ecx, [ebp - 0x4fc]
and ebx, 0xffffffef
call fcn.00422910
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00496a10
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [ebp - 0x444]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
je 0x462aac
mov esi, dword [ebp - 0x438]
jmp 0x462780
push 2
call fcn.004235b0
add esp, 4
test al, al
je 0x462a99
push 2
push 0xb6
push str.d:webapps_b_build_slave_repo_build_srcwow_basewinwow_machine_info_utils_win.cc
lea ecx, [ebp - 0x4fc]
or ebx, 4
call fcn.00422790
lea ecx, [ebp - 0x20c]
add eax, 8
push ecx
push str.FindFirstVolume_FindNextVolume_returned_a_bad_path:
push eax
call fcn.00401950
add esp, 8
push eax
call fcn.00422ca0
add esp, 8
test bl, 4
je 0x462aac
lea ecx, [ebp - 0x4fc]
and ebx, 0xfffffffb
call fcn.00422910
push dword [ebp - 0x444]
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov al, byte [ebp - 0x430]
mov esi, dword [ebp - 0x440]
mov byte [ebp - 0x430], al
lea eax, [ebp - 0x430]
push eax
mov eax, edi
sub eax, esi
sar eax, 2
push eax
push edi
push esi
call fcn.00460f90
add esp, 0x10
test bl, 0x20
je 0x462af3
lea ecx, [ebp - 0x4fc]
call fcn.00422910
mov ecx, dword [ebp - 0x44c]
mov eax, dword [ebp - 0x438]
mov dword [ecx + 4], edi
mov dword [ecx + 8], eax
mov eax, ecx
mov dword [ecx], esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049510d
mov esp, ebp
pop ebp
ret