Function at 0x40fc30
Capabilities:
Check if file exists
Create process on windows
Create process suspended
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5357bc
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x5a6a30]
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 eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x230], ebx
call fcn.0042aa6c
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40fc98
push 0x80004005
call fcn.004010e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x228], eax
mov dword [ebp - 4], ebx
call fcn.0042aa6c
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40fcc7
push 0x80004005
call fcn.004010e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 1
call fcn.0042aa6c
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40fcf7
push 0x80004005
call fcn.004010e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x220], eax
push str.DoNetworkScannerSelectorUninstall________________________IN_n
push 4
mov byte [ebp - 4], 2
call fcn.00403750
add esp, 8
call fcn.0042cb3b
mov edi, dword [eax + 0xc]
call fcn.0042cb3b
mov eax, dword [eax + 4]
mov esi, dword [eax + 0x44]
call fcn.0042cb3b
push 0x1c84
mov dword [eax + 0xc], esi
call fcn.0042a962
cmp eax, ebx
je 0x40fd56
push 0x1c84
push eax
lea ecx, [ebp - 0x228]
call fcn.00401a80
push 0x1c85
call fcn.0042a962
cmp eax, ebx
je 0x40fd75
push 0x1c85
push eax
lea ecx, [ebp - 0x220]
call fcn.00401a80
mov ecx, dword [ebp - 0x220]
mov eax, 1
sub eax, dword [ecx - 4]
mov ecx, dword [ecx - 8]
or ecx, eax
jge 0x40fd96
push ebx
lea ecx, [ebp - 0x220]
call fcn.004015a0
mov ecx, dword [ebp - 0x234]
mov esi, dword [ebp - 0x220]
push ecx
lea edx, [ebp - 0x224]
push esi
push edx
call fcn.00404ae0
add esp, 0xc
call fcn.0042cb3b
push 0x44
mov dword [eax + 0xc], edi
lea eax, [ebp - 0x28c]
push ebx
push eax
call fcn.0051eb70
push 0x208
lea ecx, [ebp - 0x218]
push ebx
push ecx
mov dword [ebp - 0x28c], 0x44
call fcn.0051eb70
add esp, 0x18
push 0x104
lea edx, [ebp - 0x218]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0051edd8
add esp, 8
cmp eax, ebx
je 0x40fe16
xor ecx, ecx
mov word [eax], cx
mov edi, dword [ebp - 0x228]
push edi
lea edx, [ebp - 0x218]
push 0x104
push edx
call fcn.0051f22b
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40feb6
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40feac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x41008e
mov ecx, dword [ebp - 0x224]
push ecx
lea edx, [ebp - 0x218]
push 0x104
push edx
call fcn.0051f22b
lea eax, [ebp - 0x218]
push eax
push str.__CreateProcess___lpCommandLine:__1_s___n
push 2
call fcn.00403750
add esp, 0x18
lea ecx, [ebp - 0x248]
push ecx
lea edx, [ebp - 0x28c]
push edx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40ffd9
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.0042cb3b
mov ecx, dword [eax + 4]
call fcn.0042cf67
push 0x1f4
mov byte [ebp - 4], 3
call edi
mov edx, dword [ebp - 0x248]
push 0x64
push edx
call ebx
mov esi, eax
call fcn.0040c100
lea ecx, [ebp - 0x229]
mov byte [ebp - 4], 2
call fcn.0040c890
cmp esi, 0x102
je 0x40ff28
mov ecx, dword [ebp - 0x248]
lea eax, [ebp - 0x230]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x248]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x230]
cmp eax, 1
ja 0x40ffbf
je 0x40ffa7
test eax, eax
jne 0x410004
mov dword [ebp - 0x21c], 1
jmp 0x410004
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x21c], 1
mov dword [eax], 1
jmp 0x410004
cmp eax, 0x1000
jb 0x410004
cmp eax, 0x1001
ja 0x410004
mov dword [ebp - 0x21c], 0
jmp 0x410004
push str._CreateProcess___is_missing_n
push 2
call fcn.00403750
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.__GetLastError__:_d_n
push 2
call fcn.00403750
add esp, 0xc
mov dword [ebp - 0x21c], ebx
push str.DoNetworkScannerSelectorUninstall________________________OUT_n
push 4
call fcn.00403750
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410039
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41005f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410088
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x21c]
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.0051e701
mov esp, ebp
pop ebp
ret