Function at 0x415d74
Capabilities:
Get disk information

Disassembly:
push 0x298
mov eax, 0x49c46e
call fcn.004826e2
mov ebx, ecx
xor esi, esi
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x22c], esi
call fcn.00463ff6
mov dword [ebp - 4], esi
mov byte [ebp - 4], 1
call fcn.00462b71
push eax
lea ecx, [ebp - 0x238]
call fcn.0040176f
mov byte [ebp - 4], 2
cmp dword [ebx + 0x1f94], esi
mov dword [ebp - 0x288], esi
mov dword [ebp - 0x284], esi
mov dword [ebp - 0x280], esi
mov dword [ebp - 0x27c], esi
mov dword [ebp - 0x264], esi
jne 0x416b8b
mov ecx, dword [ebx + 0x1f6c]
mov eax, dword [ecx + 0x60]
or eax, dword [ecx + 0x64]
je 0x416b8b
push ecx
call fcn.0040db7a
cmp eax, esi
jne 0x416b8b
mov eax, dword [ebx + 0x1eb4]
cmp eax, esi
je 0x415e1a
cmp dword [eax + 0xaec], esi
jne 0x416b8b
mov edi, dword [ebx + 0x1f6c]
mov eax, edi
call fcn.0040dca8
test eax, eax
je 0x415e5f
lea eax, [ebp - 0x24c]
push eax
call fcn.0040cddf
mov byte [ebp - 4], 3
mov ecx, eax
mov dword [ebp - 0x22c], 1
call fcn.0045244a
or eax, edx
jne 0x415e5f
cmp dword [ebx + 0x1f88], esi
mov byte [ebp - 0x245], 1
je 0x415e66
mov byte [ebp - 0x245], 0
mov dword [ebp - 4], 2
test byte [ebp - 0x22c], 1
je 0x415e8b
mov ecx, dword [ebp - 0x24c]
and dword [ebp - 0x22c], 0xfffffffe
add ecx, 0xfffffff0
call fcn.00401755
cmp byte [ebp - 0x245], 0
je 0x415ea1
mov edx, dword [ebx + 0x1f6c]
xor ecx, ecx
call fcn.0040c124
mov eax, dword [ebx + 0x1f6c]
call fcn.0040dca8
test eax, eax
jne 0x415ecf
cmp dword [0x4cc1dc], esi
jne 0x415ec0
cmp dword [ebx + 0x2388], esi
je 0x415ecf
mov ecx, ebx
call fcn.00419974
cmp eax, esi
je 0x416b8b
mov eax, dword [ebx + 0x1f6c]
call fcn.0040dca8
test eax, eax
jne 0x4162a9
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x24c], esi
call fcn.00463ff6
push 0x10
mov byte [ebp - 4], 5
call fcn.0045c603
pop ecx
mov dword [ebp - 0x234], eax
cmp eax, esi
mov byte [ebp - 4], 6
je 0x415f45
mov edi, dword [ebx + 0x1f6c]
lea eax, [ebp - 0x260]
push eax
call fcn.0040cddf
mov byte [ebp - 4], 7
mov eax, dword [eax]
or dword [ebp - 0x22c], 2
push 0x3042
push eax
push dword [ebp - 0x234]
call fcn.00403f07
mov dword [ebp - 0x244], eax
jmp 0x415f4b
mov dword [ebp - 0x244], esi
mov eax, dword [ebp - 0x244]
mov dword [ebp - 4], 5
test byte [ebp - 0x22c], 2
mov dword [ebp - 0x24c], eax
je 0x415f7c
mov ecx, dword [ebp - 0x260]
and dword [ebp - 0x22c], 0xfffffffd
add ecx, 0xfffffff0
call fcn.00401755
push dword [ebp - 0x244]
call fcn.004041e4
mov ecx, dword [ebx + 0x1f6c]
mov edi, dword [ecx + 0x60]
mov esi, eax
cmp esi, edi
mov eax, dword [ecx + 0x64]
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x254], eax
jne 0x415fad
cmp edx, eax
je 0x4160ee
cmp dword [ecx + 0x30], 0
lea eax, [ebp - 0x23c]
je 0x415fcc
push 0x571
push eax
call fcn.004575ec
pop ecx
pop ecx
mov byte [ebp - 4], 9
jmp 0x415fdd
push 0x4cd
push eax
call fcn.004575ec
pop ecx
pop ecx
mov byte [ebp - 4], 0xa
push eax
mov esi, ebx
call fcn.0041ef33
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
call fcn.00401755
mov edi, dword [ebx + 0x1f6c]
lea eax, [ebp - 0x234]
push eax
call fcn.0040cddf
push 3
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0xb
call fcn.004013d0
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0xc
call fcn.004018cc
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
call fcn.00401755
mov eax, 0x104
push eax
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x230]
push ecx
lea ecx, [ebp - 0x28c]
push ecx
lea ecx, [ebp - 0x298]
push ecx
push eax
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test byte [ebp - 0x230], 0x40
je 0x4160aa
xor eax, eax
push eax
lea ecx, [ebp - 0x23c]
push ecx
push eax
push eax
push eax
push eax
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x244]
push 0x900c4
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [ebp - 0x258]
mov esi, dword [ebp - 0x244]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x240]
call fcn.00404199
mov ecx, ebx
call fcn.00414258
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x234]
add ecx, 0xfffffff0
call fcn.00401755
jmp 0x4160f4
mov esi, dword [ebp - 0x244]
call fcn.00404060
test esi, esi
je 0x416106
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 2
call fcn.0046400c
mov edi, dword [ebx + 0x1f6c]
cmp dword [edi + 0x370], 0
jne 0x4162a9
call fcn.0040befe
mov dword [ebp - 0x244], eax
jmp 0x4162b0
or dword [ebp - 0x244], 0xffffffff
mov ecx, dword [ebx + 0x1f6c]
mov eax, ecx
call fcn.0040dca8
test eax, eax
je 0x416b8b
cmp dword [ecx + 0x11c], 0
je 0x4162eb
call fcn.0040dbff
imul eax, eax, 0xa
cmp dword [ebp + 8], eax
jle 0x4162f6
mov ecx, dword [ebx + 0x1f6c]
call fcn.0040dbff
imul eax, eax, 0xa
jmp 0x4162f3
push 0xa
pop eax
cmp dword [ebp + 8], eax
jle 0x4162f6
mov dword [ebp + 8], eax
lea edi, [ebx + 0x1f7c]
push dword [edi]
call fcn.0044f150
pop ecx
push dword [edi]
mov esi, eax
call fcn.0044f0f7
pop ecx
push 0x14
pop edi
mov ecx, ebx
mov dword [ebp - 0x24c], eax
sub edi, esi
call fcn.00419974
xor ecx, ecx
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x234], ecx
xor eax, eax
cmp eax, 0x28
jge 0x416347
cmp dword [ebx + eax*4 + 0x1eb4], ecx
je 0x416344
inc dword [ebp - 0x234]
inc eax
jmp 0x416330
cmp dword [0x4cc1dc], ecx
jne 0x416357
cmp dword [ebx + 0x2388], ecx
je 0x416382
push 0x14
pop esi
cmp dword [ebp - 0x24c], esi
jge 0x416382
push dword [ebx + 0x1f7c]
call fcn.00450190
test eax, eax
pop ecx
jl 0x416382
mov ecx, esi
sub ecx, dword [ebp - 0x24c]
cmp eax, ecx
jge 0x416380
mov ecx, eax
sub edi, ecx
mov ecx, dword [ebp - 0x230]
add edi, dword [ebp - 0x234]
add ecx, dword [ebp - 0x234]
mov eax, edi
cmp edi, ecx
jl 0x41639c
mov eax, ecx
cmp eax, dword [ebp + 8]
jge 0x4163a9
cmp edi, ecx
jl 0x4163ac
mov edi, ecx
jmp 0x4163ac
mov edi, dword [ebp + 8]
test edi, edi
jg 0x4163b3
xor edi, edi
inc edi
cmp edi, dword [ebp + 8]
jge 0x4163bb
mov dword [ebp + 8], edi
cmp dword [ebp + 8], 0
jge 0x4163c8
mov dword [ebp + 8], 1
mov eax, dword [ebx + 0x1f6c]
call fcn.0040dcdf
cmp dword [ebp + 8], eax
jle 0x4163db
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jg 0x41647f
mov edi, dword [ebx + 0x1f6c]
lea eax, [ebp - 0x24c]
push eax
call fcn.0040ccbf
lea eax, [ebp - 0x24c]
push eax
mov byte [ebp - 4], 0x12
push dword [ebx + 0x1f6c]
xor ecx, ecx
call fcn.0040c3d0
mov edi, dword [ebx + 0x1f6c]
lea eax, [ebp - 0x23c]
push eax
call fcn.0040d2b6
mov esi, eax
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x13
mov edi, dword [ebx + 0x1f6c]
push eax
call fcn.0040d237
push esi
mov byte [ebp - 4], 0x14
mov edi, dword [ebx + 0x1f6c]
push eax
call fcn.0040c647
mov ecx, dword [ebp - 0x230]
add ecx, 0xfffffff0
call fcn.00401755
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
call fcn.00401755
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x24c]
add ecx, 0xfffffff0
mov dword [ebp + 8], 2
call fcn.00401755
xor eax, eax
je 0x4165aa
mov eax, dword [ebx + 0x1f6c]
mov esi, dword [ebp + 8]
cmp esi, dword [eax + 0x1318]
jge 0x4165aa
test esi, esi
jle 0x4165aa
cmp esi, 0x28
jge 0x4164d0
lea edi, [ebx + esi*4 + 0x1eb4]
mov ecx, dword [edi]
test ecx, ecx
je 0x4164cd
push 1
call fcn.0043adec
mov ecx, dword [edi]
and dword [edi], 0
test ecx, ecx
je 0x4164cd
mov eax, dword [ecx]
push 1
call dword [eax + 4]
inc esi
jmp 0x4164a4
push dword [ebx + 0x1f7c]
lea eax, [ebp - 0x23c]
push eax
call fcn.00457830
pop ecx
pop ecx
lea ecx, [ebp - 0x230]
push str.GR_OtherGRI
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x15
call fcn.00404afb
pop ecx
pop ecx
push 0
mov byte [ebp - 4], 0x16
mov eax, dword [eax]
push eax
push 1
push 1
lea ecx, [ebp - 0x258]
call fcn.00466de8
mov ecx, dword [ebp - 0x230]
add ecx, 0xfffffff0
call fcn.00401755
mov byte [ebp - 4], 0x19
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
call fcn.00401755
push 1
lea eax, [ebp - 0x258]
push eax
lea esi, [ebp - 0x270]
call fcn.004489ad
and dword [ebp - 0x234], 0
cmp dword [ebp - 0x234], 0x28
jge 0x416590
mov eax, dword [ebp - 0x234]
lea eax, [ebx + eax*4 + 0x1eb4]
xor edi, edi
cmp dword [eax], edi
je 0x416588
xor esi, esi
cmp esi, 0x28
jge 0x416588
mov ecx, dword [eax]
mov edx, dword [ebx + esi*4 + 0x1eb4]
cmp ecx, edx
je 0x416585
mov dword [ecx + edi*4 + 0x68], edx
inc edi
inc esi
jmp 0x41656e
inc dword [ebp - 0x234]
jmp 0x416550
lea ecx, [ebp - 0x270]
call fcn.00448a35
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 2
call fcn.00466e33
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x1f6c]
call fcn.0040c141
xor esi, esi
cmp dword [ebx + 0x21a8], esi
jne 0x4165f4
cmp dword [0x4cc1f8], esi
je 0x4165f4
cmp dword [ebx + 0x2288], esi
jne 0x4165f4
push 5
lea ecx, [ebx + 0x74]
call fcn.00463222
push 0xffff
mov ecx, ebx
call fcn.00463086
cmp eax, esi
je 0x4165f4
push esi
mov ecx, eax
call fcn.00463222
mov eax, dword [ebp - 0x244]
cmp eax, esi
jl 0x41660a
mov ecx, dword [ebx + 0x1eb4]
mov dword [ecx + 0x1ec], eax
lea ecx, [ebp - 0x26c]
call fcn.00463ff6
push 0x10
mov byte [ebp - 4], 0x1b
call fcn.0045c603
pop ecx
mov dword [ebp - 0x230], eax
cmp eax, esi
mov byte [ebp - 4], 0x1c
je 0x416661
mov edi, dword [ebx + 0x1f6c]
lea eax, [ebp - 0x23c]
push eax
call fcn.0040cddf
mov byte [ebp - 4], 0x1d
mov eax, dword [eax]
or dword [ebp - 0x22c], 4
push 0x3042
push eax
push dword [ebp - 0x230]
call fcn.00403f07
mov esi, eax
mov dword [ebp - 4], 0x1b
test byte [ebp - 0x22c], 4
je 0x41667f
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
call fcn.00401755
mov eax, dword [ebx + 0x1f6c]
mov edi, dword [eax + 0x60]
mov eax, dword [eax + 0x64]
push esi
mov dword [ebp - 0x254], eax
call fcn.004041e4
xor ecx, ecx
cmp eax, edi
jne 0x4166a1
cmp edx, ecx
je 0x4166c4
mov eax, dword [ebx + 0x1f6c]
mov ecx, dword [eax + 0x60]
mov eax, dword [eax + 0x64]
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x258]
mov dword [ebp - 0x258], ecx
call fcn.00404199
call fcn.00404060
test esi, esi
je 0x4166d6
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0x1a
jmp 0x416844
mov byte [ebp - 4], 2
call fcn.0046400c
xor esi, esi
mov dword [ebp - 0x22c], esi
mov ecx, dword [ebp + 8]
xor eax, eax
mov eax, ecx
cmp esi, eax
jge 0x416a96
cmp dword [ebp - 0x264], 0
jne 0x416a96
lea edi, [ebx + esi*4 + 0x1eb4]
mov eax, dword [edi]
test eax, eax
jne 0x416a8e
push 0xb20
call fcn.0045c603
pop ecx
mov dword [ebp - 0x230], eax
test eax, eax
mov byte [ebp - 4], 0x24
je 0x4168a3
push eax
call fcn.0042686d
jmp 0x4168a5
xor eax, eax
mov byte [ebp - 4], 2
mov dword [edi], eax
mov ecx, dword [ebx + 0x1f6c]
test ecx, ecx
mov dword [eax + 0x274], ecx
je 0x4168c0
call fcn.004285d3
mov ecx, dword [edi]
mov eax, dword [ecx]
push 0
lea edx, [esi + 1]
push edx
push ebx
lea edx, [ebp - 0x288]
push edx
push 0x40000000
push 0x4a87ac
push 0
call dword [eax + 0x54]
mov eax, dword [edi]
mov dword [eax + 0x1f0], esi
mov eax, dword [edi]
mov dword [eax + 0x1f4], 1
mov eax, dword [edi]
mov dword [eax + 0x1f8], 0xa
mov ecx, dword [edi]
lea eax, [ebx + 0x2120]
mov dword [ecx + 0x860], eax
mov eax, dword [edi]
mov ecx, dword [ebx + 0x2388]
mov dword [eax + 0x140], ecx
mov eax, dword [edi]
mov ecx, dword [ebx + 0x1f70]
mov dword [eax + 0x1e8], ecx
push dword [ebx + 0x1f7c]
lea eax, [ebp - 0x260]
push eax
call fcn.00457830
pop ecx
pop ecx
lea ecx, [ebp - 0x23c]
push str.GR_OtherGRI
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x25
call fcn.00404afb
pop ecx
pop ecx
push 0
mov byte [ebp - 4], 0x26
mov eax, dword [eax]
push eax
push 1
push 1
lea ecx, [ebp - 0x258]
call fcn.00466de8
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
call fcn.00401755
mov byte [ebp - 4], 0x29
mov ecx, dword [ebp - 0x260]
add ecx, 0xfffffff0
call fcn.00401755
push 1
lea eax, [ebp - 0x258]
push eax
lea esi, [ebp - 0x270]
call fcn.004489ad
xor edx, edx
xor esi, esi
cmp edx, dword [ebp + 8]
jge 0x4169c2
mov eax, dword [edi]
mov ecx, dword [ebx + edx*4 + 0x1eb4]
cmp eax, ecx
je 0x4169bf
mov dword [eax + esi*4 + 0x68], ecx
inc esi
inc edx
jmp 0x4169a8
lea ecx, [ebp - 0x270]
call fcn.00448a35
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 2
call fcn.00466e33
mov ebx, dword [edi]
call fcn.00435e30
xor esi, esi
cmp eax, esi
jne 0x416a04
cmp dword [0x4cc224], esi
je 0x4169f8
mov eax, dword [edi]
call fcn.00416f09
mov dword [edi], esi
mov dword [ebp - 0x264], 1
cmp dword [ebp - 0x264], esi
jne 0x416a61
mov eax, dword [edi]
call fcn.00436bb9
mov ecx, dword [ebp - 0x244]
xor esi, esi
cmp ecx, esi
jl 0x416a78
mov eax, dword [ebp - 0x25c]
mov eax, dword [eax + 0x1f6c]
call fcn.0040c39d
sub eax, ecx
imul eax, dword [ebp - 0x22c]
cdq
idiv dword [ebp + 8]
mov edx, dword [edi]
add eax, ecx
mov dword [edx + 0x1ec], eax
mov edi, dword [edi]
cmp dword [edi + 0x1ec], ecx
je 0x416a61
push esi
push esi
push 0x8dc
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageA]
mov ebx, dword [ebp - 0x25c]
inc dword [ebp - 0x22c]
mov esi, dword [ebp - 0x22c]
jmp 0x416855
mov eax, dword [edi]
push esi
call fcn.00437051
mov eax, dword [edi]
push esi
push esi
push 0x8dc
push dword [eax + 0x20]
jmp 0x416a5b
mov dword [eax + 0x1f0], esi
jmp 0x416a67
push dword [ebx + 0x1f7c]
and dword [ebp - 0x264], 0
lea eax, [ebp - 0x23c]
push eax
call fcn.00457830
pop ecx
pop ecx
lea ecx, [ebp - 0x230]
push str.GR_OtherGRI
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x2a
call fcn.00404afb
pop ecx
pop ecx
push 0
mov byte [ebp - 4], 0x2b
mov eax, dword [eax]
push eax
push 1
push 1
lea ecx, [ebp - 0x278]
call fcn.00466de8
mov ecx, dword [ebp - 0x230]
add ecx, 0xfffffff0
call fcn.00401755
mov byte [ebp - 4], 0x2e
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
call fcn.00401755
push 1
lea eax, [ebp - 0x278]
push eax
lea esi, [ebp - 0x270]
call fcn.004489ad
and dword [ebp - 0x22c], 0
mov eax, dword [ebp - 0x22c]
cmp eax, 0x28
jge 0x416b60
lea edx, [ebx + eax*4 + 0x1eb4]
cmp dword [edx], 0
je 0x416b58
inc dword [ebp - 0x264]
xor esi, esi
xor edi, edi
cmp esi, 0x28
jge 0x416b58
mov eax, dword [edx]
mov ecx, dword [ebx + esi*4 + 0x1eb4]
cmp eax, ecx
je 0x416b55
mov dword [eax + edi*4 + 0x68], ecx
inc edi
inc esi
jmp 0x416b3e
inc dword [ebp - 0x22c]
jmp 0x416b1d
mov edx, dword [ebp - 0x264]
mov eax, dword [ebx + 0x1f6c]
call fcn.0040c141
lea ecx, [ebp - 0x270]
call fcn.00448a35
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 2
call fcn.00466e33
mov ecx, dword [ebp - 0x238]
add ecx, 0xfffffff0
call fcn.00401755
or dword [ebp - 4], 0xffffffff
call fcn.0046400c
call fcn.0048273e
ret 4