Function at 0x416005
Capabilities:
Get disk information

Disassembly:
push 0x298
mov eax, 0x4a76ff
call fcn.0048d081
mov ebx, ecx
xor esi, esi
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x22c], esi
call fcn.0046ec72
mov dword [ebp - 4], esi
mov byte [ebp - 4], 1
call fcn.0046d63c
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 0x416e1d
mov ecx, dword [ebx + 0x1f6c]
mov eax, dword [ecx + 0x60]
or eax, dword [ecx + 0x64]
je 0x416e1d
push ecx
call fcn.0040de67
cmp eax, esi
jne 0x416e1d
mov eax, dword [ebx + 0x1eb4]
cmp eax, esi
je 0x4160ab
cmp dword [eax + 0xaec], esi
jne 0x416e1d
mov edi, dword [ebx + 0x1f6c]
mov eax, edi
call fcn.0040df95
test eax, eax
je 0x4160f0
lea eax, [ebp - 0x24c]
push eax
call fcn.0040d0cc
mov byte [ebp - 4], 3
mov ecx, eax
mov dword [ebp - 0x22c], 1
call fcn.0045b82d
or eax, edx
jne 0x4160f0
cmp dword [ebx + 0x1f88], esi
mov byte [ebp - 0x245], 1
je 0x4160f7
mov byte [ebp - 0x245], 0
mov dword [ebp - 4], 2
test byte [ebp - 0x22c], 1
je 0x41611c
mov ecx, dword [ebp - 0x24c]
and dword [ebp - 0x22c], 0xfffffffe
add ecx, 0xfffffff0
call fcn.0040174a
cmp byte [ebp - 0x245], 0
je 0x416132
mov edx, dword [ebx + 0x1f6c]
xor ecx, ecx
call fcn.0040c319
mov eax, dword [ebx + 0x1f6c]
call fcn.0040df95
test eax, eax
jne 0x416160
cmp dword [0x4da238], esi
jne 0x416151
cmp dword [ebx + 0x2388], esi
je 0x416160
mov ecx, ebx
call fcn.00419c01
cmp eax, esi
je 0x416e1d
mov eax, dword [ebx + 0x1f6c]
call fcn.0040df95
test eax, eax
jne 0x41653a
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x24c], esi
call fcn.0046ec72
push 0x10
mov byte [ebp - 4], 5
call fcn.00466f9f
pop ecx
mov dword [ebp - 0x234], eax
cmp eax, esi
mov byte [ebp - 4], 6
je 0x4161d6
mov edi, dword [ebx + 0x1f6c]
lea eax, [ebp - 0x260]
push eax
call fcn.0040d0cc
mov byte [ebp - 4], 7
mov eax, dword [eax]
or dword [ebp - 0x22c], 2
push 0x3042
push eax
push dword [ebp - 0x234]
call fcn.004040ea
mov dword [ebp - 0x244], eax
jmp 0x4161dc
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 0x41620d
mov ecx, dword [ebp - 0x260]
and dword [ebp - 0x22c], 0xfffffffd
add ecx, 0xfffffff0
call fcn.0040174a
mov eax, dword [ebp - 0x244]
call fcn.004043dc
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 0x41623e
cmp edx, eax
je 0x41637f
cmp dword [ecx + 0x30], 0
lea eax, [ebp - 0x23c]
je 0x41625d
push 0x571
push eax
call fcn.00460bbf
pop ecx
pop ecx
mov byte [ebp - 4], 9
jmp 0x41626e
push 0x4cd
push eax
call fcn.00460bbf
pop ecx
pop ecx
mov byte [ebp - 4], 0xa
push eax
mov esi, ebx
call fcn.0041f564
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.0040d0cc
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 0x41633b
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.00404391
mov ecx, ebx
call fcn.004144e9
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x234]
add ecx, 0xfffffff0
call fcn.0040174a
jmp 0x416385
mov esi, dword [ebp - 0x244]
call fcn.00404250
test esi, esi
je 0x416397
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 2
call fcn.0046ec88
mov edi, dword [ebx + 0x1f6c]
cmp dword [edi + 0x370], 0
jne 0x41653a
call fcn.0040c0f3
mov dword [ebp - 0x244], eax
jmp 0x416541
or dword [ebp - 0x244], 0xffffffff
mov ecx, dword [ebx + 0x1f6c]
mov eax, ecx
call fcn.0040df95
test eax, eax
je 0x416e1d
cmp dword [ecx + 0x11c], 0
je 0x41657c
call fcn.0040deec
imul eax, eax, 0xa
cmp dword [ebp + 8], eax
jle 0x416587
mov ecx, dword [ebx + 0x1f6c]
call fcn.0040deec
imul eax, eax, 0xa
jmp 0x416584
push 0xa
pop eax
cmp dword [ebp + 8], eax
jle 0x416587
mov dword [ebp + 8], eax
lea edi, [ebx + 0x1f7c]
push dword [edi]
call fcn.0045836d
pop ecx
push dword [edi]
mov esi, eax
call fcn.00458314
pop ecx
push 0x14
pop edi
mov ecx, ebx
mov dword [ebp - 0x24c], eax
sub edi, esi
call fcn.00419c01
xor ecx, ecx
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x234], ecx
xor eax, eax
cmp eax, 0x28
jge 0x4165d8
cmp dword [ebx + eax*4 + 0x1eb4], ecx
je 0x4165d5
inc dword [ebp - 0x234]
inc eax
jmp 0x4165c1
cmp dword [0x4da238], ecx
jne 0x4165e8
cmp dword [ebx + 0x2388], ecx
je 0x416613
push 0x14
pop esi
cmp dword [ebp - 0x24c], esi
jge 0x416613
push dword [ebx + 0x1f7c]
call fcn.004593ad
test eax, eax
pop ecx
jl 0x416613
mov ecx, esi
sub ecx, dword [ebp - 0x24c]
cmp eax, ecx
jge 0x416611
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 0x41662d
mov eax, ecx
cmp eax, dword [ebp + 8]
jge 0x41663a
cmp edi, ecx
jl 0x41663d
mov edi, ecx
jmp 0x41663d
mov edi, dword [ebp + 8]
test edi, edi
jg 0x416644
xor edi, edi
inc edi
cmp edi, dword [ebp + 8]
jge 0x41664c
mov dword [ebp + 8], edi
cmp dword [ebp + 8], 0
jge 0x416659
mov dword [ebp + 8], 1
mov eax, dword [ebx + 0x1f6c]
call fcn.0040dfcc
cmp dword [ebp + 8], eax
jle 0x41666c
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jg 0x416710
mov edi, dword [ebx + 0x1f6c]
lea eax, [ebp - 0x24c]
push eax
call fcn.0040ceb4
lea eax, [ebp - 0x24c]
push eax
mov byte [ebp - 4], 0x12
push dword [ebx + 0x1f6c]
xor ecx, ecx
call fcn.0040c5c5
mov edi, dword [ebx + 0x1f6c]
lea eax, [ebp - 0x23c]
push eax
call fcn.0040d5a3
mov esi, eax
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x13
mov edi, dword [ebx + 0x1f6c]
push eax
call fcn.0040d524
push esi
mov byte [ebp - 4], 0x14
mov edi, dword [ebx + 0x1f6c]
push eax
call fcn.0040c83c
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 0x41683b
mov eax, dword [ebx + 0x1f6c]
mov esi, dword [ebp + 8]
cmp esi, dword [eax + 0x1318]
jge 0x41683b
test esi, esi
jle 0x41683b
cmp esi, 0x28
jge 0x416761
lea edi, [ebx + esi*4 + 0x1eb4]
mov ecx, dword [edi]
test ecx, ecx
je 0x41675e
push 1
call fcn.00443838
mov ecx, dword [edi]
and dword [edi], 0
test ecx, ecx
je 0x41675e
mov eax, dword [ecx]
push 1
call dword [eax + 4]
inc esi
jmp 0x416735
push dword [ebx + 0x1f7c]
lea eax, [ebp - 0x23c]
push eax
call fcn.00460e03
pop ecx
pop ecx
lea ecx, [ebp - 0x230]
push str.GR_OtherGRI
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x15
call fcn.00404cf6
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.0047160b
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.004517bc
and dword [ebp - 0x234], 0
cmp dword [ebp - 0x234], 0x28
jge 0x416821
mov eax, dword [ebp - 0x234]
lea eax, [ebx + eax*4 + 0x1eb4]
xor edi, edi
cmp dword [eax], edi
je 0x416819
xor esi, esi
cmp esi, 0x28
jge 0x416819
mov ecx, dword [eax]
mov edx, dword [ebx + esi*4 + 0x1eb4]
cmp ecx, edx
je 0x416816
mov dword [ecx + edi*4 + 0x68], edx
inc edi
inc esi
jmp 0x4167ff
inc dword [ebp - 0x234]
jmp 0x4167e1
lea ecx, [ebp - 0x270]
call fcn.00451844
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 2
call fcn.00471656
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x1f6c]
call fcn.0040c336
xor esi, esi
cmp dword [ebx + 0x21a8], esi
jne 0x416885
cmp dword [0x4da254], esi
je 0x416885
cmp dword [ebx + 0x2288], esi
jne 0x416885
push 5
lea ecx, [ebx + 0x74]
call fcn.0046dee1
push 0xffff
mov ecx, ebx
call fcn.0046dd45
cmp eax, esi
je 0x416885
push esi
mov ecx, eax
call fcn.0046dee1
mov eax, dword [ebp - 0x244]
cmp eax, esi
jl 0x41689b
mov ecx, dword [ebx + 0x1eb4]
mov dword [ecx + 0x1ec], eax
lea ecx, [ebp - 0x26c]
call fcn.0046ec72
push 0x10
mov byte [ebp - 4], 0x1b
call fcn.00466f9f
pop ecx
mov dword [ebp - 0x230], eax
cmp eax, esi
mov byte [ebp - 4], 0x1c
je 0x4168f2
mov edi, dword [ebx + 0x1f6c]
lea eax, [ebp - 0x23c]
push eax
call fcn.0040d0cc
mov byte [ebp - 4], 0x1d
mov eax, dword [eax]
or dword [ebp - 0x22c], 4
push 0x3042
push eax
push dword [ebp - 0x230]
call fcn.004040ea
mov esi, eax
mov dword [ebp - 4], 0x1b
test byte [ebp - 0x22c], 4
je 0x416910
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]
mov dword [ebp - 0x254], eax
mov eax, esi
call fcn.004043dc
xor ecx, ecx
cmp eax, edi
jne 0x416933
cmp edx, ecx
je 0x416956
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.00404391
call fcn.00404250
test esi, esi
je 0x416968
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0x1a
jmp 0x416ad6
mov byte [ebp - 4], 2
call fcn.0046ec88
xor esi, esi
mov dword [ebp - 0x22c], esi
mov ecx, dword [ebp + 8]
xor eax, eax
mov eax, ecx
cmp esi, eax
jge 0x416d28
cmp dword [ebp - 0x264], 0
jne 0x416d28
lea edi, [ebx + esi*4 + 0x1eb4]
mov eax, dword [edi]
test eax, eax
jne 0x416d20
push 0xb20
call fcn.00466f9f
pop ecx
mov dword [ebp - 0x230], eax
test eax, eax
mov byte [ebp - 4], 0x24
je 0x416b35
push eax
call fcn.00426eda
jmp 0x416b37
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 0x416b52
call fcn.00428c40
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 0x4b478c
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.00460e03
pop ecx
pop ecx
lea ecx, [ebp - 0x23c]
push str.GR_OtherGRI
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x25
call fcn.00404cf6
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.0047160b
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.004517bc
xor edx, edx
xor esi, esi
cmp edx, dword [ebp + 8]
jge 0x416c54
mov eax, dword [edi]
mov ecx, dword [ebx + edx*4 + 0x1eb4]
cmp eax, ecx
je 0x416c51
mov dword [eax + esi*4 + 0x68], ecx
inc esi
inc edx
jmp 0x416c3a
lea ecx, [ebp - 0x270]
call fcn.00451844
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 2
call fcn.00471656
mov ebx, dword [edi]
call fcn.0043e561
xor esi, esi
cmp eax, esi
jne 0x416c96
cmp dword [0x4da280], esi
je 0x416c8a
mov eax, dword [edi]
call fcn.0041719e
mov dword [edi], esi
mov dword [ebp - 0x264], 1
cmp dword [ebp - 0x264], esi
jne 0x416cf3
mov eax, dword [edi]
call fcn.0043f2ea
mov ecx, dword [ebp - 0x244]
xor esi, esi
cmp ecx, esi
jl 0x416d0a
mov eax, dword [ebp - 0x25c]
mov eax, dword [eax + 0x1f6c]
call fcn.0040c592
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 0x416cf3
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 0x416ae7
mov eax, dword [edi]
push esi
call fcn.0043f782
mov eax, dword [edi]
push esi
push esi
push 0x8dc
push dword [eax + 0x20]
jmp 0x416ced
mov dword [eax + 0x1f0], esi
jmp 0x416cf9
push dword [ebx + 0x1f7c]
and dword [ebp - 0x264], 0
lea eax, [ebp - 0x23c]
push eax
call fcn.00460e03
pop ecx
pop ecx
lea ecx, [ebp - 0x230]
push str.GR_OtherGRI
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x2a
call fcn.00404cf6
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.0047160b
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.004517bc
and dword [ebp - 0x22c], 0
mov eax, dword [ebp - 0x22c]
cmp eax, 0x28
jge 0x416df2
lea edx, [ebx + eax*4 + 0x1eb4]
cmp dword [edx], 0
je 0x416dea
inc dword [ebp - 0x264]
xor esi, esi
xor edi, edi
cmp esi, 0x28
jge 0x416dea
mov eax, dword [edx]
mov ecx, dword [ebx + esi*4 + 0x1eb4]
cmp eax, ecx
je 0x416de7
mov dword [eax + edi*4 + 0x68], ecx
inc edi
inc esi
jmp 0x416dd0
inc dword [ebp - 0x22c]
jmp 0x416daf
mov edx, dword [ebp - 0x264]
mov eax, dword [ebx + 0x1f6c]
call fcn.0040c336
lea ecx, [ebp - 0x270]
call fcn.00451844
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 2
call fcn.00471656
mov ecx, dword [ebp - 0x238]
add ecx, 0xfffffff0
call fcn.0040174a
or dword [ebp - 4], 0xffffffff
call fcn.0046ec88
call fcn.0048d0dd
ret 4