Function at 0x445c40
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x468600]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 4]
mov edx, dword [eax + 0x38]
push ebx
add eax, 0x34
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [eax + 0xc]
mov dword [ebp - 0x174], ecx
mov ecx, dword [eax]
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x17c], 0x10
xor edi, edi
mov ebx, dword [ebp + edi - 0x118]
cmp ebx, dword [edi + 0x458808]
jne 0x445ce7
mov ebx, dword [ebp - 0x17c]
sub ebx, 4
add edi, 4
mov dword [ebp - 0x17c], ebx
cmp ebx, 4
jae 0x445c91
mov ecx, dword [0x4587f8]
mov edx, dword [0x4587fc]
mov esi, dword [0x458800]
mov edi, dword [0x458804]
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x154], ecx
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x150], edx
mov edx, dword [0x458808]
mov dword [ebp - 0x148], ecx
mov ecx, dword [0x45880c]
mov dword [ebp - 0x144], edx
mov edx, dword [0x458810]
mov dword [ebp - 0x140], ecx
mov ecx, dword [0x458814]
mov dword [ebp - 0x14c], esi
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x180], 0
mov ecx, 0x10
mov edx, 0x458fdc
mov esi, eax
jmp 0x445d50
mov edi, dword [esi]
cmp edi, dword [edx]
jne 0x445ef0
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x445d50
xor ecx, ecx
xor edx, edx
test ecx, ecx
sete dl
mov ecx, 0x10
mov esi, eax
mov dword [ebp - 0x19c], edx
mov edx, 0x458fcc
mov edi, dword [esi]
cmp edi, dword [edx]
jne 0x445f27
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x445d83
xor ecx, ecx
xor edx, edx
test ecx, ecx
sete dl
mov ecx, 0x10
mov dword [ebp - 0x18c], edx
mov edx, 0x458808
mov esi, dword [eax]
cmp esi, dword [edx]
jne 0x445f5e
sub ecx, 4
add edx, 4
add eax, 4
cmp ecx, 4
jae 0x445db4
xor ecx, ecx
xor edx, edx
test ecx, ecx
sete dl
mov eax, 0x10
xor ecx, ecx
mov dword [ebp - 0x194], edx
mov edx, dword [ebp + ecx - 0x118]
cmp edx, dword [ecx + 0x4587f8]
jne 0x445f95
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x445de2
mov dword [ebp - 0x190], 3
mov edi, dword [ebp - 0x174]
cmp dword [ebp - 0x18c], 0
jne 0x4463a3
mov esi, dword [ebp - 0x180]
push 0x12
push 0
shl esi, 4
lea esi, [ebp + esi - 0x154]
push 0
push esi
mov dword [ebp - 0x1a0], esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ecx, dword [ebp - 0x180]
mov ebx, eax
mov eax, 1
shl eax, cl
mov dword [ebp - 0x1a4], ebx
mov dword [ebp - 0x17c], 0
and eax, dword [ebp - 0x190]
je 0x44631b
jmp 0x445e70
mov edx, dword [ebp - 0x17c]
lea ecx, [ebp - 0x170]
push ecx
push edx
push esi
push 0
push ebx
mov dword [ebp - 0x170], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x445ea9
cmp eax, 0x103
je 0x44631b
push 0
lea eax, [ebp - 0x184]
push eax
push 0
push 0
lea ecx, [ebp - 0x170]
push ecx
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
mov eax, dword [ebp - 0x184]
push eax
mov edi, eax
call fcn.0040b46c
mov esi, eax
add esp, 4
test esi, esi
je 0x445fa4
push edi
push 0
push esi
call fcn.00429d20
add esp, 0xc
jmp 0x445fa6
movzx ecx, byte [esi]
movzx edi, byte [edx]
sub ecx, edi
jne 0x445f1c
movzx ecx, byte [esi + 1]
movzx edi, byte [edx + 1]
sub ecx, edi
jne 0x445f1c
movzx ecx, byte [esi + 2]
movzx edi, byte [edx + 2]
sub ecx, edi
jne 0x445f1c
movzx ecx, byte [esi + 3]
movzx edx, byte [edx + 3]
sub ecx, edx
sar ecx, 0x1f
or ecx, 1
jmp 0x445d6a
movzx ecx, byte [esi]
movzx edi, byte [edx]
sub ecx, edi
jne 0x445f53
movzx ecx, byte [esi + 1]
movzx edi, byte [edx + 1]
sub ecx, edi
jne 0x445f53
movzx ecx, byte [esi + 2]
movzx edi, byte [edx + 2]
sub ecx, edi
jne 0x445f53
movzx ecx, byte [esi + 3]
movzx edx, byte [edx + 3]
sub ecx, edx
sar ecx, 0x1f
or ecx, 1
jmp 0x445d9d
movzx ecx, byte [eax]
movzx esi, byte [edx]
sub ecx, esi
jne 0x445f8a
movzx ecx, byte [eax + 1]
movzx esi, byte [edx + 1]
sub ecx, esi
jne 0x445f8a
movzx ecx, byte [eax + 2]
movzx esi, byte [edx + 2]
sub ecx, esi
jne 0x445f8a
movzx ecx, byte [eax + 3]
movzx eax, byte [edx + 3]
sub ecx, eax
sar ecx, 0x1f
or ecx, 1
jmp 0x445dce
mov dword [ebp - 0x190], 1
jmp 0x445e0a
xor esi, esi
mov dword [esi], 5
mov ecx, dword [ebp - 0x184]
xor eax, eax
lea edx, [ebp - 0x134]
push edx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x184]
push eax
push ecx
push esi
lea edx, [ebp - 0x170]
push edx
push ebx
mov dword [ebp - 0x178], esi
mov dword [ebp - 0x134], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
test eax, eax
jne 0x446018
push esi
call fcn.0040b49b
add esp, 4
jmp 0x4462fb
mov eax, dword [ebp - 0x180]
sub eax, 0
je 0x446166
sub eax, 1
jne 0x4462ef
mov eax, dword [ebp - 0x178]
add eax, 4
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00443c20
lea ecx, [ebp - 0x108]
push 0x4591b8
push ecx
call fcn.004452d0
add esp, 0x10
push 0x104
lea edx, [ebp - 0x108]
push edx
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
test eax, eax
je 0x44608f
lea ecx, [ebp - 0x184]
push ecx
push 0x104
lea edx, [ebp - 0x108]
push edx
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameA]
mov eax, dword [ebp - 0x178]
xor esi, esi
push esi
lea ecx, [ebp - 0x188]
push ecx
mov ecx, dword [ebp - 0x174]
add eax, 4
push eax
call fcn.00445180
mov ebx, dword [ebp - 0x188]
cmp ebx, 0xffffffff
je 0x4462ef
mov edx, dword [ebp - 0x174]
mov eax, dword [edx + 4]
mov edi, dword [eax + 8]
test edi, edi
je 0x4462ef
test esi, esi
jne 0x446103
mov eax, dword [edi]
xor ecx, ecx
add eax, 0x34
lea esp, [esp]
mov edx, dword [eax]
cmp edx, ebx
je 0x446125
cmp edx, 0xffffffff
je 0x4460f4
inc ecx
add eax, 4
cmp ecx, 4
jb 0x4460e0
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x4460d1
test esi, esi
je 0x4462ef
push 0x14
call fcn.0040b46c
add esp, 4
test eax, eax
je 0x44612c
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov esi, eax
jmp 0x44612e
mov esi, 1
jmp 0x4460f7
xor esi, esi
mov eax, dword [ebp - 0x178]
mov cl, byte [ebp - 0x108]
add eax, 4
push eax
mov byte [esi], cl
call fcn.00443c40
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
mov dword [esi + 0x10], 0
mov edx, dword [edi]
add edx, 0x54
push esi
push edx
call fcn.00446550
add esp, 0xc
jmp 0x4462ef
cmp dword [ebp - 0x19c], 0
jne 0x44618e
mov eax, dword [ebp - 0x120]
push 0
push eax
lea ecx, [ebp - 0x198]
push ecx
call dword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
test eax, eax
je 0x44619a
jmp 0x4462ef
mov edx, dword [ebp - 0x120]
mov dword [ebp - 0x198], edx
mov eax, dword [ebp - 0x174]
mov ecx, dword [eax + 4]
mov esi, dword [ecx + 8]
test esi, esi
je 0x4462ef
mov edi, edi
mov edx, dword [esi]
mov eax, dword [ebp - 0x198]
cmp dword [edx + 0x44], eax
jne 0x4462e4
mov edi, dword [ebp - 0x178]
add edi, 4
push edi
call fcn.00443c40
mov ecx, dword [esi]
mov edx, dword [ebp - 0x174]
mov dword [ecx + 0x10], eax
mov eax, dword [edx + 4]
mov ecx, dword [eax + 0x34]
mov dword [esi + 0x24], ecx
mov edx, dword [eax + 0x38]
add esp, 4
add eax, 0x34
mov dword [esi + 0x28], edx
mov ecx, dword [eax + 8]
mov dword [esi + 0x2c], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x30], edx
mov eax, 0x10
mov ecx, 0x4587f8
lea edx, [ebp - 0x118]
lea esp, [esp]
mov ebx, dword [edx]
cmp ebx, dword [ecx]
jne 0x446226
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x446210
jmp 0x44625e
movzx eax, bl
movzx ebx, byte [ecx]
sub eax, ebx
jne 0x446252
movzx eax, byte [edx + 1]
movzx ebx, byte [ecx + 1]
sub eax, ebx
jne 0x446252
movzx eax, byte [edx + 2]
movzx ebx, byte [ecx + 2]
sub eax, ebx
jne 0x446252
movzx eax, byte [edx + 3]
movzx ecx, byte [ecx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
jne 0x4462e4
mov edx, dword [esi]
mov eax, dword [edx]
add eax, 0x28
push eax
lea ecx, [ebp - 0x188]
push ecx
mov ecx, dword [ebp - 0x174]
push edi
call fcn.00445180
mov eax, dword [esi]
cmp dword [eax], 0
je 0x4462b9
mov eax, dword [eax]
mov edx, dword [eax + 0x28]
mov ecx, dword [eax + 0x2c]
mov dword [eax + 4], ecx
mov dword [eax], edx
mov edx, dword [esi]
mov ecx, dword [edx]
mov edx, dword [ecx + 0x30]
lea eax, [ecx + 0x30]
mov dword [ecx + 0xc], edx
mov edx, dword [eax + 4]
add ecx, 0xc
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 0x40]
mov dword [eax + 0x20], edx
mov edi, dword [ebp - 0x188]
cmp edi, 0xffffffff
je 0x4462e4
mov edx, dword [esi]
xor eax, eax
lea ecx, [edx + 0x34]
jmp 0x4462d0
cmp dword [ecx], 0xffffffff
je 0x4462e0
inc eax
add ecx, 4
cmp eax, 4
jb 0x4462d0
jmp 0x4462e4
mov dword [edx + eax*4 + 0x34], edi
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x4461b0
mov esi, dword [ebp - 0x178]
mov ebx, dword [ebp - 0x1a4]
push esi
call fcn.0040b49b
mov edi, dword [ebp - 0x174]
mov esi, dword [ebp - 0x1a0]
add esp, 4
inc dword [ebp - 0x17c]
jmp 0x445e70
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [ebp - 0x180]
inc eax
cmp eax, 2
mov dword [ebp - 0x180], eax
jl 0x445e10
mov edx, dword [edi + 4]
mov esi, dword [edx + 8]
test esi, esi
je 0x446419
cmp dword [ebp - 0x18c], 0
jne 0x446373
mov eax, dword [edi + 4]
add eax, 0x34
mov edx, esi
sub edx, eax
mov ecx, 0x10
add edx, 0x24
mov ebx, dword [eax + edx]
cmp ebx, dword [eax]
jne 0x44638c
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x446361
cmp dword [ebp - 0x194], 0
je 0x44640e
mov eax, dword [esi]
cmp dword [eax + 0x54], 0
jne 0x44640e
mov ecx, dword [edi + 4]
mov eax, esi
mov esi, dword [esi + 0xc]
push eax
add ecx, 8
push ecx
call fcn.00445ac0
add esp, 8
jmp 0x446411
cmp dword [ebp - 0x194], 0
jne 0x446338
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x446419
jmp 0x4463c0
mov ecx, dword [0x458fcc]
mov dword [esi + 0x24], ecx
mov edx, dword [0x458fd0]
mov dword [esi + 0x28], edx
mov eax, dword [0x458fd4]
mov edx, dword [esi]
mov dword [esi + 0x2c], eax
mov ecx, dword [0x458fd8]
mov dword [esi + 0x30], ecx
mov eax, dword [edx + 0xc]
push eax
call fcn.00443c40
mov ecx, dword [esi]
mov dword [ecx + 0x10], eax
mov esi, dword [esi + 0xc]
add esp, 4
test esi, esi
jne 0x4463c0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427f57
mov esp, ebp
pop ebp
ret
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x446346
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427f57
mov esp, ebp
pop ebp
ret