Function at 0x40c9e0
Capabilities:
Get disk information
Get process image filename

Disassembly:
push 0xffffffffffffffff
push 0x445062
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4521d0]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4521d0]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x248]
xor esi, esi
mov dword [esp + 0x1c], esi
mov eax, dword [0x45392c]
mov edx, dword [eax + 0xc]
mov ecx, 0x45392c
mov dword [esp + 0x240], esi
mov dword [esp + 0x18], ebp
call edx
add eax, 0x10
mov dword [ebp], eax
mov dword [esp + 0x240], esi
mov dword [esp + 0x1c], 1
call fcn.00409e10
test eax, eax
je 0x40ca7c
mov eax, dword [esp + 0x24c]
push eax
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [esp + 0x14], ebx
jmp 0x40ca96
mov ecx, dword [esp + 0x24c]
push ecx
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x14], eax
mov ebx, eax
cmp ebx, esi
je 0x40cc8c
call fcn.00409e10
test eax, eax
je 0x40cb02
push 0x4486b8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, esi
je 0x40cc85
push str.QueryFullProcessImageNameW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40caf6
lea edx, [esp + 0x14]
push edx
push 0x104
mov ecx, ebp
mov dword [esp + 0x1c], 0x104
call fcn.00407690
push eax
push 0
push ebx
call esi
push 0xffffffffffffffff
mov ecx, ebp
call fcn.004070f0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40cc85
push 0x208
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0041d8e0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x30]
push ecx
push ebx
call sub.PSAPI.DLL_GetProcessImageFileNameW
mov ebp, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push esi
push esi
call ebp
mov esi, eax
test esi, esi
je 0x40cc81
xor ecx, ecx
lea edi, [esi + 1]
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041ce2a
push edi
mov ebx, eax
push 0
push ebx
mov dword [esp + 0x30], ebx
call fcn.0041d8e0
add esp, 0x10
push ebx
push esi
call ebp
test eax, eax
jne 0x40cb7c
push ebx
call fcn.0041f718
add esp, 4
jmp 0x40cc7d
mov eax, dword [0x448694]
mov cx, word [0x448698]
push 0x208
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], cx
call fcn.0041ce2a
mov ebp, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
add esp, 4
mov esi, eax
jmp 0x40cbb0
mov dx, word [ebp]
push 0x104
push esi
lea eax, [esp + 0x2c]
push eax
mov word [esp + 0x30], dx
call ebx
test eax, eax
jne 0x40cc0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40cc6a
push esi
call fcn.0041f718
xor ecx, ecx
mov eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041ce2a
add esp, 8
mov esi, eax
push 1
push esi
lea eax, [esp + 0x2c]
push eax
call ebx
test eax, eax
je 0x40cc6a
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cc12
sub eax, edx
sar eax, 1
mov edi, eax
push edi
lea ecx, [esp + 0x30]
push esi
push ecx
call fcn.00420054
add esp, 0xc
test eax, eax
je 0x40cc4e
mov dx, word [ebp]
add ebp, 2
test dx, dx
jne 0x40cc36
cmp word [ebp], dx
jne 0x40cbb0
jmp 0x40cc6a
mov edx, dword [esp + 0x18]
lea eax, [esp + edi*2 + 0x2c]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0x448688
push edx
call fcn.00407a50
add esp, 0x10
mov eax, dword [esp + 0x20]
push eax
call fcn.0041f718
push esi
call fcn.0041f718
add esp, 8
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0041d8d0
add esp, 0x230
ret