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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10039110
push 0x1001b570
mov eax, dword fs:[0]
push eax
add esp, 0xfffff9a4
mov eax, dword [0x1003ccc8]
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.1001b720
add esp, 0xc
xor edx, edx
mov word [ebp - 0x430], dx
push 0x206
push 0
lea eax, [ebp - 0x42e]
push eax
call fcn.1001b720
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x228], cx
push 0x206
push 0
lea edx, [ebp - 0x226]
push edx
call fcn.1001b720
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
je 0x10008291
cmp dword [ebp + 0x14], 0
je 0x10008291
cmp dword [ebp + 8], 0
jne 0x100082a3
cmp dword [ebp + 0xc], 0
jne 0x100082a3
push str._GetProcPath__:_input_parameter_error__n
call fcn.10019eff
add esp, 4
jmp 0x100085a1
cmp dword [ebp + 8], 0
je 0x100082e7
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 0x100082d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GetProcPath__:_GetModuleFileName_failed.___d___n
call fcn.10019eff
add esp, 8
jmp 0x100085a1
mov dword [ebp - 0x644], 1
jmp 0x100085a1
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 0x10008320
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GetProcPath__:_OpenProcess_failed.___d___n
call fcn.10019eff
add esp, 8
jmp 0x100085a1
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x64c], eax
cmp dword [ebp - 0x64c], 0
jne 0x10008353
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GetProcPath__:_LoadLibrary_failed.___d___n
call fcn.10019eff
add esp, 8
jmp 0x100085a1
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 0x100083bc
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 0x100083ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GetProcPath__:_QueryFullProcessImageName_failed.___d___n
call fcn.10019eff
add esp, 8
jmp 0x100085a1
mov dword [ebp - 0x644], 1
jmp 0x100085a1
push 0x104
lea edx, [ebp - 0x640]
push edx
mov eax, dword [ebp - 0x648]
push eax
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
jne 0x100083f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GetProcPath__:_GetProcessImageFileName_failed.___d___n
call fcn.10019eff
add esp, 8
jmp 0x100085a1
push 0x100354bc
push 0x104
lea ecx, [ebp - 0x228]
push ecx
call fcn.1001abf8
add esp, 0xc
jmp 0x1000841e
mov dx, word [ebp - 0x228]
add dx, 1
mov word [ebp - 0x228], dx
movzx eax, word [ebp - 0x228]
cmp eax, 0x5a
jg 0x1000850b
push 0x208
push 0
lea ecx, [ebp - 0x430]
push ecx
call fcn.1001b720
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 0x10008489
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10008470
jmp 0x1000840c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GetProcPath__:_QueryDosDevice_failed.___d___n
call fcn.10019eff
add esp, 8
jmp 0x100085a1
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 0x100084a4
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.1001ae90
add esp, 0xc
test eax, eax
jne 0x10008506
mov dword [ebp - 0x644], 1
jmp 0x1000850b
jmp 0x1000840c
cmp dword [ebp - 0x644], 0
je 0x100085a1
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.1001abf8
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 0x1000854c
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.1001abf8
add esp, 0xc
mov dword [ebp - 4], 0xfffffffe
call fcn.100085af
jmp 0x100085dc
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.10018f71
mov esp, ebp
pop ebp
ret