Function at 0x10007580
Capabilities:
Check if file exists
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100381c0
push 0x1001aa20
mov eax, dword fs:[0]
push eax
add esp, 0xfffff9a4
mov eax, dword [0x1003bcc8]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x644], 0
mov dword [ebp - 0x64c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x648], 0
mov dword [ebp - 0x434], 0
xor eax, eax
mov word [ebp - 0x640], ax
push 0x206
push 0
lea ecx, [ebp - 0x63e]
push ecx
call fcn.1001abd0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x430], dx
push 0x206
push 0
lea eax, [ebp - 0x42e]
push eax
call fcn.1001abd0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x228], cx
push 0x206
push 0
lea edx, [ebp - 0x226]
push edx
call fcn.1001abd0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
je 0x10007661
cmp dword [ebp + 0x14], 0
je 0x10007661
cmp dword [ebp + 8], 0
jne 0x10007673
cmp dword [ebp + 0xc], 0
jne 0x10007673
push str._GetProcPath__:_input_parameter_error__n
call fcn.1001946a
add esp, 4
jmp 0x10007971
cmp dword [ebp + 8], 0
je 0x100076b7
mov eax, dword [ebp + 0x14]
shr eax, 1
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x100076a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GetProcPath__:_GetModuleFileName_failed.___d___n
call fcn.1001946a
add esp, 8
jmp 0x10007971
mov dword [ebp - 0x644], 1
jmp 0x10007971
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x648], eax
cmp dword [ebp - 0x648], 0
jne 0x100076f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GetProcPath__:_OpenProcess_failed.___d___n
call fcn.1001946a
add esp, 8
jmp 0x10007971
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x64c], eax
cmp dword [ebp - 0x64c], 0
jne 0x10007723
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GetProcPath__:_LoadLibrary_failed.___d___n
call fcn.1001946a
add esp, 8
jmp 0x10007971
push str.QueryFullProcessImageNameW
mov eax, dword [ebp - 0x64c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x1000778c
mov ecx, dword [ebp + 0x14]
shr ecx, 1
mov dword [ebp - 0x434], ecx
lea edx, [ebp - 0x434]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp - 0x648]
push ecx
call dword [ebp - 0x1c]
test eax, eax
jne 0x1000777d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GetProcPath__:_QueryFullProcessImageName_failed.___d___n
call fcn.1001946a
add esp, 8
jmp 0x10007971
mov dword [ebp - 0x644], 1
jmp 0x10007971
push 0x104
lea edx, [ebp - 0x640]
push edx
mov eax, dword [ebp - 0x648]
push eax
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
jne 0x100077c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GetProcPath__:_GetProcessImageFileName_failed.___d___n
call fcn.1001946a
add esp, 8
jmp 0x10007971
push 0x1003454c
push 0x104
lea ecx, [ebp - 0x228]
push ecx
call fcn.1001a0a8
add esp, 0xc
jmp 0x100077ee
mov dx, word [ebp - 0x228]
add dx, 1
mov word [ebp - 0x228], dx
movzx eax, word [ebp - 0x228]
cmp eax, 0x5a
jg 0x100078db
push 0x208
push 0
lea ecx, [ebp - 0x430]
push ecx
call fcn.1001abd0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x430]
push edx
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x10007859
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10007840
jmp 0x100077dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GetProcPath__:_QueryDosDevice_failed.___d___n
call fcn.1001946a
add esp, 8
jmp 0x10007971
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x650], ecx
mov edx, dword [ebp - 0x650]
add edx, 2
mov dword [ebp - 0x654], edx
mov eax, dword [ebp - 0x650]
mov cx, word [eax]
mov word [ebp - 0x656], cx
add dword [ebp - 0x650], 2
cmp word [ebp - 0x656], 0
jne 0x10007874
mov edx, dword [ebp - 0x650]
sub edx, dword [ebp - 0x654]
sar edx, 1
mov dword [ebp - 0x65c], edx
mov eax, dword [ebp - 0x65c]
push eax
lea ecx, [ebp - 0x430]
push ecx
lea edx, [ebp - 0x640]
push edx
call fcn.1001a340
add esp, 0xc
test eax, eax
jne 0x100078d6
mov dword [ebp - 0x644], 1
jmp 0x100078db
jmp 0x100077dc
cmp dword [ebp - 0x644], 0
je 0x10007971
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [ebp + 0x14]
shr ecx, 1
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.1001a0a8
add esp, 0xc
lea eax, [ebp - 0x430]
mov dword [ebp - 0x660], eax
mov ecx, dword [ebp - 0x660]
add ecx, 2
mov dword [ebp - 0x664], ecx
mov edx, dword [ebp - 0x660]
mov ax, word [edx]
mov word [ebp - 0x666], ax
add dword [ebp - 0x660], 2
cmp word [ebp - 0x666], 0
jne 0x1000791c
mov ecx, dword [ebp - 0x660]
sub ecx, dword [ebp - 0x664]
sar ecx, 1
mov dword [ebp - 0x66c], ecx
mov edx, dword [ebp - 0x66c]
lea eax, [ebp + edx*2 - 0x640]
push eax
mov ecx, dword [ebp + 0x14]
shr ecx, 1
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.1001a0a8
add esp, 0xc
mov dword [ebp - 4], 0xfffffffe
call fcn.1000797f
jmp 0x100079ac
mov eax, dword [ebp - 0x644]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.100184dc
mov esp, ebp
pop ebp
ret