Function at 0x1006f3e0
Capabilities:
Get disk information
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x458]
sub esp, 0x458
push 0xffffffffffffffff
push 0x10140559
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x10199008]
xor eax, ebp
mov dword [ebp + 0x454], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x10], esi
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], ebx
lea ecx, [ebp + 0x18]
mov dword [ebp - 0x14], 0
call fcn.100057e0
mov dword [ebp - 4], 1
test esi, esi
jne 0x1006f453
lea eax, [ebp + 0x18]
mov ecx, ebx
push eax
call fcn.10005750
jmp 0x1006f837
push str.Kernel32.dll
lea ecx, [ebp - 0x58]
call fcn.10005790
mov byte [ebp - 4], 2
lea eax, [ebp - 0x58]
push eax
call fcn.1006d990
mov ecx, eax
call fcn.1006da50
mov esi, eax
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.10005700
push str.Psapi.dll
lea ecx, [ebp - 0x40]
call fcn.10005790
mov byte [ebp - 4], 3
lea eax, [ebp - 0x40]
push eax
call fcn.1006d990
mov ecx, eax
call fcn.1006da50
mov edi, eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.10005700
test edi, edi
je 0x1006f82c
test esi, esi
je 0x1006f82c
lea ecx, [ebp + 0x334]
call fcn.1006ba80
cmp dword [ebp + 0x338], 6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jb 0x1006f553
push str.QueryFullProcessImageNameW
push esi
call edi
mov esi, eax
test esi, esi
je 0x1006f553
push 0x412
lea eax, [ebp + 0x40]
push 0
push eax
call fcn.1010cca0
add esp, 0xc
mov dword [ebp + 0x3c], 0x208
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp + 0x40]
push eax
push 0
push dword [ebp - 0x10]
call esi
test eax, eax
je 0x1006f553
mov eax, dword [ebp + 0x3c]
cmp eax, 0x208
jae 0x1006f53a
add eax, eax
cmp eax, 0x412
jae 0x1006f86f
xor ecx, ecx
mov word [ebp + eax + 0x40], cx
lea eax, [ebp + 0x40]
push eax
call fcn.10005aa0
add esp, 4
lea ecx, [ebp + 0x18]
push eax
lea eax, [ebp + 0x40]
push eax
call fcn.100058a0
lea ecx, [ebp + 0x18]
call fcn.10005680
test al, al
je 0x1006f781
push str.GetProcessImageFileNameW
push dword [ebp - 0x24]
call edi
mov esi, eax
test esi, esi
jne 0x1006f583
push str.GetProcessImageFileNameW
push dword [ebp - 0x18]
call edi
mov esi, eax
test esi, esi
je 0x1006f5dc
push 0x412
lea eax, [ebp + 0x40]
push 0
push eax
call fcn.1010cca0
add esp, 0xc
lea eax, [ebp + 0x40]
push 0x208
push eax
push dword [ebp - 0x10]
call esi
lea ecx, [eax - 1]
cmp ecx, 0x206
ja 0x1006f5dc
add eax, eax
cmp eax, 0x412
jae 0x1006f86f
xor ecx, ecx
mov word [ebp + eax + 0x40], cx
lea eax, [ebp + 0x40]
push eax
call fcn.10005aa0
add esp, 4
lea ecx, [ebp + 0x18]
push eax
lea eax, [ebp + 0x40]
push eax
call fcn.100058a0
lea ecx, [ebp + 0x18]
call fcn.10005680
test al, al
jne 0x1006f781
push 0x410
call fcn.1010acde
push 0x410
mov edi, eax
push 0
push edi
call fcn.1010cca0
xorps xmm0, xmm0
mov dword [ebp + 0x38], 0
movq qword [ebp + 0x30], xmm0
add esp, 0x10
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x38], 0
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x30]
call fcn.1006d460
mov esi, dword [ebp + 0x30]
xor ecx, ecx
mov dword [ebp + 0x3c], ecx
mov eax, 0x2aaaaaab
mov ecx, dword [ebp + 0x34]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1006f766
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
add ebx, esi
mov ecx, ebx
call fcn.10005890
cmp eax, 3
jb 0x1006f696
mov ecx, ebx
call fcn.10005800
mov ecx, eax
mov edx, dword [eax + 0x14]
cmp edx, 8
jb 0x1006f682
mov ecx, dword [eax]
cmp word [ecx + 4], 0x5c
jne 0x1006f696
cmp edx, 8
jb 0x1006f690
mov eax, dword [eax]
xor ecx, ecx
mov word [eax + 4], cx
push 0x208
push edi
mov ecx, ebx
call fcn.10005690
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x1006f6b1
mov word [edi], ax
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1006f6b6
sub esi, ecx
sar esi, 1
je 0x1006f6ea
lea ecx, [ebp + 0x18]
call fcn.10005890
cmp esi, eax
jae 0x1006f6ea
push esi
push edi
lea ecx, [ebp + 0x18]
call fcn.10005690
push eax
call fcn.10113073
add esp, 0xc
test eax, eax
je 0x1006f71a
mov ecx, dword [ebp + 0x34]
mov eax, 0x2aaaaaab
mov esi, dword [ebp + 0x30]
sub ecx, esi
mov ebx, dword [ebp - 0x1c]
inc dword [ebp + 0x3c]
add ebx, 0x18
imul ecx
mov dword [ebp - 0x1c], ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp + 0x3c], eax
jb 0x1006f661
jmp 0x1006f763
lea ecx, [ebp]
call fcn.100057e0
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x18]
call fcn.10005690
mov ecx, ebx
lea eax, [eax + esi*2]
push eax
call fcn.10005690
push eax
lea eax, [ebp]
push str._s_s
push eax
call fcn.1006ca10
add esp, 0x10
lea eax, [ebp]
lea ecx, [ebp + 0x18]
push eax
call fcn.1001bd00
mov byte [ebp - 4], 4
lea ecx, [ebp]
call fcn.10005700
mov ebx, dword [ebp - 0x20]
push edi
call fcn.1010acd9
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x30]
call fcn.1001a2c0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp + 0x18]
call fcn.10005680
test al, al
je 0x1006f808
push str.GetModuleFileNameExW
push dword [ebp - 0x24]
call edi
mov esi, eax
test esi, esi
jne 0x1006f7ad
push str.GetModuleFileNameExW
push dword [ebp - 0x18]
call edi
mov esi, eax
test esi, esi
je 0x1006f808
push 0x412
lea eax, [ebp + 0x40]
push 0
push eax
call fcn.1010cca0
add esp, 0xc
lea eax, [ebp + 0x40]
push 0x208
push eax
push 0
push dword [ebp - 0x10]
call esi
lea ecx, [eax - 1]
cmp ecx, 0x206
ja 0x1006f808
add eax, eax
cmp eax, 0x412
jae 0x1006f86f
xor ecx, ecx
mov word [ebp + eax + 0x40], cx
lea eax, [ebp + 0x40]
push eax
call fcn.10005aa0
add esp, 4
lea ecx, [ebp + 0x18]
push eax
lea eax, [ebp + 0x40]
push eax
call fcn.100058a0
lea edx, [ebp + 0x18]
lea ecx, [ebp - 0x40]
call fcn.1006aad0
mov byte [ebp - 4], 6
lea ecx, [ebp + 0x18]
push eax
call fcn.10005710
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.10005700
lea eax, [ebp + 0x18]
mov ecx, ebx
push eax
call fcn.10005750
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.10005700
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x454]
xor ecx, ebp
call fcn.1010a4b0
lea esp, [ebp + 0x458]
pop ebp
ret
call fcn.1010ae08
int3