Function at 0x7d00f860
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x998
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
xor ebx, ebx
push 0x460
push 0x40
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
call edi
mov esi, eax
cmp esi, ebx
je 0x7d00fc21
push 0x208
push 0x40
call edi
mov edi, eax
cmp edi, ebx
mov dword [ebp - 8], edi
jne 0x7d00f8b1
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x7d00fc21
cmp esi, dword [0x7d04f324]
jbe 0x7d00f8bf
mov dword [0x7d04f324], esi
or dword [esi + 0x20], 0xffffffff
or dword [esi + 0x40], 0xffffffff
test byte [ebp + 0x14], 1
mov dword [esi], esi
mov dword [esi + 0xc], 0x504a
je 0x7d00f8da
or dword [esi + 0x10], 8
mov eax, dword [ebp + 0x14]
and eax, 0x8000
or dword [esi + 0x10], eax
mov eax, dword [0x7d04f320]
mov dword [esi + 4], eax
mov eax, dword [0x7d04f320]
cmp eax, ebx
je 0x7d00f8f9
mov dword [eax + 8], esi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x100
push dword [ebp + 8]
mov dword [0x7d04f320], esi
push edi
call ebx
push 0x104
lea eax, [esi + 0x258]
push edi
push eax
call ebx
push 0x5c
push edi
call fcn.7d017a75
test eax, eax
mov dword [ebp - 4], eax
jne 0x7d00f942
push 0x3a
push edi
call fcn.7d017a75
test eax, eax
mov dword [ebp - 4], eax
jne 0x7d00f942
mov dword [ebp - 4], edi
jmp 0x7d00f946
add dword [ebp - 4], 2
push 0x2e
push dword [ebp - 4]
call fcn.7d017a75
mov edi, eax
test edi, edi
jne 0x7d00f963
mov edi, dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2]
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 8]
sar eax, 1
mov dword [esi + 0x250], eax
mov eax, edi
sub eax, dword [ebp - 8]
sar eax, 1
mov dword [esi + 0x254], eax
cmp word [edi], 0
jne 0x7d00f995
push dword [0x7d04bd68]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x7d00f9f3
push dword [0x7d04bd58]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x7d00f9e6
push dword [0x7d04bd5c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x7d00f9e6
push dword [0x7d04bd60]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x7d00f9e6
push dword [0x7d04bd68]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x7d00fc01
mov dword [ebp - 0xc], 1
jmp 0x7d00f9f3
push dword [0x7d04bd68]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
test byte [ebp + 0x14], 2
jne 0x7d00fb1e
cmp dword [ebp - 0xc], 0
jne 0x7d00fc2a
mov eax, dword [esi + 0x250]
push 0xffffffffffffffff
lea eax, [esi + eax*2 + 0x258]
push eax
mov eax, dword [0x7d04bd68]
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_GetProfileIntW]
cmp eax, 0xffffffff
mov dword [esi + 0x20], eax
je 0x7d00fc2a
or dword [esi + 0x10], 0x60
push 0x104
push dword [ebp + 8]
lea eax, [esi + 0x48]
push eax
call ebx
xor edi, edi
push edi
push esi
call fcn.7d010444
cmp dword [ebp + 0xc], edi
je 0x7d00fa78
push dword [ebp + 0xc]
lea eax, [esi + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [esi + 0x10]
push edi
and al, 0x7f
push esi
or al, 1
mov dword [esi + 0x10], eax
call fcn.7d0105e2
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], edi
jne 0x7d00fc01
cmp dword [ebp - 0xc], edi
jne 0x7d00fc01
cmp dword [ebp + 0x10], 0xffffffff
je 0x7d00fc01
push edi
lea eax, [ebp - 0x30c]
push 0x292
push eax
push 1
push esi
call sym.SHELL32.dll_PifMgr_GetProperties
test eax, eax
je 0x7d00fc01
cmp dword [ebp - 0x14], edi
jne 0x7d00fac3
test byte [ebp - 0x309], 4
je 0x7d00fc01
push edi
lea eax, [ebp - 0x998]
push 0x68a
push eax
push 0xc
push esi
call sym.SHELL32.dll_PifMgr_GetProperties
test eax, eax
je 0x7d00fc01
push dword [ebp + 0x14]
lea eax, [ebp - 0x998]
push dword [ebp - 0x10]
push dword [ebp + 8]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x30c]
push eax
push esi
call fcn.7d018454
test eax, eax
jne 0x7d00fc01
cmp dword [ebp - 0x14], edi
jne 0x7d00fbd7
test byte [ebp - 0x309], 4
je 0x7d00fbd7
push dword [ebp - 4]
and byte [esi + 0x10], 0x7f
mov dword [ebp - 0x14], 1
call fcn.7d00f2a4
cmp dword [ebp - 0x10], 0
jne 0x7d00fb49
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.WINDOWSPIF
push dword [ebp - 8]
call edi
jmp 0x7d00fb4f
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ax, word [str._DEFAULT.PIF]
test ax, ax
je 0x7d00fb9e
cmp ax, 0x5f
jne 0x7d00fb8d
mov eax, dword [0x7d04b860]
push str._DEFAULT.PIF
lea eax, [eax*2 + str.WINDOWSPIF]
push eax
call edi
lea ebx, [esi + 0x44]
push ebx
push str.WINDOWSPIF
call fcn.7d00f76f
cmp dword [ebx], 2
mov dword [esi + 0x40], eax
jne 0x7d00fb9e
push ebx
jmp 0x7d00fb91
lea eax, [esi + 0x44]
push eax
push str._DEFAULT.PIF
call fcn.7d00f76f
mov dword [esi + 0x40], eax
cmp dword [esi + 0x40], 0xffffffff
je 0x7d00fbb5
or byte [esi + 0x11], 0x20
lea eax, [esi + 0x48]
push eax
push str._DEFAULT.PIF
call edi
jmp 0x7d00fbc9
or word [esi + 0x10], 0x1040
cmp dword [esi + 0x44], 2
jne 0x7d00fbc9
and word [str._DEFAULT.PIF], 0
push dword [ebp - 8]
lea eax, [esi + 0x48]
push eax
call edi
jmp 0x7d00fa44
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
cmp ax, 0x411
jne 0x7d00fc01
lea eax, [ebp - 0x74]
push str.DOSIME
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
lea eax, [ebp - 0x78]
push 0x58
push eax
push 0xa
push esi
call sym.SHELL32.dll_PifMgr_SetProperties
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
cmp dword [ebp - 0x18], eax
jne 0x7d00fc1a
cmp dword [esi + 0x1c], eax
je 0x7d00fc1a
mov eax, esi
jmp 0x7d00fc23
push eax
push esi
call sym.SHELL32.dll_PifMgr_CloseProperties
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
or byte [esi + 0x10], 0x80
cmp dword [ebp - 0xc], 0
lea edi, [esi + 0x44]
mov dword [edi], 2
je 0x7d00fc45
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jne 0x7d00fc67
push 0x102
lea eax, [esi + 0x4c]
push dword [ebp - 4]
mov dword [esi + 0x48], 0x5c002e
push eax
call ebx
lea eax, [esi + 0x48]
push edi
push eax
call fcn.7d00f76f
mov dword [esi + 0x40], eax
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
je 0x7d00fcb1
cmp dword [edi], 2
jne 0x7d00fce6
push edi
push eax
call fcn.7d00f76f
cmp eax, 0xffffffff
mov dword [esi + 0x40], eax
jne 0x7d00fcb1
mov eax, dword [ebp - 8]
cmp word [eax + 2], 0x3a
jne 0x7d00fcb1
push 4
push eax
lea eax, [ebp - 0x20]
push eax
call ebx
and word [ebp - 0x1a], 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x7d00fcb1
mov dword [ebp - 0x10], 1
cmp dword [edi], 2
jne 0x7d00fce6
push dword [ebp - 4]
call fcn.7d00f2a4
push edi
push str.WINDOWSPIF
call fcn.7d00f76f
cmp eax, 0xffffffff
mov dword [esi + 0x40], eax
je 0x7d00fcd5
or byte [esi + 0x11], 8
cmp dword [edi], 2
jne 0x7d00fce6
push edi
push dword [ebp - 4]
call fcn.7d00f76f
mov dword [esi + 0x40], eax
cmp dword [esi + 0x40], 0xffffffff
jne 0x7d00fa44
cmp dword [edi], 2
jne 0x7d00fc01
cmp dword [ebp - 0xc], 0
je 0x7d00fb1e
jmp 0x7d00fc01