Function at 0x4091f0
Capabilities:
Check if file exists
Check mutex on windows
Create process on windows

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push str.GlobalWinVNC
push ebp
mov ebx, 1
push ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov esi, eax
cmp esi, ebp
jne 0x409497
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
jne 0x409497
push 0x44
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.0045c220
xor eax, eax
mov dword [0x49040c], eax
mov dword [0x490410], eax
mov dword [0x490414], eax
mov dword [0x490418], eax
mov word [esp + 0x58], 5
mov dword [esp + 0x30], str.Winsta0Winlogon
mov dword [esp + 0x28], 0x44
call fcn.00408f00
call fcn.00408c70
lea ecx, [esp + 0x1c]
push ecx
call fcn.004091c0
add esp, 0x10
test eax, eax
je 0x40948b
mov edx, dword [esp + 0x10]
push ebp
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
push ebp
je 0x4093a2
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 0x49040c
lea ecx, [esp + 0x20]
push ecx
push ebp
push edx
push 0x408
push ebp
push ebp
push ebp
push 0x490308
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x4092e5
mov dword [0x490428], ebp
mov dword [esp + 0x18], ebx
call edi
jmp 0x409378
call edi
cmp eax, 0xe9
jne 0x409378
cmp dword [0x49042c], ebx
jne 0x409378
mov eax, dword [0x490428]
add eax, ebx
cmp eax, 3
mov dword [0x490428], eax
jle 0x409378
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.winsta.dll
call edi
push str.user32.dll
mov esi, eax
call edi
xor edi, edi
test esi, esi
mov ebx, eax
je 0x409337
push str.WinStationConnectW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test ebx, ebx
je 0x409349
push str.LockWorkStation
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test edi, edi
je 0x40936b
mov ecx, dword [0x490420]
xor eax, eax
test ecx, ecx
je 0x40935b
call ecx
push 0
push 0x47602c
push eax
push 0
push 0
call edi
call ebp
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebp, ebp
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x409480
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [esp + 0x10]
push 0x49040c
lea ecx, [esp + 0x20]
push ecx
push ebp
push ebp
push 8
push ebp
push ebp
push ebp
push 0x490308
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x4093ef
mov dword [0x490428], ebp
mov dword [esp + 0x18], ebx
call edi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x50
ret
call edi
cmp eax, 0xe9
jne 0x409480
cmp dword [0x49042c], ebx
jne 0x409480
mov eax, dword [0x490428]
add eax, ebx
cmp eax, 3
mov dword [0x490428], eax
jle 0x409480
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.winsta.dll
call edi
push str.user32.dll
mov esi, eax
call edi
xor edi, edi
test esi, esi
mov ebx, eax
je 0x409441
push str.WinStationConnectW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test ebx, ebx
je 0x409453
push str.LockWorkStation
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test edi, edi
je 0x409475
mov ecx, dword [0x490420]
xor eax, eax
test ecx, ecx
je 0x409465
call ecx
push 0
push 0x47602c
push eax
push 0
push 0
call edi
call ebp
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret