Function at 0x412c30
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x433d32
mov eax, dword fs:[0]
push eax
sub esp, 0x6e4
mov eax, dword [0x44dd94]
xor eax, esp
mov dword [esp + 0x6e0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44dd94]
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.00405a20
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], esi
lea ebx, [ebx]
mov dword [esp + 0x20], esi
jmp 0x412cb0
mov dword [esp + 0x38], 0x435a9c
mov dword [esp + 0x40], 0x435a94
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.004071f0
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.00403550
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 str.Partition
push ecx
lea edx, [esp + 0x4c]
push str.DeviceHarddisk
push edx
mov dword [esp + 0x714], 4
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 eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0x3c]
call fcn.00405650
cmp dword [esp + 0x110], 0x10
mov byte [esp + 0x700], 5
jb 0x412d96
mov ecx, dword [esp + 0xfc]
mov dword [esp + 0x2c], ecx
jmp 0x412da1
lea edx, [esp + 0xfc]
mov dword [esp + 0x2c], edx
mov bl, byte [esp + 0x718]
test bl, bl
je 0x412db9
cmp dword [esp + 0x20], esi
je 0x412db9
mov eax, 1
jmp 0x412dbb
xor eax, eax
mov ecx, dword [esp + 0x2c]
push eax
lea eax, [esp + 0x458]
push eax
push ecx
call fcn.0040ee00
add esp, 0xc
test eax, eax
jne 0x412e34
cmp dword [esp + 0x20], esi
je 0x4132f5
cmp dword [esp + 0x110], 0x10
jb 0x412df9
mov edx, dword [esp + 0xfc]
push edx
call fcn.00417d54
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.00403a50
lea eax, [esp + 0x8c]
push eax
jmp 0x4132cb
lea ecx, [esp + 0x114]
call fcn.00411d70
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 0x412e60
sub eax, edx
mov edx, dword [esp + 0x2c]
push eax
push edx
lea ecx, [esp + 0x15c]
call fcn.00401ba0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0xc0]
push eax
push ecx
call fcn.0040eff0
add esp, 8
test eax, eax
je 0x412ec2
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 0x412ed7
mov byte [esp + 0x11a], 1
cmp dword [esp + 0x668], esi
jne 0x412edf
mov byte [esp + 0x11a], 0
cmp byte [esp + 0x70c], 0
jne 0x41311b
mov dword [esp + 0x19c], 0x435a9c
mov dword [esp + 0x1a4], 0x435a94
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.0040ad20
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.00409070
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 0x412f96
lea eax, [esp + 0xfc]
push eax
lea edx, [esp + 0x1a8]
push edx
call fcn.0040ae00
add esp, 8
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x1a0]
call fcn.0040a550
cmp dword [eax + 0x18], ebx
jb 0x412fc5
mov eax, dword [eax + 4]
jmp 0x412fc8
add eax, 4
push eax
call fcn.0040f160
add esp, 4
cmp dword [esp + 0xd8], 8
mov ebx, eax
jb 0x412fed
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.00417d54
add esp, 4
cmp ebx, esi
jl 0x4130bb
mov dl, bl
add dl, 0x41
movzx eax, dl
push eax
push 1
lea ecx, [esp + 0x124]
call fcn.00404340
push 1
push 0x435ab4
lea ecx, [esp + 0x124]
call fcn.004041f0
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 0x4130a4
lea eax, [esp + 0x674]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x413080
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x678]
push edx
lea ecx, [esp + 0x140]
call fcn.00401eb0
call fcn.0040f430
movsx eax, al
add ebx, 0x41
cmp eax, ebx
jne 0x4130bb
mov byte [esp + 0x115], 1
cmp dword [esp + 0x20], esi
jne 0x4130ec
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0xe0]
push ecx
push edx
call fcn.0040f090
add esp, 8
test eax, eax
je 0x4130ec
cmp dword [esp + 0xe8], 0xb
sete al
mov byte [esp + 0x170], al
lea ecx, [esp + 0x1f0]
mov byte [esp + 0x700], 6
call fcn.00409700
lea ecx, [esp + 0x1f0]
push ecx
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0041756e
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, esi
jne 0x413150
lea edx, [esp + 0x114]
push edx
mov ecx, edi
call fcn.00412b80
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 0x413267
cmp eax, 1
jne 0x41319e
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 0x413175
call fcn.00418074
mov ecx, dword [edi + 0xc]
mov eax, ebp
imul eax, eax, 0x88
mov edx, dword [eax + ecx + 0x60]
cmp edx, dword [esp + 0x174]
jne 0x41319e
mov eax, dword [eax + ecx + 0x64]
cmp eax, dword [esp + 0x178]
je 0x41335d
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 0x4131d1
call fcn.00418074
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 0x413218
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 0x413210
call fcn.00418074
mov ecx, dword [edi + 0xc]
mov byte [esi + ecx + 1], 1
cmp byte [esp + 0x710], 0
je 0x413231
lea edx, [esp + 0x114]
push edx
mov ecx, edi
call fcn.00412b80
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 0x413251
call fcn.00418074
mov edx, dword [edi + 0xc]
lea ecx, [esp + 0x114]
push ecx
lea ecx, [esi + edx + 0x6c]
call fcn.00412b80
xor esi, esi
lea ecx, [esp + 0x114]
mov byte [esp + 0x700], 5
call fcn.004046d0
cmp dword [esp + 0x110], 0x10
jb 0x413295
mov eax, dword [esp + 0xfc]
push eax
call fcn.00417d54
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.00403a50
lea ecx, [esp + 0x8c]
push ecx
mov dword [esp + 0x90], vtable.std::ios_base.0
call fcn.0041756e
mov eax, dword [esp + 0x24]
inc eax
add esp, 4
cmp eax, 0x20
mov dword [esp + 0x20], eax
jl 0x412cb0
jmp 0x4134e0
cmp dword [esp + 0x110], 0x10
jb 0x41330f
mov edx, dword [esp + 0xfc]
push edx
call fcn.00417d54
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.00403a50
lea eax, [esp + 0x8c]
push eax
mov dword [esp + 0x90], vtable.std::ios_base.0
call fcn.0041756e
add esp, 4
jmp 0x4134e0
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 0x41337d
call fcn.00418074
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 0x4133ad
call fcn.00418074
mov ecx, dword [edi + 0xc]
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x124]
lea ecx, [esi + ecx + 8]
push edx
call fcn.004019c0
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 0x4133e5
call fcn.00418074
mov ecx, dword [edi + 0xc]
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x140]
lea ecx, [esi + ecx + 0x24]
push edx
call fcn.00401aa0
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 0x41341d
call fcn.00418074
mov ecx, dword [edi + 0xc]
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x15c]
lea ecx, [esi + ecx + 0x40]
push edx
call fcn.004019c0
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 0x413455
call fcn.00418074
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.004046d0
cmp dword [esp + 0x110], 0x10
jb 0x413491
mov eax, dword [esp + 0xfc]
push eax
call fcn.00417d54
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.00403a50
lea ecx, [esp + 0x8c]
push ecx
mov dword [esp + 0x90], vtable.std::ios_base.0
call fcn.0041756e
add esp, 4
xor esi, esi
mov eax, dword [esp + 0x28]
inc eax
cmp eax, 0x40
mov dword [esp + 0x28], eax
jl 0x412ca0
cmp dword [0x476740], 6
jl 0x413924
movzx edx, byte [esp + 0x718]
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x38], 0x435a9c
mov dword [esp + 0x40], 0x435a94
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.004071f0
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.00403550
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.00407360
add esp, 8
mov ecx, eax
call fcn.00407600
lea ecx, [esp + 0xf8]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00405650
cmp dword [esp + 0x110], 0x10
mov esi, dword [esp + 0xfc]
mov byte [esp + 0x700], 0xf
jae 0x4135d8
lea esi, [esp + 0xfc]
mov edx, dword [esp + 0x28]
push edx
lea eax, [esp + 0x458]
push eax
push esi
call fcn.0040ee00
add esp, 0xc
test eax, eax
jne 0x413647
cmp dword [esp + 0x110], 0x10
jb 0x41360c
mov ecx, dword [esp + 0xfc]
push ecx
call fcn.00417d54
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.00403a50
lea edx, [esp + 0x8c]
push edx
jmp 0x413904
push 0x230
lea eax, [esp + 0x228]
push ebx
push eax
call fcn.004188d0
push esi
lea ecx, [esp + 0x234]
push 0x435ab8
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push ebx
lea edx, [esp + 0x34]
push edx
mov edx, dword [0x44bf9c]
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 0x4138b4
cmp dword [esp + 0x450], ebx
je 0x4138b4
lea ecx, [esp + 0x19c]
call fcn.00411d70
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 0x4136e3
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x1e4]
call fcn.00401ba0
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 0x413731
mov byte [esp + 0x1a2], 1
cmp dword [esp + 0x668], ebx
jne 0x413739
mov byte [esp + 0x1a2], 0
cmp byte [esp + 0x70c], 0
jne 0x413891
push 1
push 3
lea ecx, [esp + 0x11c]
call fcn.0040b340
cmp dword [esp + 0x110], 0x10
mov eax, dword [esp + 0xfc]
mov byte [esp + 0x700], 0x11
jae 0x413777
lea eax, [esp + 0xfc]
push eax
lea edx, [esp + 0x120]
push edx
call fcn.0040ae00
add esp, 8
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x118]
call fcn.0040a550
cmp dword [eax + 0x18], 8
jb 0x4137a7
mov eax, dword [eax + 4]
jmp 0x4137aa
add eax, 4
push eax
call fcn.0040f160
add esp, 4
cmp dword [esp + 0xd8], 8
mov ebx, eax
jb 0x4137cf
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.00417d54
add esp, 4
test ebx, ebx
jl 0x413860
mov dl, bl
add dl, 0x41
movzx eax, dl
push eax
push 1
lea ecx, [esp + 0x1ac]
call fcn.00404340
push 1
push 0x435ab4
lea ecx, [esp + 0x1ac]
call fcn.004041f0
push 0x80
lea ecx, [esp + 0x678]
push ecx
push ebx
call fcn.0040ee90
add esp, 0xc
test eax, eax
je 0x413849
lea eax, [esp + 0x674]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413825
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x678]
push edx
lea ecx, [esp + 0x1c8]
call fcn.00401eb0
call fcn.0040f430
movsx eax, al
add ebx, 0x41
cmp eax, ebx
jne 0x413860
mov byte [esp + 0x19d], 1
lea ecx, [esp + 0x168]
mov byte [esp + 0x700], 0x10
call fcn.00409700
lea ecx, [esp + 0x168]
push ecx
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0041756e
add esp, 4
xor ebx, ebx
lea edx, [esp + 0x19c]
push edx
mov ecx, edi
call fcn.00412b80
lea ecx, [esp + 0x19c]
mov byte [esp + 0x700], 0xf
call fcn.004046d0
cmp dword [esp + 0x110], 0x10
jb 0x4138ce
mov eax, dword [esp + 0xfc]
push eax
call fcn.00417d54
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.00403a50
lea ecx, [esp + 0x8c]
push ecx
mov dword [esp + 0x90], vtable.std::ios_base.0
call fcn.0041756e
inc ebp
add esp, 4
cmp ebp, 0x100
jl 0x41350f
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.0041851b
add esp, 0x6f0
ret