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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e8a84
mov eax, dword fs:[0]
push eax
sub esp, 0x4ac
mov eax, dword [0x66a074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x46c], esi
mov ebx, ecx
mov dword [ebp - 0x484], ebx
mov dword [ebp - 0x480], ebx
mov dword [ebp - 0x488], ebx
lea ecx, [ebp - 0x444]
mov dword [ebp - 0x470], 0
call fcn.00408f40
mov dword [ebp - 4], 1
test esi, esi
jne 0x4cf25d
lea eax, [ebp - 0x444]
mov ecx, ebx
push eax
call fcn.004099f0
jmp 0x4cf6fd
push str.Kernel32.dll
lea ecx, [ebp - 0x4b8]
call fcn.00408ef0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x4b8]
push eax
call fcn.004d9190
mov ecx, eax
call fcn.004d9250
mov esi, eax
mov dword [ebp - 0x47c], esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4b8]
call fcn.00408ea0
push str.Psapi.dll
lea ecx, [ebp - 0x4a0]
call fcn.00408ef0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x4a0]
push eax
call fcn.004d9190
mov ecx, eax
call fcn.004d9250
mov edi, eax
mov dword [ebp - 0x478], edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4a0]
call fcn.00408ea0
test edi, edi
je 0x4cf6ef
test esi, esi
je 0x4cf6ef
lea ecx, [ebp - 0x138]
call fcn.004cb990
cmp dword [ebp - 0x134], 6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jb 0x4cf39b
push str.QueryFullProcessImageNameW
push esi
call edi
mov esi, eax
test esi, esi
je 0x4cf39b
push 0x412
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.005b9c20
add esp, 0xc
mov dword [ebp - 0x42c], 0x208
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x428]
push eax
push 0
push dword [ebp - 0x46c]
call esi
test eax, eax
je 0x4cf39b
mov eax, dword [ebp - 0x42c]
cmp eax, 0x208
jae 0x4cf379
add eax, eax
cmp eax, 0x412
jae 0x4cf734
xor ecx, ecx
mov word [ebp + eax - 0x428], cx
lea eax, [ebp - 0x428]
push eax
call fcn.00409310
add esp, 4
lea ecx, [ebp - 0x444]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.00409060
lea ecx, [ebp - 0x444]
call fcn.00408d80
test al, al
je 0x4cf616
push str.GetProcessImageFileNameW
push dword [ebp - 0x478]
call edi
mov esi, eax
test esi, esi
jne 0x4cf3d4
push str.GetProcessImageFileNameW
push dword [ebp - 0x47c]
call edi
mov esi, eax
test esi, esi
je 0x4cf442
push 0x412
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.005b9c20
add esp, 0xc
lea eax, [ebp - 0x428]
push 0x208
push eax
push dword [ebp - 0x46c]
call esi
lea ecx, [eax - 1]
cmp ecx, 0x206
ja 0x4cf442
add eax, eax
cmp eax, 0x412
jae 0x4cf734
xor ecx, ecx
mov word [ebp + eax - 0x428], cx
lea eax, [ebp - 0x428]
push eax
call fcn.00409310
add esp, 4
lea ecx, [ebp - 0x444]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.00409060
lea ecx, [ebp - 0x444]
call fcn.00408d80
test al, al
jne 0x4cf616
push 0x410
call fcn.005b79a5
add esp, 4
mov ebx, eax
push 0x410
push 0
push ebx
call fcn.005b9c20
add esp, 0xc
mov dword [ebp - 0x448], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x450]
movq qword [ebp - 0x450], xmm0
call fcn.004141d0
mov byte [ebp - 4], 4
call fcn.004dfe70
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x42c], 0
call fcn.00414210
test eax, eax
je 0x4cf5f8
call fcn.00408fc0
xor esi, esi
mov dword [ebp - 0x480], eax
mov dword [ebp - 0x474], esi
nop dword [eax]
mov edi, dword [eax]
add edi, esi
mov ecx, edi
call fcn.00409050
cmp eax, 3
jb 0x4cf507
mov ecx, edi
call fcn.00408fc0
mov ecx, eax
mov edx, dword [eax + 0x14]
cmp edx, 8
jb 0x4cf4f3
mov ecx, dword [eax]
cmp word [ecx + 4], 0x5c
jne 0x4cf507
cmp edx, 8
jb 0x4cf501
mov eax, dword [eax]
xor ecx, ecx
mov word [eax + 4], cx
push 0x208
push ebx
mov ecx, edi
call fcn.00408e30
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x4cf522
mov word [ebx], ax
mov esi, ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4cf527
sub esi, ecx
sar esi, 1
je 0x4cf561
lea ecx, [ebp - 0x444]
call fcn.00409050
cmp esi, eax
jae 0x4cf561
push esi
push ebx
lea ecx, [ebp - 0x444]
call fcn.00408e30
push eax
call fcn.005c2b71
add esp, 0xc
test eax, eax
je 0x4cf597
mov edi, dword [ebp - 0x42c]
lea ecx, [ebp - 0x450]
mov esi, dword [ebp - 0x474]
inc edi
add esi, 0x18
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x474], esi
call fcn.00414210
cmp edi, eax
jae 0x4cf5f2
mov eax, dword [ebp - 0x480]
jmp 0x4cf4d0
lea ecx, [ebp - 0x468]
call fcn.00408f40
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x444]
call fcn.00408e30
mov ecx, edi
lea eax, [eax + esi*2]
push eax
call fcn.00408e30
push eax
lea eax, [ebp - 0x468]
push str._s_s
push eax
call fcn.004c9070
add esp, 0x10
lea eax, [ebp - 0x468]
lea ecx, [ebp - 0x444]
push eax
call fcn.00408d50
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x468]
call fcn.00408ea0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
call fcn.005b79a0
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x450]
call fcn.004142a0
mov ebx, dword [ebp - 0x484]
lea ecx, [ebp - 0x444]
call fcn.00408d80
test al, al
je 0x4cf6bf
push str.GetModuleFileNameExW
push dword [ebp - 0x478]
call edi
mov esi, eax
test esi, esi
jne 0x4cf64f
push str.GetModuleFileNameExW
push dword [ebp - 0x47c]
call edi
mov esi, eax
test esi, esi
je 0x4cf6bf
push 0x412
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.005b9c20
add esp, 0xc
lea eax, [ebp - 0x428]
push 0x208
push eax
push 0
push dword [ebp - 0x46c]
call esi
lea ecx, [eax - 1]
cmp ecx, 0x206
ja 0x4cf6bf
add eax, eax
cmp eax, 0x412
jae 0x4cf734
xor ecx, ecx
mov word [ebp + eax - 0x428], cx
lea eax, [ebp - 0x428]
push eax
call fcn.00409310
add esp, 4
lea ecx, [ebp - 0x444]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.00409060
lea edx, [ebp - 0x444]
lea ecx, [ebp - 0x4a0]
call fcn.004c9800
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x444]
push eax
call fcn.00408eb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4a0]
call fcn.00408ea0
lea eax, [ebp - 0x444]
mov ecx, ebx
push eax
call fcn.004099f0
mov dword [ebp - 0x470], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x444]
call fcn.00408ea0
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 - 0x10]
xor ecx, ebp
call fcn.005b75ab
mov esp, ebp
pop ebp
ret
call fcn.005b7af2
int3