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

Disassembly:
push ebp
lea ebp, [esp - 0x8e8]
sub esp, 0x8e8
push 0xffffffffffffffff
push 0x48c64c
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x4b77c0]
xor eax, ebp
mov dword [ebp + 0x8e4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 0x8f0]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ebx
call fcn.004208d0
xor esi, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x20], esi
cmp esi, 0x40
jge 0x425935
mov dword [ebp - 0xb0], 0x492f64
mov dword [ebp - 0xa8], 0x49087c
mov dword [ebp - 0x5c], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
push ebx
lea eax, [ebp - 0xa4]
mov edi, 4
or dword [ebp - 0x18], edi
push eax
lea ecx, [ebp - 0xb0]
mov dword [ebp - 4], 1
call fcn.00424690
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ecx + 4]
lea ecx, [ebp - 0xa4]
mov dword [ebp - 4], 2
mov dword [ebp + edx - 0xb0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
call fcn.0041f110
mov dword [ebp - 0xa4], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov eax, dword [ebp + 0x8f4]
push esi
push 0x492f9c
push eax
lea ecx, [ebp - 0xa8]
push str.DeviceHarddisk
push ecx
mov dword [ebp - 4], edi
call fcn.004247e0
add esp, 8
mov ecx, eax
call fcn.00424e80
push eax
call fcn.004247e0
add esp, 8
mov ecx, eax
call fcn.00424e80
lea edx, [ebp + 0x2b0]
push edx
lea ecx, [ebp - 0xb0]
call fcn.00422550
mov edi, 0x10
cmp dword [eax + 0x18], edi
jb 0x4253cf
mov eax, dword [eax + 4]
jmp 0x4253d2
add eax, 4
push eax
push 0x492f80
lea eax, [ebp]
push 0x104
push eax
call fcn.0046d05f
add esp, 0x10
cmp dword [ebp + 0x2c8], edi
jb 0x425400
mov ecx, dword [ebp + 0x2b4]
push ecx
call fcn.0046b849
add esp, 4
mov ecx, dword [ebp - 0x24]
push 0x230
lea edx, [ebp]
push edx
push 0x230
mov eax, edx
push eax
push 0x222038
mov byte [ebp - 4], 5
call fcn.0041f900
mov eax, 0xf
xor ecx, ecx
mov dword [ebp - 4], 4
mov dword [ebp + 0x248], eax
mov dword [ebp + 0x244], ebx
mov byte [ebp + 0x234], bl
mov dword [ebp + 0x288], eax
mov dword [ebp + 0x284], ebx
mov byte [ebp + 0x274], bl
mov dword [ebp + 0x2ac], 7
mov dword [ebp + 0x2a8], ebx
mov word [ebp + 0x298], cx
lea edx, [ebp + 0x2b0]
push edx
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 7
call fcn.00422550
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x230]
mov byte [ebp - 4], 8
call fcn.0040c370
cmp dword [ebp + 0x2c8], edi
jb 0x4254ab
mov eax, dword [ebp + 0x2b4]
push eax
call fcn.0046b849
add esp, 4
mov dword [ebp + 0x28c], esi
mov ecx, 8
lea esi, [ebp + 0x208]
lea edi, [ebp + 0x250]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x228]
mov dword [ebp + 0x290], ecx
mov dword [ebp - 0x138], 0x492f64
mov dword [ebp - 0x130], 0x49087c
mov dword [ebp - 0xe4], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
or dword [ebp - 0x18], 8
push ebx
lea edx, [ebp - 0x12c]
push edx
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 9
call fcn.0040fcd0
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax + 4]
mov dword [ebp + ecx - method.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
lea ecx, [ebp - 0x12c]
mov dword [ebp - 4], 0xa
call fcn.0040a2f0
mov dword [ebp - method.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0xf0], ebx
mov dword [ebp - 0xec], ebx
lea edx, [ebp + 0x2b0]
push edx
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0xc
call fcn.00422550
mov esi, 0x10
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x18], esi
jb 0x42556e
mov eax, dword [eax + 4]
jmp 0x425571
add eax, 4
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.004249f0
add esp, 8
mov byte [ebp - 4], 0xc
cmp dword [ebp + 0x2c8], esi
jb 0x42559c
mov ecx, dword [ebp + 0x2b4]
push ecx
call fcn.0046b849
add esp, 4
lea edx, [ebp + 0x2b0]
push edx
lea ecx, [ebp - 0x138]
call fcn.0040e180
mov edi, 8
cmp dword [eax + 0x18], edi
jb 0x4255bd
mov eax, dword [eax + 4]
jmp 0x4255c0
add eax, 4
push eax
call fcn.004334f0
add esp, 4
mov dword [ebp - 0x28], eax
cmp dword [ebp + 0x2c8], edi
jb 0x4255e6
mov eax, dword [ebp + 0x2b4]
push eax
call fcn.0046b849
mov eax, dword [ebp - 0x28]
add esp, 4
cmp eax, ebx
jl 0x42560f
add al, 0x41
movzx ecx, al
push ecx
push 1
lea ecx, [ebp + 0x270]
call fcn.0040bc90
push 1
push 0x492f7c
lea ecx, [ebp + 0x270]
call fcn.0040c530
lea edx, [ebp + 0x2b0]
push edx
lea ecx, [ebp - 0x138]
call fcn.0040e180
cmp dword [eax + 0x18], edi
jb 0x42562b
mov eax, dword [eax + 4]
jmp 0x42562e
add eax, 4
lea ecx, [ebp + 0x4d4]
push ecx
push eax
call fcn.004332d0
add esp, 8
mov esi, eax
cmp dword [ebp + 0x2c8], edi
jb 0x425657
mov edx, dword [ebp + 0x2b4]
push edx
call fcn.0046b849
add esp, 4
cmp esi, ebx
je 0x425804
push 0x104
lea eax, [ebp + 0x6dc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov esi, eax
cmp esi, 0xffffffff
je 0x425804
lea esp, [esp]
xor ecx, ecx
lea eax, [ebp + 0x6dc]
mov dword [ebp + 0x2c8], 7
mov dword [ebp + 0x2c4], ebx
mov word [ebp + 0x2b4], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4256a2
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp + 0x6dc]
push edx
lea ecx, [ebp + 0x2b0]
call fcn.00403870
mov eax, dword [ebp + 0x2c4]
add eax, 0xfffffffb
push eax
push 4
lea ecx, [ebp - 0x154]
push ecx
lea ecx, [ebp + 0x2b0]
mov byte [ebp - 4], 0xe
call fcn.00420cd0
or dword [ebp - 0x18], 2
cmp dword [eax + 0x18], edi
jb 0x4256f4
mov eax, dword [eax + 4]
jmp 0x4256f7
add eax, 4
push 0x104
lea edx, [ebp + 0x2cc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x425753
lea ecx, [ebp + 0x2cc]
lea eax, [ebp + 0x4d4]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x425746
cmp dx, bx
je 0x425742
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x425746
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x425720
xor eax, eax
jmp 0x42574b
sbb eax, eax
sbb eax, 0xffffffff
mov byte [ebp - 0x11], 1
cmp eax, ebx
je 0x425756
mov byte [ebp - 0x11], bl
test byte [ebp - 0x18], 2
je 0x425777
and dword [ebp - 0x18], 0xfffffffd
cmp dword [ebp - 0x13c], edi
jb 0x425777
mov eax, dword [ebp - 0x150]
push eax
call fcn.0046b849
add esp, 4
cmp byte [ebp - 0x11], bl
jne 0x4257b4
mov byte [ebp - 4], 0xc
cmp dword [ebp + 0x2c8], edi
jb 0x425797
mov ecx, dword [ebp + 0x2b4]
push ecx
call fcn.0046b849
add esp, 4
push 0x104
lea edx, [ebp + 0x6dc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x425680
jmp 0x4257fd
lea eax, [ebp + 0x6dc]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4257c0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp + 0x6dc]
push eax
lea ecx, [ebp + 0x294]
call fcn.00403870
mov byte [ebp - 4], 0xc
cmp dword [ebp + 0x2c8], edi
jb 0x4257fd
mov ecx, dword [ebp + 0x2b4]
push ecx
call fcn.0046b849
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ecx + 0x14]
mov eax, dword [esi + 4]
lea edx, [ebp + 0x230]
push edx
push eax
push esi
call fcn.004234b0
mov ecx, dword [ebp - 0x1c]
push 1
mov edi, eax
call fcn.00420e60
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
lea ecx, [ebp - 0xe4]
mov dword [eax], edi
mov byte [ebp - 4], 7
call fcn.0040b250
lea ecx, [ebp - 0xe4]
push ecx
mov dword [ebp - 0xe4], vtable.std::ios_base.0
call fcn.0046b243
add esp, 4
cmp dword [ebp + 0x2ac], 8
jb 0x42586f
mov edx, dword [ebp + 0x298]
push edx
call fcn.0046b849
add esp, 4
xor eax, eax
mov edi, 0x10
mov dword [ebp + 0x2ac], 7
mov dword [ebp + 0x2a8], ebx
mov word [ebp + 0x298], ax
cmp dword [ebp + 0x288], edi
jb 0x4258a4
mov ecx, dword [ebp + 0x274]
push ecx
call fcn.0046b849
add esp, 4
mov esi, 0xf
mov dword [ebp + 0x288], esi
mov dword [ebp + 0x284], ebx
mov byte [ebp + 0x274], bl
cmp dword [ebp + 0x248], edi
jb 0x4258d2
mov edx, dword [ebp + 0x234]
push edx
call fcn.0046b849
add esp, 4
lea ecx, [ebp - 0x5c]
mov dword [ebp + 0x248], esi
mov dword [ebp + 0x244], ebx
mov byte [ebp + 0x234], bl
mov byte [ebp - 4], bl
call fcn.00420090
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], vtable.std::ios_base.0
call fcn.0046b243
add esp, 4
inc dword [ebp - 0x20]
mov esi, dword [ebp - 0x20]
jmp 0x4252f7
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8e4]
xor ecx, ebp
call fcn.0046be7b
add ebp, 0x8e8
mov esp, ebp
pop ebp
ret 8