Function at 0x1004522
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1078
call fcn.01005060
mov eax, dword [0x10060d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x1c]
push edi
lea ecx, [ebp - 0x1078]
mov dword [ebp - 0xe70], eax
call fcn.010018b9
mov eax, dword [ebp + 0x10]
and eax, 0x10
push eax
lea ecx, [ebp - 0xe50]
call fcn.010025b7
mov eax, dword [ebp + 0x20]
and dword [ebp - 0xe68], 0
and dword [ebp - 0xe60], 0
mov dword [ebp - 0xe54], 1
mov dword [ebp - 0xe5c], eax
sub esi, eax
mov eax, dword [ebp + 0x10]
test dword [ebp - 0xe54], eax
je 0x1004639
mov eax, dword [ebp - 0xe5c]
mov edi, dword [esi + eax]
jmp 0x1004631
cmp edi, dword [ebp + 0x18]
jge 0x1004639
test byte [ebp - 0xe54], 9
jne 0x10045c8
mov eax, dword [ebx + edi*4]
and dword [ebp - 0xe64], 0
jmp 0x1004602
lea eax, [ebp - 0xe64]
push eax
lea eax, [ebp - 0xe68]
push eax
push dword [ebx + edi*4]
call fcn.0100343f
test eax, eax
je 0x100466f
cmp dword [ebp - 0xe64], 0
jne 0x10045fc
test byte [ebp - 0xe54], 1
je 0x100469b
mov eax, dword [ebp - 0xe68]
push dword [ebp - 0xe64]
lea ecx, [ebp - 0x1078]
push 0
push eax
push dword [ebp - 0xe54]
call fcn.01001fe7
test eax, eax
jne 0x10046ba
and dword [ebp - 0xe68], eax
mov eax, dword [ebp - 0xe5c]
inc edi
cmp edi, dword [eax]
jl 0x10045aa
shl dword [ebp - 0xe54], 1
inc dword [ebp - 0xe60]
add dword [ebp - 0xe5c], 4
cmp dword [ebp - 0xe60], 4
jb 0x100458d
cmp dword [ebp + 0xc], 1
jne 0x10046c2
call fcn.01003ce4
cmp eax, 0x4c7
jne 0x10046be
xor ebx, ebx
jmp 0x10046a0
lea ecx, [ebp - 0xe50]
call fcn.010025f7
lea ecx, [ebp - 0x1078]
call fcn.01002163
mov eax, 0xa0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01005019
leave
ret 0x1c
mov ebx, 0xa0
lea ecx, [ebp - 0xe50]
call fcn.010025f7
lea ecx, [ebp - 0x1078]
call fcn.01002163
mov eax, ebx
jmp 0x100468a
mov ebx, eax
jmp 0x10046a0
test eax, eax
jne 0x10046ba
lea eax, [ebp - 0xe6c]
push eax
lea eax, [ebp - 0xe58]
push eax
push dword [ebp - 0xe70]
lea ecx, [ebp - 0xe50]
call fcn.01002e14
mov ebx, eax
test ebx, ebx
jne 0x1004850
test ebx, ebx
je 0x1004707
cmp ebx, 5
je 0x10046fd
cmp ebx, 0x20
jne 0x1004850
test byte [ebp + 0x10], 0x20
je 0x1004850
test byte [ebp + 0x10], 0x40
je 0x10047f1
cmp dword [ebp - 0xe6c], 0
je 0x1004811
mov eax, dword [ebp - 0xe58]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1004727
sub eax, edx
sar eax, 1
lea esi, [eax + 0xa]
lea eax, [esi + esi]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x100484d
push dword [ebp - 0xe58]
push esi
push edi
call sub.msvcrt.dll_wcscpy_s
push 0x10011cc
push esi
push edi
call sub.msvcrt.dll_wcscat_s
add esp, 0x18
push 0x3de
lea eax, [ebp - 0x7d4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x10047b2
push dword [ebp - 0xe58]
push 0x10014cc
call fcn.010033f7
pop ecx
pop ecx
lea eax, [ebp - 0x1078]
push eax
push 1
push dword [ebp + 0x10]
lea eax, [ebp - 0x7d4]
push dword [ebp + 0xc]
push eax
call fcn.010044a8
mov ebx, eax
jmp 0x10047cd
mov eax, dword [0x10060f0]
inc dword [0x10060f0]
cmp eax, 0x64
jne 0x10047d4
push 0x10011d8
call fcn.010033f7
pop ecx
and dword [0x10060f0], 0
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x100482d
test byte [ebp + 0x10], 0x20
je 0x1004850
cmp ebx, 5
je 0x1004811
cmp ebx, 0x20
jne 0x1004850
jmp 0x1004811
lea eax, [ebp - 0x1078]
push eax
push dword [ebp - 0xe6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0xe58]
call fcn.010044a8
mov ebx, eax
test ebx, ebx
je 0x100482d
cmp ebx, 5
je 0x1004823
cmp ebx, 0x20
jne 0x10046eb
test byte [ebp + 0x10], 0x20
je 0x10046eb
lea eax, [ebp - 0xe6c]
push eax
lea eax, [ebp - 0xe58]
push eax
lea ecx, [ebp - 0xe50]
call fcn.01002d37
mov ebx, eax
jmp 0x10046eb
push 8
pop ebx
cmp ebx, 0x12
jne 0x10046a0
jmp 0x100466b