Function at 0x40b8a0
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6563
mov eax, dword fs:[0]
push eax
sub esp, 0x914
mov eax, dword [0x4fad60]
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
xor ebx, ebx
mov dword [ebp - 4], 1
xor eax, eax
push ebx
lea ecx, [ebp + 8]
mov word [ebp - 0x864], ax
push ecx
mov edi, 7
or eax, 0xffffffff
lea ecx, [ebp - 0x864]
mov dword [ebp - 0x850], edi
mov dword [ebp - 0x854], ebx
call fcn.00404570
lea edx, [ebp - 0x864]
push edx
mov ecx, edx
mov byte [ebp - 4], 2
call fcn.0044dcc0
xor eax, eax
add esp, 4
mov word [ebp - 0x82c], ax
push 0x12
mov eax, str.PiDesktopExten.dll
lea esi, [ebp - 0x82c]
mov dword [ebp - 0x818], edi
mov dword [ebp - 0x81c], ebx
call fcn.00403e70
lea ecx, [ebp - 0x864]
push ecx
mov edx, esi
lea ecx, [ebp - 0x880]
mov byte [ebp - 4], 3
call fcn.0044e150
add esp, 4
mov esi, 8
cmp dword [ebp - 0x818], esi
jb 0x40b977
mov edx, dword [ebp - 0x82c]
push edx
call fcn.00490a16
add esp, 4
xor eax, eax
mov dword [ebp - 0x834], edi
mov dword [ebp - 0x838], ebx
mov word [ebp - 0x848], ax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x880]
cmp dword [ebp - 0x86c], esi
jae 0x40b9a4
lea eax, [ebp - 0x880]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40bd54
shr eax, 4
not eax
and eax, 1
je 0x40bd54
push 0x800
lea ecx, [ebp - 0x810]
push ebx
push ecx
call fcn.00497ad0
mov eax, dword [ebp + 0x34]
add esp, 0xc
mov esi, 0x2b
push 0x4de114
lea edi, [esi - 0x29]
lea ecx, [ebp + 0x24]
call fcn.00408eb0
test eax, eax
jne 0x40b9f8
mov esi, 0x2c
push ebx
push esi
lea edx, [ebp - 0x810]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40bb2a
xor eax, eax
mov word [ebp - 0x8b8], ax
mov edi, 7
push 0x19
mov eax, str.ArcGIS_binESRIRegAsm.exe
lea esi, [ebp - 0x8b8]
mov dword [ebp - 0x8a4], edi
mov dword [ebp - 0x8a8], ebx
call fcn.00403e70
mov byte [ebp - 4], 7
xor ecx, ecx
lea eax, [ebp - 0x810]
mov dword [ebp - 0x818], edi
mov dword [ebp - 0x81c], ebx
mov word [ebp - 0x82c], cx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40ba60
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x810]
lea esi, [ebp - 0x82c]
call fcn.00403e70
mov edx, esi
push edx
lea edx, [ebp - 0x8b8]
lea ecx, [ebp - 0x89c]
mov byte [ebp - 4], 8
call fcn.0044e150
add esp, 4
mov edi, eax
lea esi, [ebp - 0x848]
mov byte [ebp - 4], 9
call fcn.00409010
mov esi, 8
cmp dword [ebp - 0x888], esi
jb 0x40bac9
mov eax, dword [ebp - 0x89c]
push eax
call fcn.00490a16
add esp, 4
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x888], edi
mov dword [ebp - 0x88c], ebx
mov word [ebp - 0x89c], cx
cmp dword [ebp - 0x818], esi
jb 0x40bafa
mov edx, dword [ebp - 0x82c]
push edx
call fcn.00490a16
add esp, 4
xor eax, eax
mov byte [ebp - 4], 6
mov dword [ebp - 0x818], edi
mov dword [ebp - 0x81c], ebx
mov word [ebp - 0x82c], ax
cmp dword [ebp - 0x8a4], esi
jb 0x40bb2a
mov ecx, dword [ebp - 0x8b8]
push ecx
call fcn.00490a16
add esp, 4
cmp dword [ebp - 0x834], 8
mov eax, dword [ebp - 0x848]
jae 0x40bb3f
lea eax, [ebp - 0x848]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40bd4a
shr eax, 4
not eax
and eax, 1
je 0x40bd4a
push 0x4de170
lea edx, [ebp - 0x848]
push edx
lea eax, [ebp - 0x8d4]
push eax
call fcn.00407fa0
mov ecx, eax
lea eax, [ebp - 0x880]
lea ebx, [ebp - 0x89c]
mov byte [ebp - 4], 0xa
call fcn.0040e520
push eax
mov eax, str.__p:desktop__s
lea ecx, [ebp - 0x82c]
mov byte [ebp - 4], 0xb
call fcn.0040e220
mov esi, 8
add esp, 0x10
cmp dword [ebp - 0x888], esi
jb 0x40bbc0
mov ecx, dword [ebp - 0x89c]
push ecx
call fcn.00490a16
add esp, 4
xor edi, edi
xor edx, edx
mov ebx, 7
mov dword [ebp - 0x888], ebx
mov dword [ebp - 0x88c], edi
mov word [ebp - 0x89c], dx
cmp dword [ebp - 0x8c0], esi
jb 0x40bbf3
mov eax, dword [ebp - 0x8d4]
push eax
call fcn.00490a16
add esp, 4
push 0x40
lea ecx, [ebp - 0x91c]
push edi
push ecx
mov dword [ebp - 0x920], 0x44
call fcn.00497ad0
mov eax, dword [ebp - 0x82c]
add esp, 0xc
cmp dword [ebp - 0x818], esi
jae 0x40bc23
lea eax, [ebp - 0x82c]
lea edx, [ebp - 0x8ac]
push edx
lea ecx, [ebp - 0x920]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40bd2f
cmp dword [ebp - 0x818], esi
jb 0x40bc5e
mov edx, dword [ebp - 0x82c]
push edx
call fcn.00490a16
add esp, 4
xor eax, eax
mov dword [ebp - 0x818], ebx
mov dword [ebp - 0x81c], edi
mov word [ebp - 0x82c], ax
cmp dword [ebp - 0x834], esi
jb 0x40bc8a
mov ecx, dword [ebp - 0x848]
push ecx
call fcn.00490a16
add esp, 4
xor edx, edx
mov dword [ebp - 0x834], ebx
mov dword [ebp - 0x838], edi
mov word [ebp - 0x848], dx
cmp dword [ebp - 0x86c], esi
jb 0x40bcb6
mov eax, dword [ebp - 0x880]
push eax
call fcn.00490a16
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x86c], ebx
mov dword [ebp - 0x870], edi
mov word [ebp - 0x880], cx
cmp dword [ebp - 0x850], esi
jb 0x40bce2
mov edx, dword [ebp - 0x864]
push edx
call fcn.00490a16
add esp, 4
xor eax, eax
mov dword [ebp - 0x850], ebx
mov dword [ebp - 0x854], edi
mov word [ebp - 0x864], ax
cmp dword [ebp + 0x1c], esi
jb 0x40bd08
mov ecx, dword [ebp + 8]
push ecx
call fcn.00490a16
add esp, 4
xor edx, edx
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x18], edi
mov word [ebp + 8], dx
cmp dword [ebp + 0x38], esi
jb 0x40bd25
mov eax, dword [ebp + 0x24]
push eax
call fcn.00490a16
add esp, 4
mov eax, 1
jmp 0x40be08
cmp dword [ebp - 0x818], esi
jb 0x40bd46
mov ecx, dword [ebp - 0x82c]
push ecx
call fcn.00490a16
add esp, 4
xor ebx, ebx
jmp 0x40bd4f
mov esi, 8
mov edi, 7
cmp dword [ebp - 0x834], esi
jb 0x40bd6b
mov edx, dword [ebp - 0x848]
push edx
call fcn.00490a16
add esp, 4
xor eax, eax
mov dword [ebp - 0x834], edi
mov dword [ebp - 0x838], ebx
mov word [ebp - 0x848], ax
cmp dword [ebp - 0x86c], esi
jb 0x40bd97
mov ecx, dword [ebp - 0x880]
push ecx
call fcn.00490a16
add esp, 4
xor edx, edx
mov dword [ebp - 0x86c], edi
mov dword [ebp - 0x870], ebx
mov word [ebp - 0x880], dx
cmp dword [ebp - 0x850], esi
jb 0x40bdc3
mov eax, dword [ebp - 0x864]
push eax
call fcn.00490a16
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x850], edi
mov dword [ebp - 0x854], ebx
mov word [ebp - 0x864], cx
cmp dword [ebp + 0x1c], esi
jb 0x40bde9
mov edx, dword [ebp + 8]
push edx
call fcn.00490a16
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], ebx
mov word [ebp + 8], ax
cmp dword [ebp + 0x38], esi
jb 0x40be06
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.00490a16
add esp, 4
xor eax, eax
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.00490a21
mov esp, ebp
pop ebp
ret