Function at 0x445360
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x48dd02
mov eax, dword fs:[0]
push eax
sub esp, 0x6e4
mov eax, dword [0x4b77c0]
xor eax, esp
mov dword [esp + 0x6e0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b77c0]
xor eax, esp
push eax
lea eax, [esp + 0x6f8]
mov dword fs:[0], eax
mov edi, dword [esp + 0x708]
xor esi, esi
mov ecx, edi
mov dword [esp + 0x700], esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x24], esi
call fcn.0043e860
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], esi
lea ebx, [ebx]
mov dword [esp + 0x20], esi
jmp 0x4453e0
mov dword [esp + 0x38], 0x492f64
mov dword [esp + 0x40], 0x49087c
mov dword [esp + 0x8c], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
push esi
lea eax, [esp + 0x48]
mov ebx, 2
or dword [esp + 0x28], ebx
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x708], 1
call fcn.00424690
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + 4]
lea ecx, [esp + 0x44]
mov dword [esp + 0x700], ebx
mov dword [esp + edx + 0x38], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
call fcn.0041f110
mov dword [esp + 0x44], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
push eax
push 0x492f9c
push ecx
lea edx, [esp + 0x4c]
push str.DeviceHarddisk
push edx
mov dword [esp + 0x714], 4
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 eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0x3c]
call fcn.00422550
cmp dword [esp + 0x110], 0x10
mov byte [esp + 0x700], 5
jb 0x4454c6
mov ecx, dword [esp + 0xfc]
mov dword [esp + 0x2c], ecx
jmp 0x4454d1
lea edx, [esp + 0xfc]
mov dword [esp + 0x2c], edx
mov bl, byte [esp + 0x718]
test bl, bl
je 0x4454e9
cmp dword [esp + 0x20], esi
je 0x4454e9
mov eax, 1
jmp 0x4454eb
xor eax, eax
mov ecx, dword [esp + 0x2c]
push eax
lea eax, [esp + 0x458]
push eax
push ecx
call fcn.00431900
add esp, 0xc
test eax, eax
jne 0x445564
cmp dword [esp + 0x20], esi
je 0x445a25
cmp dword [esp + 0x110], 0x10
jb 0x445529
mov edx, dword [esp + 0xfc]
push edx
call fcn.0046b849
add esp, 4
lea ecx, [esp + 0x8c]
mov dword [esp + 0x110], 0xf
mov dword [esp + 0x10c], esi
mov byte [esp + 0xfc], 0
mov byte [esp + 0x700], 0
call fcn.00420090
lea eax, [esp + 0x8c]
push eax
jmp 0x4459fb
lea ecx, [esp + 0x114]
call fcn.0043ec50
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x700], 6
mov dword [esp + 0x17c], ecx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x445590
sub eax, edx
mov edx, dword [esp + 0x2c]
push eax
push edx
lea ecx, [esp + 0x15c]
call fcn.0040c450
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0xc0]
push eax
push ecx
call fcn.00433380
add esp, 8
test eax, eax
je 0x4455f2
cmp byte [esp + 0xd9], 0
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0xcc]
setne dl
mov byte [esp + 0x114], dl
mov dword [esp + 0x174], eax
mov dword [esp + 0x178], ecx
test bl, bl
je 0x445607
mov byte [esp + 0x11a], 1
cmp dword [esp + 0x668], esi
jne 0x44560f
mov byte [esp + 0x11a], 0
cmp byte [esp + 0x70c], 0
jne 0x44584b
mov dword [esp + 0x19c], 0x492f64
mov dword [esp + 0x1a4], 0x49087c
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
or dword [esp + 0x24], 4
push esi
lea edx, [esp + 0x1ac]
push edx
lea ecx, [esp + 0x1a4]
mov byte [esp + 0x708], 7
call fcn.0040fcd0
mov eax, dword [esp + 0x19c]
mov ecx, dword [eax + 4]
mov dword [esp + 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
mov ebx, 8
lea ecx, [esp + 0x1a8]
mov dword [esp + 0x700], ebx
call fcn.0040a2f0
mov dword [esp + 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 [esp + 0x1e4], esi
mov dword [esp + 0x1e8], esi
cmp dword [esp + 0x110], 0x10
mov eax, dword [esp + 0xfc]
mov byte [esp + 0x700], 0xa
jae 0x4456c6
lea eax, [esp + 0xfc]
push eax
lea edx, [esp + 0x1a8]
push edx
call fcn.004249f0
add esp, 8
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x1a0]
call fcn.0040e180
cmp dword [eax + 0x18], ebx
jb 0x4456f5
mov eax, dword [eax + 4]
jmp 0x4456f8
add eax, 4
push eax
call fcn.004334f0
add esp, 4
cmp dword [esp + 0xd8], 8
mov ebx, eax
jb 0x44571d
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.0046b849
add esp, 4
cmp ebx, esi
jl 0x4457eb
mov dl, bl
add dl, 0x41
movzx eax, dl
push eax
push 1
lea ecx, [esp + 0x124]
call fcn.0040bc90
push 1
push 0x492f7c
lea ecx, [esp + 0x124]
call fcn.0040c530
push esi
push esi
mov edx, 0x3a
mov word [esp + 0x676], dx
lea edx, [esp + 0x38]
push edx
push esi
lea ecx, [ebx + 0x41]
push esi
mov word [esp + 0x680], cx
mov eax, 0x5c
xor ecx, ecx
mov word [esp + 0x684], ax
push 0x40
lea eax, [esp + 0x68c]
mov word [esp + 0x68a], cx
push eax
lea ecx, [esp + 0x688]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4457d4
lea eax, [esp + 0x674]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4457b0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x678]
push edx
lea ecx, [esp + 0x140]
call fcn.00403870
call fcn.00433c70
movsx eax, al
add ebx, 0x41
cmp eax, ebx
jne 0x4457eb
mov byte [esp + 0x115], 1
cmp dword [esp + 0x20], esi
jne 0x44581c
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0xe0]
push ecx
push edx
call fcn.00433420
add esp, 8
test eax, eax
je 0x44581c
cmp dword [esp + 0xe8], 0xb
sete al
mov byte [esp + 0x170], al
lea ecx, [esp + 0x1f0]
mov byte [esp + 0x700], 6
call fcn.0040b250
lea ecx, [esp + 0x1f0]
push ecx
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0046b243
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, esi
jne 0x445880
lea edx, [esp + 0x114]
push edx
mov ecx, edi
call fcn.00418770
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x78787879
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
lea ebp, [edx + eax - 1]
jmp 0x445997
cmp eax, 1
jne 0x4458ce
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x78787879
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebp, ecx
jb 0x4458a5
call fcn.0046c18e
mov ecx, dword [edi + 0xc]
mov eax, ebp
imul eax, eax, 0x88
mov edx, dword [eax + ecx + 0x60]
cmp edx, dword [esp + 0x174]
jne 0x4458ce
mov eax, dword [eax + ecx + 0x64]
cmp eax, dword [esp + 0x178]
je 0x445a8d
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x17c], ecx
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x78787879
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esp + 0x118], 1
cmp ebp, eax
jb 0x445901
call fcn.0046c18e
mov eax, dword [edi + 0xc]
mov esi, ebp
imul esi, esi, 0x88
cmp byte [esp + 0x115], 0
mov cl, byte [esi + eax + 0x5c]
mov byte [esp + 0x170], cl
je 0x445948
mov ecx, dword [edi + 0x10]
sub ecx, eax
mov eax, 0x78787879
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x445940
call fcn.0046c18e
mov ecx, dword [edi + 0xc]
mov byte [esi + ecx + 1], 1
cmp byte [esp + 0x710], 0
je 0x445961
lea edx, [esp + 0x114]
push edx
mov ecx, edi
call fcn.00418770
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x78787879
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x445981
call fcn.0046c18e
mov edx, dword [edi + 0xc]
lea ecx, [esp + 0x114]
push ecx
lea ecx, [esi + edx + 0x6c]
call fcn.00418770
xor esi, esi
lea ecx, [esp + 0x114]
mov byte [esp + 0x700], 5
call fcn.0040c110
cmp dword [esp + 0x110], 0x10
jb 0x4459c5
mov eax, dword [esp + 0xfc]
push eax
call fcn.0046b849
add esp, 4
lea ecx, [esp + 0x8c]
mov dword [esp + 0x110], 0xf
mov dword [esp + 0x10c], esi
mov byte [esp + 0xfc], 0
mov byte [esp + 0x700], 0
call fcn.00420090
lea ecx, [esp + 0x8c]
push ecx
mov dword [esp + 0x90], vtable.std::ios_base.0
call fcn.0046b243
mov eax, dword [esp + 0x24]
inc eax
add esp, 4
cmp eax, 0x20
mov dword [esp + 0x20], eax
jl 0x4453e0
jmp 0x445c10
cmp dword [esp + 0x110], 0x10
jb 0x445a3f
mov edx, dword [esp + 0xfc]
push edx
call fcn.0046b849
add esp, 4
lea ecx, [esp + 0x8c]
mov dword [esp + 0x110], 0xf
mov dword [esp + 0x10c], esi
mov byte [esp + 0xfc], 0
mov byte [esp + 0x700], 0
call fcn.00420090
lea eax, [esp + 0x8c]
push eax
mov dword [esp + 0x90], vtable.std::ios_base.0
call fcn.0046b243
add esp, 4
jmp 0x445c10
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x78787879
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebp, ecx
jb 0x445aad
call fcn.0046c18e
mov edx, dword [edi + 0xc]
mov esi, ebp
imul esi, esi, 0x88
mov byte [esi + edx + 5], 1
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x78787879
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x445add
call fcn.0046c18e
mov ecx, dword [edi + 0xc]
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x124]
lea ecx, [esi + ecx + 8]
push edx
call fcn.0040c370
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x78787879
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x445b15
call fcn.0046c18e
mov ecx, dword [edi + 0xc]
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x140]
lea ecx, [esi + ecx + 0x24]
push edx
call fcn.00403770
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x78787879
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x445b4d
call fcn.0046c18e
mov ecx, dword [edi + 0xc]
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x15c]
lea ecx, [esi + ecx + 0x40]
push edx
call fcn.0040c370
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x78787879
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x445b85
call fcn.0046c18e
mov ecx, dword [edi + 0xc]
mov dl, byte [esp + 0x11a]
mov byte [esi + ecx + 6], dl
lea ecx, [esp + 0x114]
mov byte [esp + 0x700], 5
call fcn.0040c110
cmp dword [esp + 0x110], 0x10
jb 0x445bc1
mov eax, dword [esp + 0xfc]
push eax
call fcn.0046b849
add esp, 4
lea ecx, [esp + 0x8c]
mov dword [esp + 0x110], 0xf
mov dword [esp + 0x10c], 0
mov byte [esp + 0xfc], 0
mov byte [esp + 0x700], 0
call fcn.00420090
lea ecx, [esp + 0x8c]
push ecx
mov dword [esp + 0x90], vtable.std::ios_base.0
call fcn.0046b243
add esp, 4
xor esi, esi
mov eax, dword [esp + 0x28]
inc eax
cmp eax, 0x40
mov dword [esp + 0x28], eax
jl 0x4453d0
cmp dword [0x4dce90], 6
jl 0x446054
movzx edx, byte [esp + 0x718]
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x38], 0x492f64
mov dword [esp + 0x40], 0x49087c
mov dword [esp + 0x8c], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
or dword [esp + 0x24], 8
push ebx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x708], 0xb
call fcn.00424690
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + 4]
lea ecx, [esp + 0x44]
mov dword [esp + 0x700], 0xc
mov dword [esp + edx + 0x38], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
call fcn.0041f110
mov dword [esp + 0x44], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
push ebp
lea eax, [esp + 0x44]
push str.DeviceHarddiskVolume
push eax
mov dword [esp + 0x70c], 0xe
call fcn.004247e0
add esp, 8
mov ecx, eax
call fcn.00424e80
lea ecx, [esp + 0xf8]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00422550
cmp dword [esp + 0x110], 0x10
mov esi, dword [esp + 0xfc]
mov byte [esp + 0x700], 0xf
jae 0x445d08
lea esi, [esp + 0xfc]
mov edx, dword [esp + 0x28]
push edx
lea eax, [esp + 0x458]
push eax
push esi
call fcn.00431900
add esp, 0xc
test eax, eax
jne 0x445d77
cmp dword [esp + 0x110], 0x10
jb 0x445d3c
mov ecx, dword [esp + 0xfc]
push ecx
call fcn.0046b849
add esp, 4
lea ecx, [esp + 0x8c]
mov dword [esp + 0x110], 0xf
mov dword [esp + 0x10c], ebx
mov byte [esp + 0xfc], 0
mov byte [esp + 0x700], 0
call fcn.00420090
lea edx, [esp + 0x8c]
push edx
jmp 0x446034
push 0x230
lea eax, [esp + 0x228]
push ebx
push eax
call fcn.0046bf90
push esi
lea ecx, [esp + 0x234]
push 0x492f80
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push ebx
lea edx, [esp + 0x34]
push edx
mov edx, dword [0x4b511c]
push 0x230
lea eax, [esp + 0x230]
push eax
push 0x230
mov ecx, eax
push ecx
push 0x222038
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x445fe4
cmp dword [esp + 0x450], ebx
je 0x445fe4
lea ecx, [esp + 0x19c]
call fcn.0043ec50
mov eax, esi
mov byte [esp + 0x700], 0x10
mov byte [esp + 0x19e], 1
mov byte [esp + 0x1a0], 1
mov dword [esp + 0x204], ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x445e13
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x1e4]
call fcn.0040c450
cmp byte [esp + 0x718], 0
mov eax, dword [esp + 0x434]
mov ecx, dword [esp + 0x438]
mov dword [esp + 0x1fc], eax
mov dword [esp + 0x200], ecx
je 0x445e61
mov byte [esp + 0x1a2], 1
cmp dword [esp + 0x668], ebx
jne 0x445e69
mov byte [esp + 0x1a2], 0
cmp byte [esp + 0x70c], 0
jne 0x445fc1
push 1
push 3
lea ecx, [esp + 0x11c]
call fcn.00410520
cmp dword [esp + 0x110], 0x10
mov eax, dword [esp + 0xfc]
mov byte [esp + 0x700], 0x11
jae 0x445ea7
lea eax, [esp + 0xfc]
push eax
lea edx, [esp + 0x120]
push edx
call fcn.004249f0
add esp, 8
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x118]
call fcn.0040e180
cmp dword [eax + 0x18], 8
jb 0x445ed7
mov eax, dword [eax + 4]
jmp 0x445eda
add eax, 4
push eax
call fcn.004334f0
add esp, 4
cmp dword [esp + 0xd8], 8
mov ebx, eax
jb 0x445eff
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.0046b849
add esp, 4
test ebx, ebx
jl 0x445f90
mov dl, bl
add dl, 0x41
movzx eax, dl
push eax
push 1
lea ecx, [esp + 0x1ac]
call fcn.0040bc90
push 1
push 0x492f7c
lea ecx, [esp + 0x1ac]
call fcn.0040c530
push 0x80
lea ecx, [esp + 0x678]
push ecx
push ebx
call fcn.00431990
add esp, 0xc
test eax, eax
je 0x445f79
lea eax, [esp + 0x674]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x445f55
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x678]
push edx
lea ecx, [esp + 0x1c8]
call fcn.00403870
call fcn.00433c70
movsx eax, al
add ebx, 0x41
cmp eax, ebx
jne 0x445f90
mov byte [esp + 0x19d], 1
lea ecx, [esp + 0x168]
mov byte [esp + 0x700], 0x10
call fcn.0040b250
lea ecx, [esp + 0x168]
push ecx
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0046b243
add esp, 4
xor ebx, ebx
lea edx, [esp + 0x19c]
push edx
mov ecx, edi
call fcn.00418770
lea ecx, [esp + 0x19c]
mov byte [esp + 0x700], 0xf
call fcn.0040c110
cmp dword [esp + 0x110], 0x10
jb 0x445ffe
mov eax, dword [esp + 0xfc]
push eax
call fcn.0046b849
add esp, 4
lea ecx, [esp + 0x8c]
mov dword [esp + 0x110], 0xf
mov dword [esp + 0x10c], ebx
mov byte [esp + 0xfc], 0
mov byte [esp + 0x700], 0
call fcn.00420090
lea ecx, [esp + 0x8c]
push ecx
mov dword [esp + 0x90], vtable.std::ios_base.0
call fcn.0046b243
inc ebp
add esp, 4
cmp ebp, 0x100
jl 0x445c3f
mov eax, edi
mov ecx, dword [esp + 0x6f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6e0]
xor ecx, esp
call fcn.0046be7b
add esp, 0x6f0
ret