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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557096
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x5d7b20]
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]
xor ebx, ebx
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x228], ebx
call fcn.0044c104
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41a98f
push 0x80004005
call fcn.00403e70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x220], eax
push str.DoPortMonitorUninstall________________________IN_n
push 4
mov dword [ebp - 4], ebx
call fcn.00403ab0
add esp, 8
call fcn.0044bf0f
mov edi, dword [eax + 0xc]
call fcn.0044bf0f
mov eax, dword [eax + 4]
mov esi, dword [eax + 0x44]
call fcn.0044bf0f
push 0x1bbc
mov dword [eax + 0xc], esi
call fcn.0044bffa
cmp eax, ebx
je 0x41a9ed
push 0x1bbc
push eax
lea ecx, [ebp - 0x220]
call fcn.00404cb0
call fcn.0044bf0f
push 0x44
lea ecx, [ebp - 0x280]
push ebx
push ecx
mov dword [eax + 0xc], edi
call fcn.0053e550
push 0x208
lea edx, [ebp - 0x218]
push ebx
push edx
mov dword [ebp - 0x280], 0x44
call fcn.0053e550
add esp, 0x18
push 0x104
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x218]
push 0x5c
push ecx
call fcn.0053dd9b
add esp, 8
cmp eax, ebx
je 0x41aa50
xor edx, edx
mov word [eax], dx
mov esi, dword [ebp - 0x220]
push esi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0053e396
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41aaa6
mov dword [ebp - 4], eax
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41aa9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x41abfc
lea ecx, [ebp - 0x23c]
push ecx
lea edx, [ebp - 0x280]
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 0x41ab93
mov ecx, dword [ebp - 0x238]
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]
lea ebx, [ebx]
call fcn.0044bf0f
mov ecx, dword [eax + 4]
call fcn.0044d311
push 0x1f4
mov byte [ebp - 4], 1
call edi
mov edx, dword [ebp - 0x23c]
push 0x64
push edx
call ebx
mov esi, eax
call fcn.0040ad20
lea ecx, [ebp - 0x221]
mov byte [ebp - 4], 0
call fcn.0040c110
cmp esi, 0x102
je 0x41aaf0
mov ecx, dword [ebp - 0x23c]
lea eax, [ebp - 0x228]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x228]
sub eax, 0
je 0x41ab87
dec eax
je 0x41ab6f
sub eax, 0xfff
jne 0x41abbe
mov dword [ebp - 0x21c], eax
jmp 0x41abbe
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x21c], 1
mov dword [eax], 1
jmp 0x41abbe
mov dword [ebp - 0x21c], 1
jmp 0x41abbe
push str._CreateProcess___is_missing_n
push 2
call fcn.00403ab0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.__GetLastError__:_d_n
push 2
call fcn.00403ab0
add esp, 0xc
mov dword [ebp - 0x21c], ebx
push str.DoPortMonitorUninstall________________________OUT_n
push 4
call fcn.00403ab0
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41abf6
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.0053e1ad
mov esp, ebp
pop ebp
ret