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

Disassembly:
push ebp
lea ebp, [esp - 0x458]
sub esp, 0x458
push 0xffffffffffffffff
push 0x100a7239
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x100cd008]
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 eax, edx
mov dword [ebp - 0x10], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x5c], edi
xor ecx, ecx
mov dword [ebp - 0x14], 0
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x38], 7
mov word [ebp + 0x24], cx
mov dword [ebp - 4], 1
test eax, eax
jne 0x1006dafd
lea eax, [ebp + 0x24]
mov ecx, edi
push eax
call fcn.1000d610
jmp 0x1006df2b
push 0xc
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x40]
push str.Kernel32.dll
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.10002bf0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x40]
push eax
call fcn.10075510
mov ecx, eax
call fcn.100755d0
mov esi, eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.10002b90
push 9
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x58]
push str.Psapi.dll
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.10002bf0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x58]
push eax
call fcn.10075510
mov ecx, eax
call fcn.100755d0
mov ebx, eax
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.10002b90
test ebx, ebx
je 0x1006df20
test esi, esi
je 0x1006df20
lea ecx, [ebp + 0x334]
call fcn.10065ef0
cmp dword [ebp + 0x338], 6
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jb 0x1006dc4e
push str.QueryFullProcessImageNameW
push esi
call ebx
mov esi, eax
test esi, esi
je 0x1006dc4e
push 0x412
lea eax, [ebp + 0x40]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
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 0x1006dc4e
mov eax, dword [ebp + 0x3c]
cmp eax, 0x208
jae 0x1006dc2c
add eax, eax
cmp eax, 0x412
jae 0x1006df63
xor ecx, ecx
mov word [ebp + eax + 0x40], cx
lea ecx, [ebp + 0x40]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006dc32
sub ecx, edx
lea eax, [ebp + 0x40]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp + 0x24]
call fcn.10002bf0
cmp dword [ebp + 0x34], 0
jne 0x1006defc
push str.GetProcessImageFileNameW
push dword [ebp - 0x20]
call ebx
mov esi, eax
test esi, esi
jne 0x1006dc78
push str.GetProcessImageFileNameW
push dword [ebp - 0x24]
call ebx
mov esi, eax
test esi, esi
je 0x1006dcdc
push 0x412
lea eax, [ebp + 0x40]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
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 0x1006dcdc
add eax, eax
cmp eax, 0x412
jae 0x1006df63
xor ecx, ecx
mov word [ebp + eax + 0x40], cx
lea ecx, [ebp + 0x40]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006dcc0
sub ecx, edx
lea eax, [ebp + 0x40]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp + 0x24]
call fcn.10002bf0
cmp dword [ebp + 0x34], 0
je 0x1006de74
push 0x410
call fcn.10097a1f
push 0x410
mov ebx, eax
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea ecx, [ebp + 0x18]
push 0xc
call fcn.1000df90
lea ecx, [ebp + 0x18]
call fcn.1000e030
mov byte [ebp - 4], 4
call fcn.10074460
lea ecx, [ebp + 0x18]
mov dword [ebp + 0x3c], 0
call fcn.1000e4a0
test eax, eax
je 0x1006de4f
call fcn.1000c360
xor esi, esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], esi
mov edi, dword [eax]
add edi, esi
cmp dword [edi + 0x10], 3
jb 0x1006dd6d
mov ecx, dword [edi + 0x14]
mov eax, edi
cmp ecx, 8
jb 0x1006dd57
mov eax, dword [edi]
cmp word [eax + 4], 0x5c
jne 0x1006dd6d
mov eax, edi
cmp ecx, 8
jb 0x1006dd67
mov eax, dword [edi]
xor ecx, ecx
mov word [eax + 4], cx
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x1006dd77
mov eax, dword [edi]
push 0x208
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x1006dd8b
mov word [ebx], ax
mov esi, ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1006dd90
sub esi, ecx
sar esi, 1
je 0x1006ddc1
cmp esi, dword [ebp + 0x34]
jae 0x1006ddc1
cmp dword [ebp + 0x38], 8
lea eax, [ebp + 0x24]
push esi
cmovae eax, dword [ebp + 0x24]
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x1006dde5
mov edi, dword [ebp + 0x3c]
lea ecx, [ebp + 0x18]
mov esi, dword [ebp - 0x18]
inc edi
add esi, 0x18
mov dword [ebp + 0x3c], edi
mov dword [ebp - 0x18], esi
call fcn.1000e4a0
cmp edi, eax
jae 0x1006de4c
mov eax, dword [ebp - 0x28]
jmp 0x1006dd41
xor eax, eax
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 7
mov word [ebp], ax
mov byte [ebp - 4], 5
lea eax, [ebp + 0x24]
cmp dword [ebp + 0x38], 8
cmovae eax, dword [ebp + 0x24]
cmp dword [edi + 0x14], 8
jb 0x1006de1e
mov edi, dword [edi]
lea eax, [eax + esi*2]
push eax
push edi
lea eax, [ebp]
push 0x100b4950
push eax
call fcn.100654a0
add esp, 0x10
lea eax, [ebp]
lea ecx, [ebp + 0x24]
push eax
call fcn.1002e480
mov byte [ebp - 4], 4
lea ecx, [ebp]
call fcn.10002b90
mov edi, dword [ebp - 0x1c]
push ebx
call fcn.10097a28
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x18]
call fcn.1000dff0
cmp dword [ebp + 0x34], 0
jne 0x1006defc
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetModuleFileNameExW
push dword [ebp - 0x20]
call ebx
mov esi, eax
test esi, esi
jne 0x1006de94
push str.GetModuleFileNameExW
push dword [ebp - 0x24]
call ebx
mov esi, eax
test esi, esi
je 0x1006defc
push 0x412
lea eax, [ebp + 0x40]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
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 0x1006defc
add eax, eax
cmp eax, 0x412
jae 0x1006df63
xor ecx, ecx
mov word [ebp + eax + 0x40], cx
lea ecx, [ebp + 0x40]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006dee0
sub ecx, edx
lea eax, [ebp + 0x40]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp + 0x24]
call fcn.10002bf0
lea edx, [ebp + 0x24]
lea ecx, [ebp]
call fcn.10067d10
mov byte [ebp - 4], 6
lea ecx, [ebp + 0x24]
push eax
call fcn.1000c210
mov byte [ebp - 4], 1
lea ecx, [ebp]
call fcn.10002b90
lea eax, [ebp + 0x24]
mov ecx, edi
push eax
call fcn.1000d610
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x24]
call fcn.10002b90
mov eax, edi
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.10097213
lea esp, [ebp + 0x458]
pop ebp
ret
call fcn.10097b9e
int3