Function at 0x4161b9
Capabilities:
Get disk information

Disassembly:
push 0x298
mov eax, 0x4a85db
call fcn.0048e271
mov ebx, ecx
xor esi, esi
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x22c], esi
call fcn.0046fe4a
mov dword [ebp - 4], esi
mov byte [ebp - 4], 1
call fcn.0046e7df
push eax
lea ecx, [ebp - 0x238]
call fcn.00401764
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 0x416fd1
mov ecx, dword [ebx + 0x1f6c]
mov eax, dword [ecx + 0x68]
or eax, dword [ecx + 0x6c]
je 0x416fd1
push ecx
call fcn.0040dff2
cmp eax, esi
jne 0x416fd1
mov eax, dword [ebx + 0x1eb4]
cmp eax, esi
je 0x41625f
cmp dword [eax + 0xaec], esi
jne 0x416fd1
mov edi, dword [ebx + 0x1f6c]
mov eax, edi
call fcn.0040e120
test eax, eax
je 0x4162a4
lea eax, [ebp - 0x24c]
push eax
call fcn.0040d254
mov byte [ebp - 4], 3
mov ecx, eax
mov dword [ebp - 0x22c], 1
call fcn.0045c5b9
or eax, edx
jne 0x4162a4
cmp dword [ebx + 0x1f88], esi
mov byte [ebp - 0x245], 1
je 0x4162ab
mov byte [ebp - 0x245], 0
mov dword [ebp - 4], 2
test byte [ebp - 0x22c], 1
je 0x4162d0
mov ecx, dword [ebp - 0x24c]
and dword [ebp - 0x22c], 0xfffffffe
add ecx, 0xfffffff0
call fcn.0040174a
cmp byte [ebp - 0x245], 0
je 0x4162e6
mov edx, dword [ebx + 0x1f6c]
xor ecx, ecx
call fcn.0040c4a1
mov eax, dword [ebx + 0x1f6c]
call fcn.0040e120
test eax, eax
jne 0x416314
cmp dword [0x4db238], esi
jne 0x416305
cmp dword [ebx + 0x2388], esi
je 0x416314
mov ecx, ebx
call fcn.00419dc8
cmp eax, esi
je 0x416fd1
mov eax, dword [ebx + 0x1f6c]
call fcn.0040e120
test eax, eax
jne 0x4166ee
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x24c], esi
call fcn.0046fe4a
push 0x10
mov byte [ebp - 4], 5
call fcn.00468149
pop ecx
mov dword [ebp - 0x234], eax
cmp eax, esi
mov byte [ebp - 4], 6
je 0x41638a
mov edi, dword [ebx + 0x1f6c]
lea eax, [ebp - 0x260]
push eax
call fcn.0040d254
mov byte [ebp - 4], 7
mov eax, dword [eax]
or dword [ebp - 0x22c], 2
push 0x3042
push eax
push dword [ebp - 0x234]
call fcn.004041c7
mov dword [ebp - 0x244], eax
jmp 0x416390
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 0x4163c1
mov ecx, dword [ebp - 0x260]
and dword [ebp - 0x22c], 0xfffffffd
add ecx, 0xfffffff0
call fcn.0040174a
mov eax, dword [ebp - 0x244]
call fcn.004044b9
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 0x4163f2
cmp edx, eax
je 0x416533
cmp dword [ecx + 0x34], 0
lea eax, [ebp - 0x23c]
je 0x416411
push 0x571
push eax
call fcn.00461b1e
pop ecx
pop ecx
mov byte [ebp - 4], 9
jmp 0x416422
push 0x4cd
push eax
call fcn.00461b1e
pop ecx
pop ecx
mov byte [ebp - 4], 0xa
push eax
mov esi, ebx
call fcn.0041fd12
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.0040d254
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.004018c1
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 0x4164ef
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.0040446e
mov ecx, ebx
call fcn.0041469d
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x234]
add ecx, 0xfffffff0
call fcn.0040174a
jmp 0x416539
mov esi, dword [ebp - 0x244]
call fcn.0040432d
test esi, esi
je 0x41654b
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 2
call fcn.0046fe60
mov edi, dword [ebx + 0x1f6c]
cmp dword [edi + 0x378], 0
jne 0x4166ee
call fcn.0040c27b
mov dword [ebp - 0x244], eax
jmp 0x4166f5
or dword [ebp - 0x244], 0xffffffff
mov ecx, dword [ebx + 0x1f6c]
mov eax, ecx
call fcn.0040e120
test eax, eax
je 0x416fd1
cmp dword [ecx + 0x124], 0
je 0x416730
call fcn.0040e077
imul eax, eax, 0xa
cmp dword [ebp + 8], eax
jle 0x41673b
mov ecx, dword [ebx + 0x1f6c]
call fcn.0040e077
imul eax, eax, 0xa
jmp 0x416738
push 0xa
pop eax
cmp dword [ebp + 8], eax
jle 0x41673b
mov dword [ebp + 8], eax
lea edi, [ebx + 0x1f7c]
push dword [edi]
call fcn.00458eca
pop ecx
push dword [edi]
mov esi, eax
call fcn.00458e6d
pop ecx
push 0x14
pop edi
mov ecx, ebx
mov dword [ebp - 0x24c], eax
sub edi, esi
call fcn.00419dc8
xor ecx, ecx
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x234], ecx
xor eax, eax
cmp eax, 0x28
jge 0x41678c
cmp dword [ebx + eax*4 + 0x1eb4], ecx
je 0x416789
inc dword [ebp - 0x234]
inc eax
jmp 0x416775
cmp dword [0x4db238], ecx
jne 0x41679c
cmp dword [ebx + 0x2388], ecx
je 0x4167c7
push 0x14
pop esi
cmp dword [ebp - 0x24c], esi
jge 0x4167c7
push dword [ebx + 0x1f7c]
call fcn.00459f0e
test eax, eax
pop ecx
jl 0x4167c7
mov ecx, esi
sub ecx, dword [ebp - 0x24c]
cmp eax, ecx
jge 0x4167c5
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 0x4167e1
mov eax, ecx
cmp eax, dword [ebp + 8]
jge 0x4167ee
cmp edi, ecx
jl 0x4167f1
mov edi, ecx
jmp 0x4167f1
mov edi, dword [ebp + 8]
test edi, edi
jg 0x4167f8
xor edi, edi
inc edi
cmp edi, dword [ebp + 8]
jge 0x416800
mov dword [ebp + 8], edi
cmp dword [ebp + 8], 0
jge 0x41680d
mov dword [ebp + 8], 1
mov eax, dword [ebx + 0x1f6c]
call fcn.0040e157
cmp dword [ebp + 8], eax
jle 0x416820
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jg 0x4168c4
mov edi, dword [ebx + 0x1f6c]
lea eax, [ebp - 0x24c]
push eax
call fcn.0040d03c
lea eax, [ebp - 0x24c]
push eax
mov byte [ebp - 4], 0x12
push dword [ebx + 0x1f6c]
xor ecx, ecx
call fcn.0040c74d
mov edi, dword [ebx + 0x1f6c]
lea eax, [ebp - 0x23c]
push eax
call fcn.0040d72e
mov esi, eax
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x13
mov edi, dword [ebx + 0x1f6c]
push eax
call fcn.0040d6af
push esi
mov byte [ebp - 4], 0x14
mov edi, dword [ebx + 0x1f6c]
push eax
call fcn.0040c9c4
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 0x4169ef
mov eax, dword [ebx + 0x1f6c]
mov esi, dword [ebp + 8]
cmp esi, dword [eax + 0x1320]
jge 0x4169ef
test esi, esi
jle 0x4169ef
cmp esi, 0x28
jge 0x416915
lea edi, [ebx + esi*4 + 0x1eb4]
mov ecx, dword [edi]
test ecx, ecx
je 0x416912
push 1
call fcn.00444051
mov ecx, dword [edi]
and dword [edi], 0
test ecx, ecx
je 0x416912
mov eax, dword [ecx]
push 1
call dword [eax + 4]
inc esi
jmp 0x4168e9
push dword [ebx + 0x1f7c]
lea eax, [ebp - 0x23c]
push eax
call fcn.00461d62
pop ecx
pop ecx
lea ecx, [ebp - 0x230]
push str.GR_OtherGRI
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x15
call fcn.00404dd4
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.004728af
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.00452256
and dword [ebp - 0x234], 0
cmp dword [ebp - 0x234], 0x28
jge 0x4169d5
mov eax, dword [ebp - 0x234]
lea eax, [ebx + eax*4 + 0x1eb4]
xor edi, edi
cmp dword [eax], edi
je 0x4169cd
xor esi, esi
cmp esi, 0x28
jge 0x4169cd
mov ecx, dword [eax]
mov edx, dword [ebx + esi*4 + 0x1eb4]
cmp ecx, edx
je 0x4169ca
mov dword [ecx + edi*4 + 0x68], edx
inc edi
inc esi
jmp 0x4169b3
inc dword [ebp - 0x234]
jmp 0x416995
lea ecx, [ebp - 0x270]
call fcn.004522de
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 2
call fcn.004728fa
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x1f6c]
call fcn.0040c4be
xor esi, esi
cmp dword [ebx + 0x21a8], esi
jne 0x416a39
cmp dword [0x4db254], esi
je 0x416a39
cmp dword [ebx + 0x2288], esi
jne 0x416a39
push 5
lea ecx, [ebx + 0x74]
call fcn.0046f0b5
push 0xffff
mov ecx, ebx
call fcn.0046ef19
cmp eax, esi
je 0x416a39
push esi
mov ecx, eax
call fcn.0046f0b5
mov eax, dword [ebp - 0x244]
cmp eax, esi
jl 0x416a4f
mov ecx, dword [ebx + 0x1eb4]
mov dword [ecx + 0x1ec], eax
lea ecx, [ebp - 0x26c]
call fcn.0046fe4a
push 0x10
mov byte [ebp - 4], 0x1b
call fcn.00468149
pop ecx
mov dword [ebp - 0x230], eax
cmp eax, esi
mov byte [ebp - 4], 0x1c
je 0x416aa6
mov edi, dword [ebx + 0x1f6c]
lea eax, [ebp - 0x23c]
push eax
call fcn.0040d254
mov byte [ebp - 4], 0x1d
mov eax, dword [eax]
or dword [ebp - 0x22c], 4
push 0x3042
push eax
push dword [ebp - 0x230]
call fcn.004041c7
mov esi, eax
mov dword [ebp - 4], 0x1b
test byte [ebp - 0x22c], 4
je 0x416ac4
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.004044b9
xor ecx, ecx
cmp eax, edi
jne 0x416ae7
cmp edx, ecx
je 0x416b0a
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.0040446e
call fcn.0040432d
test esi, esi
je 0x416b1c
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0x1a
jmp 0x416c8a
mov byte [ebp - 4], 2
call fcn.0046fe60
xor esi, esi
mov dword [ebp - 0x22c], esi
mov ecx, dword [ebp + 8]
xor eax, eax
mov eax, ecx
cmp esi, eax
jge 0x416edc
cmp dword [ebp - 0x264], 0
jne 0x416edc
lea edi, [ebx + esi*4 + 0x1eb4]
mov eax, dword [edi]
test eax, eax
jne 0x416ed4
push 0xb20
call fcn.00468149
pop ecx
mov dword [ebp - 0x230], eax
test eax, eax
mov byte [ebp - 4], 0x24
je 0x416ce9
push eax
call fcn.0042755f
jmp 0x416ceb
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 0x416d06
call fcn.004292c5
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.00461d62
pop ecx
pop ecx
lea ecx, [ebp - 0x23c]
push str.GR_OtherGRI
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x25
call fcn.00404dd4
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.004728af
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.00452256
xor edx, edx
xor esi, esi
cmp edx, dword [ebp + 8]
jge 0x416e08
mov eax, dword [edi]
mov ecx, dword [ebx + edx*4 + 0x1eb4]
cmp eax, ecx
je 0x416e05
mov dword [eax + esi*4 + 0x68], ecx
inc esi
inc edx
jmp 0x416dee
lea ecx, [ebp - 0x270]
call fcn.004522de
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 2
call fcn.004728fa
mov ebx, dword [edi]
call fcn.0043ed7a
xor esi, esi
cmp eax, esi
jne 0x416e4a
cmp dword [0x4db280], esi
je 0x416e3e
mov eax, dword [edi]
call fcn.00417357
mov dword [edi], esi
mov dword [ebp - 0x264], 1
cmp dword [ebp - 0x264], esi
jne 0x416ea7
mov eax, dword [edi]
call fcn.0043fb03
mov ecx, dword [ebp - 0x244]
xor esi, esi
cmp ecx, esi
jl 0x416ebe
mov eax, dword [ebp - 0x25c]
mov eax, dword [eax + 0x1f6c]
call fcn.0040c71a
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 0x416ea7
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 0x416c9b
mov eax, dword [edi]
push esi
call fcn.0043ff9b
mov eax, dword [edi]
push esi
push esi
push 0x8dc
push dword [eax + 0x20]
jmp 0x416ea1
mov dword [eax + 0x1f0], esi
jmp 0x416ead
push dword [ebx + 0x1f7c]
and dword [ebp - 0x264], 0
lea eax, [ebp - 0x23c]
push eax
call fcn.00461d62
pop ecx
pop ecx
lea ecx, [ebp - 0x230]
push str.GR_OtherGRI
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x2a
call fcn.00404dd4
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.004728af
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.00452256
and dword [ebp - 0x22c], 0
mov eax, dword [ebp - 0x22c]
cmp eax, 0x28
jge 0x416fa6
lea edx, [ebx + eax*4 + 0x1eb4]
cmp dword [edx], 0
je 0x416f9e
inc dword [ebp - 0x264]
xor esi, esi
xor edi, edi
cmp esi, 0x28
jge 0x416f9e
mov eax, dword [edx]
mov ecx, dword [ebx + esi*4 + 0x1eb4]
cmp eax, ecx
je 0x416f9b
mov dword [eax + edi*4 + 0x68], ecx
inc edi
inc esi
jmp 0x416f84
inc dword [ebp - 0x22c]
jmp 0x416f63
mov edx, dword [ebp - 0x264]
mov eax, dword [ebx + 0x1f6c]
call fcn.0040c4be
lea ecx, [ebp - 0x270]
call fcn.004522de
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 2
call fcn.004728fa
mov ecx, dword [ebp - 0x238]
add ecx, 0xfffffff0
call fcn.0040174a
or dword [ebp - 4], 0xffffffff
call fcn.0046fe60
call fcn.0048e2cd
ret 4