Function at 0x416114
Capabilities:
Get disk information

Disassembly:
push 0x298
mov eax, 0x4a80e5
call fcn.0048d951
mov ebx, ecx
xor esi, esi
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x22c], esi
call fcn.0046f568
mov dword [ebp - 4], esi
mov byte [ebp - 4], 1
call fcn.0046df20
push eax
lea ecx, [ebp - 0x238]
call fcn.0046e14b
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 0x416f2c
mov ecx, dword [ebx + 0x1f6c]
mov eax, dword [ecx + 0x68]
or eax, dword [ecx + 0x6c]
je 0x416f2c
push ecx
call fcn.0040dfa9
cmp eax, esi
jne 0x416f2c
mov eax, dword [ebx + 0x1eb4]
cmp eax, esi
je 0x4161ba
cmp dword [eax + 0xaec], esi
jne 0x416f2c
mov edi, dword [ebx + 0x1f6c]
mov eax, edi
call fcn.0040e0d7
test eax, eax
je 0x4161ff
lea eax, [ebp - 0x24c]
push eax
call fcn.0040d20b
mov byte [ebp - 4], 3
mov ecx, eax
mov dword [ebp - 0x22c], 1
call fcn.0045bf5f
or eax, edx
jne 0x4161ff
cmp dword [ebx + 0x1f88], esi
mov byte [ebp - 0x245], 1
je 0x416206
mov byte [ebp - 0x245], 0
mov dword [ebp - 4], 2
test byte [ebp - 0x22c], 1
je 0x41622b
mov ecx, dword [ebp - 0x24c]
and dword [ebp - 0x22c], 0xfffffffe
add ecx, 0xfffffff0
call fcn.0040174a
cmp byte [ebp - 0x245], 0
je 0x416241
mov edx, dword [ebx + 0x1f6c]
xor ecx, ecx
call fcn.0040c458
mov eax, dword [ebx + 0x1f6c]
call fcn.0040e0d7
test eax, eax
jne 0x41626f
cmp dword [0x4db238], esi
jne 0x416260
cmp dword [ebx + 0x2388], esi
je 0x41626f
mov ecx, ebx
call fcn.00419d2b
cmp eax, esi
je 0x416f2c
mov eax, dword [ebx + 0x1f6c]
call fcn.0040e0d7
test eax, eax
jne 0x416649
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x24c], esi
call fcn.0046f568
push 0x10
mov byte [ebp - 4], 5
call fcn.0046788f
pop ecx
mov dword [ebp - 0x234], eax
cmp eax, esi
mov byte [ebp - 4], 6
je 0x4162e5
mov edi, dword [ebx + 0x1f6c]
lea eax, [ebp - 0x260]
push eax
call fcn.0040d20b
mov byte [ebp - 4], 7
mov eax, dword [eax]
or dword [ebp - 0x22c], 2
push 0x3042
push eax
push dword [ebp - 0x234]
call fcn.00404195
mov dword [ebp - 0x244], eax
jmp 0x4162eb
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 0x41631c
mov ecx, dword [ebp - 0x260]
and dword [ebp - 0x22c], 0xfffffffd
add ecx, 0xfffffff0
call fcn.0040174a
mov eax, dword [ebp - 0x244]
call fcn.00404487
mov ecx, dword [ebx + 0x1f6c]
mov edi, dword [ecx + 0x68]
mov esi, eax
cmp esi, edi
mov eax, dword [ecx + 0x6c]
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x254], eax
jne 0x41634d
cmp edx, eax
je 0x41648e
cmp dword [ecx + 0x34], 0
lea eax, [ebp - 0x23c]
je 0x41636c
push 0x571
push eax
call fcn.004614c1
pop ecx
pop ecx
mov byte [ebp - 4], 9
jmp 0x41637d
push 0x4cd
push eax
call fcn.004614c1
pop ecx
pop ecx
mov byte [ebp - 4], 0xa
push eax
mov esi, ebx
call fcn.0041fac7
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
call fcn.0040174a
mov edi, dword [ebx + 0x1f6c]
lea eax, [ebp - 0x234]
push eax
call fcn.0040d20b
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.0040189c
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
call fcn.0040174a
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 0x41644a
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.0040443c
mov ecx, ebx
call fcn.004145f8
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x234]
add ecx, 0xfffffff0
call fcn.0040174a
jmp 0x416494
mov esi, dword [ebp - 0x244]
call fcn.004042fb
test esi, esi
je 0x4164a6
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 2
call fcn.0046f57e
mov edi, dword [ebx + 0x1f6c]
cmp dword [edi + 0x378], 0
jne 0x416649
call fcn.0040c232
mov dword [ebp - 0x244], eax
jmp 0x416650
or dword [ebp - 0x244], 0xffffffff
mov ecx, dword [ebx + 0x1f6c]
mov eax, ecx
call fcn.0040e0d7
test eax, eax
je 0x416f2c
cmp dword [ecx + 0x124], 0
je 0x41668b
call fcn.0040e02e
imul eax, eax, 0xa
cmp dword [ebp + 8], eax
jle 0x416696
mov ecx, dword [ebx + 0x1f6c]
call fcn.0040e02e
imul eax, eax, 0xa
jmp 0x416693
push 0xa
pop eax
cmp dword [ebp + 8], eax
jle 0x416696
mov dword [ebp + 8], eax
lea edi, [ebx + 0x1f7c]
push dword [edi]
call fcn.00458a80
pop ecx
push dword [edi]
mov esi, eax
call fcn.00458a27
pop ecx
push 0x14
pop edi
mov ecx, ebx
mov dword [ebp - 0x24c], eax
sub edi, esi
call fcn.00419d2b
xor ecx, ecx
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x234], ecx
xor eax, eax
cmp eax, 0x28
jge 0x4166e7
cmp dword [ebx + eax*4 + 0x1eb4], ecx
je 0x4166e4
inc dword [ebp - 0x234]
inc eax
jmp 0x4166d0
cmp dword [0x4db238], ecx
jne 0x4166f7
cmp dword [ebx + 0x2388], ecx
je 0x416722
push 0x14
pop esi
cmp dword [ebp - 0x24c], esi
jge 0x416722
push dword [ebx + 0x1f7c]
call fcn.00459ac0
test eax, eax
pop ecx
jl 0x416722
mov ecx, esi
sub ecx, dword [ebp - 0x24c]
cmp eax, ecx
jge 0x416720
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 0x41673c
mov eax, ecx
cmp eax, dword [ebp + 8]
jge 0x416749
cmp edi, ecx
jl 0x41674c
mov edi, ecx
jmp 0x41674c
mov edi, dword [ebp + 8]
test edi, edi
jg 0x416753
xor edi, edi
inc edi
cmp edi, dword [ebp + 8]
jge 0x41675b
mov dword [ebp + 8], edi
cmp dword [ebp + 8], 0
jge 0x416768
mov dword [ebp + 8], 1
mov eax, dword [ebx + 0x1f6c]
call fcn.0040e10e
cmp dword [ebp + 8], eax
jle 0x41677b
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jg 0x41681f
mov edi, dword [ebx + 0x1f6c]
lea eax, [ebp - 0x24c]
push eax
call fcn.0040cff3
lea eax, [ebp - 0x24c]
push eax
mov byte [ebp - 4], 0x12
push dword [ebx + 0x1f6c]
xor ecx, ecx
call fcn.0040c704
mov edi, dword [ebx + 0x1f6c]
lea eax, [ebp - 0x23c]
push eax
call fcn.0040d6e5
mov esi, eax
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x13
mov edi, dword [ebx + 0x1f6c]
push eax
call fcn.0040d666
push esi
mov byte [ebp - 4], 0x14
mov edi, dword [ebx + 0x1f6c]
push eax
call fcn.0040c97b
mov ecx, dword [ebp - 0x230]
add ecx, 0xfffffff0
call fcn.0040174a
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
call fcn.0040174a
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x24c]
add ecx, 0xfffffff0
mov dword [ebp + 8], 2
call fcn.0040174a
xor eax, eax
je 0x41694a
mov eax, dword [ebx + 0x1f6c]
mov esi, dword [ebp + 8]
cmp esi, dword [eax + 0x1320]
jge 0x41694a
test esi, esi
jle 0x41694a
cmp esi, 0x28
jge 0x416870
lea edi, [ebx + esi*4 + 0x1eb4]
mov ecx, dword [edi]
test ecx, ecx
je 0x41686d
push 1
call fcn.00443ce9
mov ecx, dword [edi]
and dword [edi], 0
test ecx, ecx
je 0x41686d
mov eax, dword [ecx]
push 1
call dword [eax + 4]
inc esi
jmp 0x416844
push dword [ebx + 0x1f7c]
lea eax, [ebp - 0x23c]
push eax
call fcn.00461705
pop ecx
pop ecx
lea ecx, [ebp - 0x230]
push str.GR_OtherGRI
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x15
call fcn.00404da1
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.004720a6
mov ecx, dword [ebp - 0x230]
add ecx, 0xfffffff0
call fcn.0040174a
mov byte [ebp - 4], 0x19
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
call fcn.0040174a
push 1
lea eax, [ebp - 0x258]
push eax
lea esi, [ebp - 0x270]
call fcn.00451de4
and dword [ebp - 0x234], 0
cmp dword [ebp - 0x234], 0x28
jge 0x416930
mov eax, dword [ebp - 0x234]
lea eax, [ebx + eax*4 + 0x1eb4]
xor edi, edi
cmp dword [eax], edi
je 0x416928
xor esi, esi
cmp esi, 0x28
jge 0x416928
mov ecx, dword [eax]
mov edx, dword [ebx + esi*4 + 0x1eb4]
cmp ecx, edx
je 0x416925
mov dword [ecx + edi*4 + 0x68], edx
inc edi
inc esi
jmp 0x41690e
inc dword [ebp - 0x234]
jmp 0x4168f0
lea ecx, [ebp - 0x270]
call fcn.00451e6c
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 2
call fcn.004720f1
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x1f6c]
call fcn.0040c475
xor esi, esi
cmp dword [ebx + 0x21a8], esi
jne 0x416994
cmp dword [0x4db254], esi
je 0x416994
cmp dword [ebx + 0x2288], esi
jne 0x416994
push 5
lea ecx, [ebx + 0x74]
call fcn.0046e7d7
push 0xffff
mov ecx, ebx
call fcn.0046e63b
cmp eax, esi
je 0x416994
push esi
mov ecx, eax
call fcn.0046e7d7
mov eax, dword [ebp - 0x244]
cmp eax, esi
jl 0x4169aa
mov ecx, dword [ebx + 0x1eb4]
mov dword [ecx + 0x1ec], eax
lea ecx, [ebp - 0x26c]
call fcn.0046f568
push 0x10
mov byte [ebp - 4], 0x1b
call fcn.0046788f
pop ecx
mov dword [ebp - 0x230], eax
cmp eax, esi
mov byte [ebp - 4], 0x1c
je 0x416a01
mov edi, dword [ebx + 0x1f6c]
lea eax, [ebp - 0x23c]
push eax
call fcn.0040d20b
mov byte [ebp - 4], 0x1d
mov eax, dword [eax]
or dword [ebp - 0x22c], 4
push 0x3042
push eax
push dword [ebp - 0x230]
call fcn.00404195
mov esi, eax
mov dword [ebp - 4], 0x1b
test byte [ebp - 0x22c], 4
je 0x416a1f
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
call fcn.0040174a
mov eax, dword [ebx + 0x1f6c]
mov edi, dword [eax + 0x68]
mov eax, dword [eax + 0x6c]
mov dword [ebp - 0x254], eax
mov eax, esi
call fcn.00404487
xor ecx, ecx
cmp eax, edi
jne 0x416a42
cmp edx, ecx
je 0x416a65
mov eax, dword [ebx + 0x1f6c]
mov ecx, dword [eax + 0x68]
mov eax, dword [eax + 0x6c]
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x258]
mov dword [ebp - 0x258], ecx
call fcn.0040443c
call fcn.004042fb
test esi, esi
je 0x416a77
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0x1a
jmp 0x416be5
mov byte [ebp - 4], 2
call fcn.0046f57e
xor esi, esi
mov dword [ebp - 0x22c], esi
mov ecx, dword [ebp + 8]
xor eax, eax
mov eax, ecx
cmp esi, eax
jge 0x416e37
cmp dword [ebp - 0x264], 0
jne 0x416e37
lea edi, [ebx + esi*4 + 0x1eb4]
mov eax, dword [edi]
test eax, eax
jne 0x416e2f
push 0xb20
call fcn.0046788f
pop ecx
mov dword [ebp - 0x230], eax
test eax, eax
mov byte [ebp - 4], 0x24
je 0x416c44
push eax
call fcn.004272fe
jmp 0x416c46
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 0x416c61
call fcn.00429064
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 0x4b578c
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.00461705
pop ecx
pop ecx
lea ecx, [ebp - 0x23c]
push str.GR_OtherGRI
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x25
call fcn.00404da1
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.004720a6
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
call fcn.0040174a
mov byte [ebp - 4], 0x29
mov ecx, dword [ebp - 0x260]
add ecx, 0xfffffff0
call fcn.0040174a
push 1
lea eax, [ebp - 0x258]
push eax
lea esi, [ebp - 0x270]
call fcn.00451de4
xor edx, edx
xor esi, esi
cmp edx, dword [ebp + 8]
jge 0x416d63
mov eax, dword [edi]
mov ecx, dword [ebx + edx*4 + 0x1eb4]
cmp eax, ecx
je 0x416d60
mov dword [eax + esi*4 + 0x68], ecx
inc esi
inc edx
jmp 0x416d49
lea ecx, [ebp - 0x270]
call fcn.00451e6c
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 2
call fcn.004720f1
mov ebx, dword [edi]
call fcn.0043ea12
xor esi, esi
cmp eax, esi
jne 0x416da5
cmp dword [0x4db280], esi
je 0x416d99
mov eax, dword [edi]
call fcn.004172b2
mov dword [edi], esi
mov dword [ebp - 0x264], 1
cmp dword [ebp - 0x264], esi
jne 0x416e02
mov eax, dword [edi]
call fcn.0043f79b
mov ecx, dword [ebp - 0x244]
xor esi, esi
cmp ecx, esi
jl 0x416e19
mov eax, dword [ebp - 0x25c]
mov eax, dword [eax + 0x1f6c]
call fcn.0040c6d1
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 0x416e02
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 0x416bf6
mov eax, dword [edi]
push esi
call fcn.0043fc33
mov eax, dword [edi]
push esi
push esi
push 0x8dc
push dword [eax + 0x20]
jmp 0x416dfc
mov dword [eax + 0x1f0], esi
jmp 0x416e08
push dword [ebx + 0x1f7c]
and dword [ebp - 0x264], 0
lea eax, [ebp - 0x23c]
push eax
call fcn.00461705
pop ecx
pop ecx
lea ecx, [ebp - 0x230]
push str.GR_OtherGRI
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x2a
call fcn.00404da1
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.004720a6
mov ecx, dword [ebp - 0x230]
add ecx, 0xfffffff0
call fcn.0040174a
mov byte [ebp - 4], 0x2e
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
call fcn.0040174a
push 1
lea eax, [ebp - 0x278]
push eax
lea esi, [ebp - 0x270]
call fcn.00451de4
and dword [ebp - 0x22c], 0
mov eax, dword [ebp - 0x22c]
cmp eax, 0x28
jge 0x416f01
lea edx, [ebx + eax*4 + 0x1eb4]
cmp dword [edx], 0
je 0x416ef9
inc dword [ebp - 0x264]
xor esi, esi
xor edi, edi
cmp esi, 0x28
jge 0x416ef9
mov eax, dword [edx]
mov ecx, dword [ebx + esi*4 + 0x1eb4]
cmp eax, ecx
je 0x416ef6
mov dword [eax + edi*4 + 0x68], ecx
inc edi
inc esi
jmp 0x416edf
inc dword [ebp - 0x22c]
jmp 0x416ebe
mov edx, dword [ebp - 0x264]
mov eax, dword [ebx + 0x1f6c]
call fcn.0040c475
lea ecx, [ebp - 0x270]
call fcn.00451e6c
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 2
call fcn.004720f1
mov ecx, dword [ebp - 0x238]
add ecx, 0xfffffff0
call fcn.0040174a
or dword [ebp - 4], 0xffffffff
call fcn.0046f57e
call fcn.0048d9ad
ret 4