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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002fa64
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4c8
mov eax, dword [0x10041008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x47c], eax
mov edi, ecx
mov dword [ebp - 0x48c], edi
mov dword [ebp - 0x484], edi
mov dword [ebp - 0x4c0], edi
xor ecx, ecx
mov dword [ebp - 0x480], 0
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 7
mov word [ebp - 0x448], cx
mov dword [ebp - 4], 1
test eax, eax
jne 0x1002335f
movups xmm0, xmmword [ebp - 0x448]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ecx
movups xmmword [edi], xmm0
mov word [ebp - 0x448], ax
movq xmm0, qword [ebp - 0x438]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x438], ecx
mov dword [ebp - 0x434], 7
mov dword [ebp - 0x480], 1
mov byte [ebp - 4], cl
mov dword [ebp - 0x438], ecx
jmp 0x10023ae9
push 0xc
xor eax, eax
mov dword [ebp - 0x4ac], 0
mov dword [ebp - 0x4a8], 0
lea ecx, [ebp - 0x4bc]
push str.Kernel32.dll
mov dword [ebp - 0x4ac], 0
mov dword [ebp - 0x4a8], 7
mov word [ebp - 0x4bc], ax
call fcn.10002920
mov byte [ebp - 4], 2
lea eax, [ebp - 0x4bc]
push eax
call fcn.10021ab0
mov ecx, eax
call fcn.10021b70
mov esi, eax
mov dword [ebp - 0x484], esi
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x4a8]
cmp edx, 8
jb 0x10023407
mov ecx, dword [ebp - 0x4bc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100233fd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100233fd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002a5aa
add esp, 8
xor eax, eax
mov dword [ebp - 0x4ac], 0
push 9
mov dword [ebp - 0x494], eax
lea ecx, [ebp - 0x4a4]
mov dword [ebp - 0x490], eax
push str.Psapi.dll
mov dword [ebp - 0x4a8], 7
mov word [ebp - 0x4bc], ax
mov dword [ebp - 0x494], eax
mov dword [ebp - 0x490], 7
mov word [ebp - 0x4a4], ax
call fcn.10002920
mov byte [ebp - 4], 3
lea eax, [ebp - 0x4a4]
push eax
call fcn.10021ab0
mov ecx, eax
call fcn.10021b70
mov dword [ebp - 0x478], eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x490]
cmp edx, 8
jb 0x100234c2
mov ecx, dword [ebp - 0x4a4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100234b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100234b2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002a5aa
mov eax, dword [ebp - 0x478]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x494], 0
mov dword [ebp - 0x490], 7
mov word [ebp - 0x4a4], cx
test eax, eax
je 0x10023aa6
test esi, esi
je 0x10023aa6
lea ecx, [ebp - 0x140]
call fcn.100152c0
cmp dword [ebp - 0x13c], 6
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jb 0x100235ae
push str.QueryFullProcessImageNameW
push esi
call eax
mov esi, eax
test esi, esi
je 0x100235a9
push 0x412
lea eax, [ebp - 0x430]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x44c], 0x208
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x430]
push eax
push 0
push dword [ebp - 0x47c]
call esi
test eax, eax
je 0x100235a9
mov eax, dword [ebp - 0x44c]
cmp eax, 0x208
jae 0x1002357e
add eax, eax
cmp eax, 0x412
jae 0x10023b1c
xor ecx, ecx
mov word [ebp + eax - 0x430], cx
lea ecx, [ebp - 0x430]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10023587
sub ecx, edx
lea eax, [ebp - 0x430]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x448]
call fcn.10002920
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [ebp - 0x438], 0
jne 0x100239d7
push str.GetProcessImageFileNameW
push dword [ebp - 0x478]
call eax
mov esi, eax
test esi, esi
jne 0x100235e5
push str.GetProcessImageFileNameW
push dword [ebp - 0x484]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10023662
push 0x412
lea eax, [ebp - 0x430]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x430]
push 0x208
push eax
push dword [ebp - 0x47c]
call esi
lea ecx, [eax - 1]
cmp ecx, 0x206
ja 0x10023662
add eax, eax
cmp eax, 0x412
jae 0x10023b1c
xor ecx, ecx
mov word [ebp + eax - 0x430], cx
lea ecx, [ebp - 0x430]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10023640
sub ecx, edx
lea eax, [ebp - 0x430]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x448]
call fcn.10002920
cmp dword [ebp - 0x438], 0
je 0x10023930
push 0x410
call fcn.1002afa1
add esp, 4
mov dword [ebp - 0x44c], eax
push 0x410
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov dword [ebp - 0x450], 0
movq qword [ebp - 0x458], xmm0
add esp, 0xc
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x450], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x458]
call fcn.10015420
mov esi, dword [ebp - 0x458]
xor ecx, ecx
mov dword [ebp - 0x474], ecx
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x454]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10023906
xor edi, edi
mov dword [ebp - 0x488], edi
nop dword [eax]
add edi, esi
cmp dword [edi + 0x10], 3
jb 0x1002373a
mov ecx, dword [edi + 0x14]
mov eax, edi
cmp ecx, 8
jb 0x10023724
mov eax, dword [edi]
cmp word [eax + 4], 0x5c
jne 0x1002373a
mov eax, edi
cmp ecx, 8
jb 0x10023734
mov eax, dword [edi]
xor ecx, ecx
mov word [eax + 4], cx
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x10023744
mov eax, dword [edi]
mov esi, dword [ebp - 0x44c]
push 0x208
push esi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x1002375e
mov word [esi], ax
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10023761
sub esi, ecx
sar esi, 1
je 0x100237a3
cmp esi, dword [ebp - 0x438]
jae 0x100237a3
cmp dword [ebp - 0x434], 8
lea eax, [ebp - 0x448]
push esi
cmovae eax, dword [ebp - 0x448]
push dword [ebp - 0x44c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x100237e8
mov ecx, dword [ebp - 0x454]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x458]
sub ecx, esi
mov edi, dword [ebp - 0x488]
inc dword [ebp - 0x474]
add edi, 0x18
imul ecx
mov dword [ebp - 0x488], edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x474], eax
jb 0x10023710
jmp 0x10023900
xor eax, eax
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x45c], 0
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x45c], 7
mov word [ebp - 0x470], ax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x448]
cmp dword [ebp - 0x434], 8
cmovae eax, dword [ebp - 0x448]
cmp dword [edi + 0x14], 8
jb 0x10023839
mov edi, dword [edi]
lea eax, [eax + esi*2]
push eax
push edi
lea eax, [ebp - 0x470]
push str._s_s
push eax
call fcn.10011eb0
movups xmm0, xmmword [ebp - 0x470]
add esp, 0x10
movups xmm2, xmmword [ebp - 0x448]
movq xmm1, qword [ebp - 0x438]
movups xmmword [ebp - 0x448], xmm0
movq xmm0, qword [ebp - 0x460]
movups xmmword [ebp - 0x4d8], xmm2
movq qword [ebp - 0x4c8], xmm1
movq qword [ebp - 0x438], xmm0
movups xmmword [ebp - 0x470], xmm2
movq qword [ebp - 0x460], xmm1
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x4c4]
cmp edx, 8
jb 0x100238e3
mov ecx, dword [ebp - 0x4d8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100238d9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100238d9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002a5aa
add esp, 8
xor eax, eax
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x45c], 7
mov word [ebp - 0x470], ax
mov edi, dword [ebp - 0x48c]
push dword [ebp - 0x44c]
call fcn.1002af70
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x458]
call fcn.1000b810
cmp dword [ebp - 0x438], 0
jne 0x100239d7
push str.GetModuleFileNameExW
push dword [ebp - 0x478]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x1002395e
push str.GetModuleFileNameExW
push dword [ebp - 0x484]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x100239d7
push 0x412
lea eax, [ebp - 0x430]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x430]
push 0x208
push eax
push 0
push dword [ebp - 0x47c]
call esi
lea ecx, [eax - 1]
cmp ecx, 0x206
ja 0x100239d7
add eax, eax
cmp eax, 0x412
jae 0x10023b1c
xor ecx, ecx
mov word [ebp + eax - 0x430], cx
lea ecx, [ebp - 0x430]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100239b5
sub ecx, edx
lea eax, [ebp - 0x430]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x448]
call fcn.10002920
lea edx, [ebp - 0x448]
lea ecx, [ebp - 0x4a4]
call fcn.10016240
mov esi, eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x448]
cmp eax, esi
je 0x10023a29
mov ecx, eax
call fcn.100028c0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x448], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x438], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x490]
cmp edx, 8
jb 0x10023a6f
mov ecx, dword [ebp - 0x4a4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10023a65
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10023a65
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1002a5aa
add esp, 8
movups xmm0, xmmword [ebp - 0x448]
xor eax, eax
mov dword [ebp - 0x494], 0
mov dword [ebp - 0x490], 7
movups xmmword [edi], xmm0
mov word [ebp - 0x4a4], ax
movq xmm0, qword [ebp - 0x438]
mov dword [ebp - 0x438], eax
jmp 0x10023abe
movups xmm0, xmmword [ebp - 0x448]
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x438]
mov dword [ebp - 0x438], ecx
xor eax, eax
mov dword [ebp - 0x480], 1
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x434], 7
mov word [ebp - 0x448], ax
mov byte [ebp - 4], al
mov dword [ebp - 0x438], eax
xor eax, eax
mov dword [ebp - 0x434], 7
mov word [ebp - 0x448], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1002a569
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.1002ae96
int3