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

Disassembly:
push ebp
lea ebp, [esp - 0x8e8]
sub esp, 0x8e8
push 0xffffffffffffffff
push 0x43359c
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x44dd94]
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.00409ad0
xor esi, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x20], esi
cmp esi, 0x40
jge 0x40bc75
mov dword [ebp - 0xb0], 0x435a9c
mov dword [ebp - 0xa8], 0x435a94
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.004071f0
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.00403550
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 str.Partition
push eax
lea ecx, [ebp - 0xa8]
push str.DeviceHarddisk
push ecx
mov dword [ebp - 4], edi
call fcn.00407360
add esp, 8
mov ecx, eax
call fcn.00407600
push eax
call fcn.00407360
add esp, 8
mov ecx, eax
call fcn.00407600
lea edx, [ebp + 0x2b0]
push edx
lea ecx, [ebp - 0xb0]
call fcn.00405650
mov edi, 0x10
cmp dword [eax + 0x18], edi
jb 0x40b70f
mov eax, dword [eax + 4]
jmp 0x40b712
add eax, 4
push eax
push 0x435ab8
lea eax, [ebp]
push 0x104
push eax
call fcn.004197f4
add esp, 0x10
cmp dword [ebp + 0x2c8], edi
jb 0x40b740
mov ecx, dword [ebp + 0x2b4]
push ecx
call fcn.00417d54
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.00409440
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.00405650
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x230]
mov byte [ebp - 4], 8
call fcn.004019c0
cmp dword [ebp + 0x2c8], edi
jb 0x40b7eb
mov eax, dword [ebp + 0x2b4]
push eax
call fcn.00417d54
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], 0x435a9c
mov dword [ebp - 0x130], 0x435a94
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.0040ad20
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.00409070
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.00405650
mov esi, 0x10
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x18], esi
jb 0x40b8ae
mov eax, dword [eax + 4]
jmp 0x40b8b1
add eax, 4
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.0040ae00
add esp, 8
mov byte [ebp - 4], 0xc
cmp dword [ebp + 0x2c8], esi
jb 0x40b8dc
mov ecx, dword [ebp + 0x2b4]
push ecx
call fcn.00417d54
add esp, 4
lea edx, [ebp + 0x2b0]
push edx
lea ecx, [ebp - 0x138]
call fcn.0040a550
mov edi, 8
cmp dword [eax + 0x18], edi
jb 0x40b8fd
mov eax, dword [eax + 4]
jmp 0x40b900
add eax, 4
push eax
call fcn.0040f160
add esp, 4
mov dword [ebp - 0x28], eax
cmp dword [ebp + 0x2c8], edi
jb 0x40b926
mov eax, dword [ebp + 0x2b4]
push eax
call fcn.00417d54
mov eax, dword [ebp - 0x28]
add esp, 4
cmp eax, ebx
jl 0x40b94f
add al, 0x41
movzx ecx, al
push ecx
push 1
lea ecx, [ebp + 0x270]
call fcn.00404340
push 1
push 0x435ab4
lea ecx, [ebp + 0x270]
call fcn.004041f0
lea edx, [ebp + 0x2b0]
push edx
lea ecx, [ebp - 0x138]
call fcn.0040a550
cmp dword [eax + 0x18], edi
jb 0x40b96b
mov eax, dword [eax + 4]
jmp 0x40b96e
add eax, 4
lea ecx, [ebp + 0x4d4]
push ecx
push eax
call fcn.0040ef40
add esp, 8
mov esi, eax
cmp dword [ebp + 0x2c8], edi
jb 0x40b997
mov edx, dword [ebp + 0x2b4]
push edx
call fcn.00417d54
add esp, 4
cmp esi, ebx
je 0x40bb44
push 0x104
lea eax, [ebp + 0x6dc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40bb44
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 0x40b9e2
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp + 0x6dc]
push edx
lea ecx, [ebp + 0x2b0]
call fcn.00401eb0
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.00402190
or dword [ebp - 0x18], 2
cmp dword [eax + 0x18], edi
jb 0x40ba34
mov eax, dword [eax + 4]
jmp 0x40ba37
add eax, 4
push 0x104
lea edx, [ebp + 0x2cc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x40ba93
lea ecx, [ebp + 0x2cc]
lea eax, [ebp + 0x4d4]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40ba86
cmp dx, bx
je 0x40ba82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40ba86
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40ba60
xor eax, eax
jmp 0x40ba8b
sbb eax, eax
sbb eax, 0xffffffff
mov byte [ebp - 0x11], 1
cmp eax, ebx
je 0x40ba96
mov byte [ebp - 0x11], bl
test byte [ebp - 0x18], 2
je 0x40bab7
and dword [ebp - 0x18], 0xfffffffd
cmp dword [ebp - 0x13c], edi
jb 0x40bab7
mov eax, dword [ebp - 0x150]
push eax
call fcn.00417d54
add esp, 4
cmp byte [ebp - 0x11], bl
jne 0x40baf4
mov byte [ebp - 4], 0xc
cmp dword [ebp + 0x2c8], edi
jb 0x40bad7
mov ecx, dword [ebp + 0x2b4]
push ecx
call fcn.00417d54
add esp, 4
push 0x104
lea edx, [ebp + 0x6dc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x40b9c0
jmp 0x40bb3d
lea eax, [ebp + 0x6dc]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40bb00
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp + 0x6dc]
push eax
lea ecx, [ebp + 0x294]
call fcn.00401eb0
mov byte [ebp - 4], 0xc
cmp dword [ebp + 0x2c8], edi
jb 0x40bb3d
mov ecx, dword [ebp + 0x2b4]
push ecx
call fcn.00417d54
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.0040aa40
mov ecx, dword [ebp - 0x1c]
push 1
mov edi, eax
call fcn.00409ee0
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.00409700
lea ecx, [ebp - 0xe4]
push ecx
mov dword [ebp - 0xe4], vtable.std::ios_base.0
call fcn.0041756e
add esp, 4
cmp dword [ebp + 0x2ac], 8
jb 0x40bbaf
mov edx, dword [ebp + 0x298]
push edx
call fcn.00417d54
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 0x40bbe4
mov ecx, dword [ebp + 0x274]
push ecx
call fcn.00417d54
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 0x40bc12
mov edx, dword [ebp + 0x234]
push edx
call fcn.00417d54
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.00403a50
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], vtable.std::ios_base.0
call fcn.0041756e
add esp, 4
inc dword [ebp - 0x20]
mov esi, dword [ebp - 0x20]
jmp 0x40b637
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.0041851b
add ebp, 0x8e8
mov esp, ebp
pop ebp
ret 8