Function at 0x415f36
Capabilities:
Get disk information

Disassembly:
push 0x298
mov eax, 0x4a6250
call fcn.0048bdf1
mov ebx, ecx
xor esi, esi
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x22c], esi
call fcn.0046d9dc
mov dword [ebp - 4], esi
mov byte [ebp - 4], 1
call fcn.0046c34c
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 0x416d4d
mov ecx, dword [ebx + 0x1f6c]
mov eax, dword [ecx + 0x60]
or eax, dword [ecx + 0x64]
je 0x416d4d
push ecx
call fcn.0040dd3c
cmp eax, esi
jne 0x416d4d
mov eax, dword [ebx + 0x1eb4]
cmp eax, esi
je 0x415fdc
cmp dword [eax + 0xaec], esi
jne 0x416d4d
mov edi, dword [ebx + 0x1f6c]
mov eax, edi
call fcn.0040de6a
test eax, eax
je 0x416021
lea eax, [ebp - 0x24c]
push eax
call fcn.0040cfa1
mov byte [ebp - 4], 3
mov ecx, eax
mov dword [ebp - 0x22c], 1
call fcn.0045a6d6
or eax, edx
jne 0x416021
cmp dword [ebx + 0x1f88], esi
mov byte [ebp - 0x245], 1
je 0x416028
mov byte [ebp - 0x245], 0
mov dword [ebp - 4], 2
test byte [ebp - 0x22c], 1
je 0x41604d
mov ecx, dword [ebp - 0x24c]
and dword [ebp - 0x22c], 0xfffffffe
add ecx, 0xfffffff0
call fcn.0040174a
cmp byte [ebp - 0x245], 0
je 0x416063
mov edx, dword [ebx + 0x1f6c]
xor ecx, ecx
call fcn.0040c2e6
mov eax, dword [ebx + 0x1f6c]
call fcn.0040de6a
test eax, eax
jne 0x416091
cmp dword [0x4d91fc], esi
jne 0x416082
cmp dword [ebx + 0x2388], esi
je 0x416091
mov ecx, ebx
call fcn.00419b39
cmp eax, esi
je 0x416d4d
mov eax, dword [ebx + 0x1f6c]
call fcn.0040de6a
test eax, eax
jne 0x41646b
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x24c], esi
call fcn.0046d9dc
push 0x10
mov byte [ebp - 4], 5
call fcn.00465cc3
pop ecx
mov dword [ebp - 0x234], eax
cmp eax, esi
mov byte [ebp - 4], 6
je 0x416107
mov edi, dword [ebx + 0x1f6c]
lea eax, [ebp - 0x260]
push eax
call fcn.0040cfa1
mov byte [ebp - 4], 7
mov eax, dword [eax]
or dword [ebp - 0x22c], 2
push 0x3042
push eax
push dword [ebp - 0x234]
call fcn.004040ec
mov dword [ebp - 0x244], eax
jmp 0x41610d
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 0x41613e
mov ecx, dword [ebp - 0x260]
and dword [ebp - 0x22c], 0xfffffffd
add ecx, 0xfffffff0
call fcn.0040174a
push dword [ebp - 0x244]
call fcn.004043c9
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 0x41616f
cmp edx, eax
je 0x4162b0
cmp dword [ecx + 0x30], 0
lea eax, [ebp - 0x23c]
je 0x41618e
push 0x571
push eax
call fcn.0045f91d
pop ecx
pop ecx
mov byte [ebp - 4], 9
jmp 0x41619f
push 0x4cd
push eax
call fcn.0045f91d
pop ecx
pop ecx
mov byte [ebp - 4], 0xa
push eax
mov esi, ebx
call fcn.0041f119
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.0040cfa1
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 0x41626c
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.0040437e
mov ecx, ebx
call fcn.0041441a
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x234]
add ecx, 0xfffffff0
call fcn.0040174a
jmp 0x4162b6
mov esi, dword [ebp - 0x244]
call fcn.00404245
test esi, esi
je 0x4162c8
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 2
call fcn.0046d9f2
mov edi, dword [ebx + 0x1f6c]
cmp dword [edi + 0x370], 0
jne 0x41646b
call fcn.0040c0c0
mov dword [ebp - 0x244], eax
jmp 0x416472
or dword [ebp - 0x244], 0xffffffff
mov ecx, dword [ebx + 0x1f6c]
mov eax, ecx
call fcn.0040de6a
test eax, eax
je 0x416d4d
cmp dword [ecx + 0x11c], 0
je 0x4164ad
call fcn.0040ddc1
imul eax, eax, 0xa
cmp dword [ebp + 8], eax
jle 0x4164b8
mov ecx, dword [ebx + 0x1f6c]
call fcn.0040ddc1
imul eax, eax, 0xa
jmp 0x4164b5
push 0xa
pop eax
cmp dword [ebp + 8], eax
jle 0x4164b8
mov dword [ebp + 8], eax
lea edi, [ebx + 0x1f7c]
push dword [edi]
call fcn.004573c2
pop ecx
push dword [edi]
mov esi, eax
call fcn.00457369
pop ecx
push 0x14
pop edi
mov ecx, ebx
mov dword [ebp - 0x24c], eax
sub edi, esi
call fcn.00419b39
xor ecx, ecx
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x234], ecx
xor eax, eax
cmp eax, 0x28
jge 0x416509
cmp dword [ebx + eax*4 + 0x1eb4], ecx
je 0x416506
inc dword [ebp - 0x234]
inc eax
jmp 0x4164f2
cmp dword [0x4d91fc], ecx
jne 0x416519
cmp dword [ebx + 0x2388], ecx
je 0x416544
push 0x14
pop esi
cmp dword [ebp - 0x24c], esi
jge 0x416544
push dword [ebx + 0x1f7c]
call fcn.00458402
test eax, eax
pop ecx
jl 0x416544
mov ecx, esi
sub ecx, dword [ebp - 0x24c]
cmp eax, ecx
jge 0x416542
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 0x41655e
mov eax, ecx
cmp eax, dword [ebp + 8]
jge 0x41656b
cmp edi, ecx
jl 0x41656e
mov edi, ecx
jmp 0x41656e
mov edi, dword [ebp + 8]
test edi, edi
jg 0x416575
xor edi, edi
inc edi
cmp edi, dword [ebp + 8]
jge 0x41657d
mov dword [ebp + 8], edi
cmp dword [ebp + 8], 0
jge 0x41658a
mov dword [ebp + 8], 1
mov eax, dword [ebx + 0x1f6c]
call fcn.0040dea1
cmp dword [ebp + 8], eax
jle 0x41659d
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jg 0x416641
mov edi, dword [ebx + 0x1f6c]
lea eax, [ebp - 0x24c]
push eax
call fcn.0040ce81
lea eax, [ebp - 0x24c]
push eax
mov byte [ebp - 4], 0x12
push dword [ebx + 0x1f6c]
xor ecx, ecx
call fcn.0040c592
mov edi, dword [ebx + 0x1f6c]
lea eax, [ebp - 0x23c]
push eax
call fcn.0040d478
mov esi, eax
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x13
mov edi, dword [ebx + 0x1f6c]
push eax
call fcn.0040d3f9
push esi
mov byte [ebp - 4], 0x14
mov edi, dword [ebx + 0x1f6c]
push eax
call fcn.0040c809
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 0x41676c
mov eax, dword [ebx + 0x1f6c]
mov esi, dword [ebp + 8]
cmp esi, dword [eax + 0x1318]
jge 0x41676c
test esi, esi
jle 0x41676c
cmp esi, 0x28
jge 0x416692
lea edi, [ebx + esi*4 + 0x1eb4]
mov ecx, dword [edi]
test ecx, ecx
je 0x41668f
push 1
call fcn.0044310b
mov ecx, dword [edi]
and dword [edi], 0
test ecx, ecx
je 0x41668f
mov eax, dword [ecx]
push 1
call dword [eax + 4]
inc esi
jmp 0x416666
push dword [ebx + 0x1f7c]
lea eax, [ebp - 0x23c]
push eax
call fcn.0045fb61
pop ecx
pop ecx
lea ecx, [ebp - 0x230]
push str.GR_OtherGRI
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x15
call fcn.00404ce0
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.00470341
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.00450c99
and dword [ebp - 0x234], 0
cmp dword [ebp - 0x234], 0x28
jge 0x416752
mov eax, dword [ebp - 0x234]
lea eax, [ebx + eax*4 + 0x1eb4]
xor edi, edi
cmp dword [eax], edi
je 0x41674a
xor esi, esi
cmp esi, 0x28
jge 0x41674a
mov ecx, dword [eax]
mov edx, dword [ebx + esi*4 + 0x1eb4]
cmp ecx, edx
je 0x416747
mov dword [ecx + edi*4 + 0x68], edx
inc edi
inc esi
jmp 0x416730
inc dword [ebp - 0x234]
jmp 0x416712
lea ecx, [ebp - 0x270]
call fcn.00450d21
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 2
call fcn.0047038c
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x1f6c]
call fcn.0040c303
xor esi, esi
cmp dword [ebx + 0x21a8], esi
jne 0x4167b6
cmp dword [0x4d9218], esi
je 0x4167b6
cmp dword [ebx + 0x2288], esi
jne 0x4167b6
push 5
lea ecx, [ebx + 0x74]
call fcn.0046cc2b
push 0xffff
mov ecx, ebx
call fcn.0046ca8f
cmp eax, esi
je 0x4167b6
push esi
mov ecx, eax
call fcn.0046cc2b
mov eax, dword [ebp - 0x244]
cmp eax, esi
jl 0x4167cc
mov ecx, dword [ebx + 0x1eb4]
mov dword [ecx + 0x1ec], eax
lea ecx, [ebp - 0x26c]
call fcn.0046d9dc
push 0x10
mov byte [ebp - 4], 0x1b
call fcn.00465cc3
pop ecx
mov dword [ebp - 0x230], eax
cmp eax, esi
mov byte [ebp - 4], 0x1c
je 0x416823
mov edi, dword [ebx + 0x1f6c]
lea eax, [ebp - 0x23c]
push eax
call fcn.0040cfa1
mov byte [ebp - 4], 0x1d
mov eax, dword [eax]
or dword [ebp - 0x22c], 4
push 0x3042
push eax
push dword [ebp - 0x230]
call fcn.004040ec
mov esi, eax
mov dword [ebp - 4], 0x1b
test byte [ebp - 0x22c], 4
je 0x416841
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
call fcn.0040174a
mov eax, dword [ebx + 0x1f6c]
mov edi, dword [eax + 0x60]
mov eax, dword [eax + 0x64]
push esi
mov dword [ebp - 0x254], eax
call fcn.004043c9
xor ecx, ecx
cmp eax, edi
jne 0x416863
cmp edx, ecx
je 0x416886
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.0040437e
call fcn.00404245
test esi, esi
je 0x416898
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0x1a
jmp 0x416a06
mov byte [ebp - 4], 2
call fcn.0046d9f2
xor esi, esi
mov dword [ebp - 0x22c], esi
mov ecx, dword [ebp + 8]
xor eax, eax
mov eax, ecx
cmp esi, eax
jge 0x416c58
cmp dword [ebp - 0x264], 0
jne 0x416c58
lea edi, [ebx + esi*4 + 0x1eb4]
mov eax, dword [edi]
test eax, eax
jne 0x416c50
push 0xb20
call fcn.00465cc3
pop ecx
mov dword [ebp - 0x230], eax
test eax, eax
mov byte [ebp - 4], 0x24
je 0x416a65
push eax
call fcn.00426a53
jmp 0x416a67
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 0x416a82
call fcn.004287b9
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 0x4b377c
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.0045fb61
pop ecx
pop ecx
lea ecx, [ebp - 0x23c]
push str.GR_OtherGRI
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x25
call fcn.00404ce0
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.00470341
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.00450c99
xor edx, edx
xor esi, esi
cmp edx, dword [ebp + 8]
jge 0x416b84
mov eax, dword [edi]
mov ecx, dword [ebx + edx*4 + 0x1eb4]
cmp eax, ecx
je 0x416b81
mov dword [eax + esi*4 + 0x68], ecx
inc esi
inc edx
jmp 0x416b6a
lea ecx, [ebp - 0x270]
call fcn.00450d21
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 2
call fcn.0047038c
mov ebx, dword [edi]
call fcn.0043de49
xor esi, esi
cmp eax, esi
jne 0x416bc6
cmp dword [0x4d9244], esi
je 0x416bba
mov eax, dword [edi]
call fcn.004170ce
mov dword [edi], esi
mov dword [ebp - 0x264], 1
cmp dword [ebp - 0x264], esi
jne 0x416c23
mov eax, dword [edi]
call fcn.0043ebd2
mov ecx, dword [ebp - 0x244]
xor esi, esi
cmp ecx, esi
jl 0x416c3a
mov eax, dword [ebp - 0x25c]
mov eax, dword [eax + 0x1f6c]
call fcn.0040c55f
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 0x416c23
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 0x416a17
mov eax, dword [edi]
push esi
call fcn.0043f06a
mov eax, dword [edi]
push esi
push esi
push 0x8dc
push dword [eax + 0x20]
jmp 0x416c1d
mov dword [eax + 0x1f0], esi
jmp 0x416c29
push dword [ebx + 0x1f7c]
and dword [ebp - 0x264], 0
lea eax, [ebp - 0x23c]
push eax
call fcn.0045fb61
pop ecx
pop ecx
lea ecx, [ebp - 0x230]
push str.GR_OtherGRI
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x2a
call fcn.00404ce0
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.00470341
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.00450c99
and dword [ebp - 0x22c], 0
mov eax, dword [ebp - 0x22c]
cmp eax, 0x28
jge 0x416d22
lea edx, [ebx + eax*4 + 0x1eb4]
cmp dword [edx], 0
je 0x416d1a
inc dword [ebp - 0x264]
xor esi, esi
xor edi, edi
cmp esi, 0x28
jge 0x416d1a
mov eax, dword [edx]
mov ecx, dword [ebx + esi*4 + 0x1eb4]
cmp eax, ecx
je 0x416d17
mov dword [eax + edi*4 + 0x68], ecx
inc edi
inc esi
jmp 0x416d00
inc dword [ebp - 0x22c]
jmp 0x416cdf
mov edx, dword [ebp - 0x264]
mov eax, dword [ebx + 0x1f6c]
call fcn.0040c303
lea ecx, [ebp - 0x270]
call fcn.00450d21
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 2
call fcn.0047038c
mov ecx, dword [ebp - 0x238]
add ecx, 0xfffffff0
call fcn.0040174a
or dword [ebp - 4], 0xffffffff
call fcn.0046d9f2
call fcn.0048be4d
ret 4