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

Disassembly:
push ebp
lea ebp, [esp - 0x458]
sub esp, 0x458
push 0xffffffffffffffff
push 0x4d4989
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x516008]
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 - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], ebx
lea ecx, [ebp + 0x18]
mov dword [ebp - 0x14], 0
call fcn.00412f80
mov dword [ebp - 4], 1
test esi, esi
jne 0x496a53
lea eax, [ebp + 0x18]
mov ecx, ebx
push eax
call fcn.00418f00
jmp 0x496e2f
push str.Kernel32.dll
lea ecx, [ebp - 0x58]
call fcn.00412eb0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x58]
push eax
call fcn.00497860
mov ecx, eax
call fcn.00497920
mov esi, eax
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00412e40
push str.Psapi.dll
lea ecx, [ebp - 0x40]
call fcn.00412eb0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x40]
push eax
call fcn.00497860
mov ecx, eax
call fcn.00497920
mov edi, eax
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00412e40
test edi, edi
je 0x496e24
test esi, esi
je 0x496e24
lea ecx, [ebp + 0x334]
call fcn.00488400
cmp dword [ebp + 0x338], 6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jb 0x496b46
push str.QueryFullProcessImageNameW
push esi
call edi
mov esi, eax
test esi, esi
je 0x496b46
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 0x496b46
mov eax, dword [ebp + 0x3c]
cmp eax, 0x208
jae 0x496b3a
add eax, eax
cmp eax, 0x412
jae 0x496e67
xor ecx, ecx
mov word [ebp + eax + 0x40], cx
lea eax, [ebp + 0x40]
push eax
lea ecx, [ebp + 0x18]
call fcn.00412df0
lea ecx, [ebp + 0x18]
call fcn.00412dc0
test al, al
je 0x496d86
push str.GetProcessImageFileNameW
push dword [ebp - 0x20]
call edi
mov esi, eax
test esi, esi
jne 0x496b76
push str.GetProcessImageFileNameW
push dword [ebp - 0x18]
call edi
mov esi, eax
test esi, esi
je 0x496bc2
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 0x496bc2
add eax, eax
cmp eax, 0x412
jae 0x496e67
xor ecx, ecx
mov word [ebp + eax + 0x40], cx
lea eax, [ebp + 0x40]
push eax
lea ecx, [ebp + 0x18]
call fcn.00412df0
lea ecx, [ebp + 0x18]
call fcn.00412dc0
test al, al
jne 0x496d86
push 0x410
call fcn.004b9333
push 0x410
mov ebx, eax
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
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.0048fc40
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 0x496d6e
xor edi, edi
mov dword [ebp - 0x1c], edi
add edi, esi
mov ecx, edi
call fcn.004132f0
cmp eax, 3
jb 0x496c7e
mov ecx, edi
call fcn.004131e0
mov ecx, eax
call fcn.004131a0
cmp word [eax + 4], 0x5c
jne 0x496c7e
mov ecx, edi
call fcn.004131e0
mov ecx, eax
call fcn.004131a0
xor ecx, ecx
mov word [eax + 4], cx
mov ecx, edi
call fcn.004131e0
mov ecx, eax
call fcn.004131a0
push 0x208
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x496ca0
mov word [ebx], ax
mov esi, ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x496ca5
sub esi, ecx
sar esi, 1
je 0x496ce1
lea ecx, [ebp + 0x18]
call fcn.004132f0
cmp esi, eax
jae 0x496ce1
lea ecx, [ebp + 0x18]
call fcn.004131e0
mov ecx, eax
call fcn.004131a0
push esi
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 0x496d11
mov ecx, dword [ebp + 0x34]
mov eax, 0x2aaaaaab
mov esi, dword [ebp + 0x30]
sub ecx, esi
mov edi, dword [ebp - 0x1c]
inc dword [ebp + 0x3c]
add edi, 0x18
imul ecx
mov dword [ebp - 0x1c], edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp + 0x3c], eax
jb 0x496c47
jmp 0x496d68
lea ecx, [ebp]
call fcn.00412f80
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x18]
call fcn.004131e0
mov ecx, eax
call fcn.004131a0
mov ecx, edi
lea eax, [eax + esi*2]
push eax
call fcn.004131e0
mov ecx, eax
call fcn.004131a0
push eax
lea eax, [ebp]
push str._s_s
push eax
call fcn.00489300
add esp, 0x10
lea eax, [ebp]
lea ecx, [ebp + 0x18]
push eax
call fcn.004452f0
mov byte [ebp - 4], 4
lea ecx, [ebp]
call fcn.00412e40
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
call fcn.004b911e
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x30]
call fcn.0041dc80
mov ebx, dword [ebp - 0x24]
lea ecx, [ebp + 0x18]
call fcn.00412dc0
test al, al
je 0x496e00
push str.GetModuleFileNameExW
push dword [ebp - 0x20]
call edi
mov esi, eax
test esi, esi
jne 0x496db2
push str.GetModuleFileNameExW
push dword [ebp - 0x18]
call edi
mov esi, eax
test esi, esi
je 0x496e00
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 0x496e00
add eax, eax
cmp eax, 0x412
jae 0x496e67
xor ecx, ecx
mov word [ebp + eax + 0x40], cx
lea eax, [ebp + 0x40]
push eax
lea ecx, [ebp + 0x18]
call fcn.00412df0
lea edx, [ebp + 0x18]
lea ecx, [ebp - 0x40]
call fcn.0048a9c0
mov byte [ebp - 4], 6
lea ecx, [ebp + 0x18]
push eax
call fcn.00418e50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00412e40
lea eax, [ebp + 0x18]
mov ecx, ebx
push eax
call fcn.00418f00
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.00412e40
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.004b8ad3
lea esp, [ebp + 0x458]
pop ebp
ret
call fcn.004b924d
int3