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

Disassembly:
push ebp
lea ebp, [esp - 0x458]
sub esp, 0x458
push 0xffffffffffffffff
push 0x5905b9
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5ee034]
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 - 0x30], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x34], ebx
lea ecx, [ebp + 0x24]
mov dword [ebp - 0x14], 0
call fcn.00404580
mov dword [ebp - 4], 1
test esi, esi
jne 0x452cf3
lea eax, [ebp + 0x24]
mov ecx, ebx
push eax
call fcn.00419500
jmp 0x4530e2
push 0x5b74a0
lea ecx, [ebp - 0x64]
call fcn.00406350
mov byte [ebp - 4], 2
lea eax, [ebp - 0x64]
push eax
call fcn.0046eb70
mov ecx, eax
call fcn.0046ec30
mov esi, eax
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00404570
push str.Psapi.dll
lea ecx, [ebp - 0x4c]
call fcn.00406350
mov byte [ebp - 4], 3
lea eax, [ebp - 0x4c]
push eax
call fcn.0046eb70
mov ecx, eax
call fcn.0046ec30
mov edi, eax
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.00404570
test edi, edi
je 0x4530d7
test esi, esi
je 0x4530d7
lea ecx, [ebp + 0x334]
call fcn.00450140
cmp dword [ebp + 0x338], 6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jb 0x452def
push str.QueryFullProcessImageNameW
push esi
call edi
mov esi, eax
test esi, esi
je 0x452def
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 0x452def
mov eax, dword [ebp + 0x3c]
cmp eax, 0x208
jae 0x452dda
add eax, eax
cmp eax, 0x412
jae 0x45311a
xor ecx, ecx
mov word [ebp + eax + 0x40], cx
lea ecx, [ebp + 0x40]
call fcn.00404a30
push eax
lea eax, [ebp + 0x40]
push eax
lea ecx, [ebp + 0x24]
call fcn.00404780
lea ecx, [ebp + 0x24]
call fcn.0040b6a0
test al, al
je 0x453030
push str.GetProcessImageFileNameW
push dword [ebp - 0x1c]
call edi
mov esi, eax
test esi, esi
jne 0x452e1f
push str.GetProcessImageFileNameW
push dword [ebp - 0x20]
call edi
mov esi, eax
test esi, esi
je 0x452e74
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 0x452e74
add eax, eax
cmp eax, 0x412
jae 0x45311a
xor ecx, ecx
mov word [ebp + eax + 0x40], cx
lea ecx, [ebp + 0x40]
call fcn.00404a30
push eax
lea eax, [ebp + 0x40]
push eax
lea ecx, [ebp + 0x24]
call fcn.00404780
lea ecx, [ebp + 0x24]
call fcn.0040b6a0
test al, al
jne 0x453030
push 0x410
call fcn.0057de0f
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.004044e0
lea ecx, [ebp + 0x18]
call fcn.00404510
mov byte [ebp - 4], 4
call fcn.0046fdb0
lea ecx, [ebp + 0x18]
mov dword [ebp + 0x3c], 0
call fcn.00404690
lea edx, [eax + 4]
mov dword [ebp - 0x28], edx
call fcn.00404690
mov ecx, dword [edx]
mov dword [ebp - 0x2c], eax
sub ecx, dword [eax]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x453018
lea ecx, [ebp + 0x18]
call fcn.00404690
xor esi, esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], esi
mov edi, dword [eax]
add edi, esi
mov ecx, edi
call fcn.0040b6b0
cmp eax, 3
jb 0x452f38
call fcn.00404690
mov ecx, eax
mov edx, dword [eax + 0x14]
cmp edx, 8
jb 0x452f24
mov ecx, dword [eax]
cmp word [ecx + 4], 0x5c
jne 0x452f38
cmp edx, 8
jb 0x452f32
mov eax, dword [eax]
xor ecx, ecx
mov word [eax + 4], cx
push 0x208
push ebx
mov ecx, edi
call fcn.00404530
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x452f53
mov word [ebx], ax
mov esi, ebx
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x452f60
sub esi, ecx
sar esi, 1
je 0x452f92
lea ecx, [ebp + 0x24]
call fcn.0040b6b0
cmp esi, eax
jae 0x452f92
push esi
push ebx
call fcn.00404530
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x452fc9
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp + 0x3c]
mov esi, dword [ebp - 0x18]
inc edi
add esi, 0x18
mov dword [ebp + 0x3c], edi
mov ecx, dword [eax]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], esi
sub ecx, dword [eax]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x453012
mov eax, dword [ebp - 0x24]
jmp 0x452f03
lea ecx, [ebp]
call fcn.00404580
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x24]
call fcn.00404530
mov ecx, edi
lea eax, [eax + esi*2]
push eax
call fcn.00404530
push eax
lea eax, [ebp]
push 0x5b8728
push eax
call fcn.0044dae0
add esp, 0x10
lea eax, [ebp]
lea ecx, [ebp + 0x24]
push eax
call fcn.004531e0
mov byte [ebp - 4], 4
lea ecx, [ebp]
call fcn.00404570
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
call fcn.0057d777
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x18]
call fcn.00404500
mov ebx, dword [ebp - 0x30]
lea ecx, [ebp + 0x24]
call fcn.0040b6a0
test al, al
je 0x4530b3
push str.GetModuleFileNameExW
push dword [ebp - 0x1c]
call edi
mov esi, eax
test esi, esi
jne 0x45305c
push str.GetModuleFileNameExW
push dword [ebp - 0x20]
call edi
mov esi, eax
test esi, esi
je 0x4530b3
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 0x4530b3
add eax, eax
cmp eax, 0x412
jae 0x45311a
xor ecx, ecx
mov word [ebp + eax + 0x40], cx
lea ecx, [ebp + 0x40]
call fcn.00404a30
push eax
lea eax, [ebp + 0x40]
push eax
lea ecx, [ebp + 0x24]
call fcn.00404780
lea edx, [ebp + 0x24]
lea ecx, [ebp - 0x4c]
call fcn.004519a0
mov byte [ebp - 4], 6
lea ecx, [ebp + 0x24]
push eax
call fcn.00406310
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.00404570
lea eax, [ebp + 0x24]
mov ecx, ebx
push eax
call fcn.00419500
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x24]
call fcn.00404570
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.0057d0c6
lea esp, [ebp + 0x458]
pop ebp
ret
call fcn.0057dae8
int3