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

Disassembly:
push 0xffffffffffffffff
push 0x5d94c7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa7c
push ebx
push ebp
push esi
xor ebx, ebx
push edi
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.00488f60
mov ecx, dword [0x641250]
mov dword [esp + 0xa94], ebx
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0xa98], 1
call fcn.005bbc1a
push str.OServer3.exe
lea ecx, [esp + 0x14]
call fcn.005bbe74
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or edi, 0xffffffff
cmp eax, edi
jne 0x42f7e6
push 1
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
cmp ebp, ebx
je 0x42f853
push 1
push 0x63c384
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebx
jne 0x42f68b
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x42f853
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x28e]
mov word [esp + 0x28c], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
lea edx, [esp + 0x28c]
push ecx
push 0x400
push edx
push esi
stosw word es:[edi], ax
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x42f79c
mov eax, dword [esp + 0x298]
lea ecx, [esp + 0x10]
push eax
call fcn.005bbc1a
lea ecx, [esp + 0x14]
push 1
push ecx
lea ecx, [esp + 0x18]
call fcn.005b8289
mov edx, dword [eax]
push 0x63c380
push edx
call fcn.0045442e
add esp, 8
cmp eax, ebx
lea ecx, [esp + 0x14]
sete byte [esp + 0x1f]
call fcn.005bba83
cmp byte [esp + 0x1f], bl
je 0x42f75b
push 1
push ebx
lea ecx, [esp + 0x18]
call fcn.005b7da0
push 0x22
lea ecx, [esp + 0x14]
call fcn.005bbfbf
cmp eax, ebx
jl 0x42f79c
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
call fcn.005b8289
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xa98], 2
call fcn.005bbbca
mov byte [esp + 0xa94], 1
lea ecx, [esp + 0x14]
jmp 0x42f797
push 0x20
lea ecx, [esp + 0x14]
call fcn.005bbfbf
cmp eax, ebx
jl 0x42f79c
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.005b8289
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xa98], 3
call fcn.005bbbca
mov byte [esp + 0xa94], 1
lea ecx, [esp + 0x14]
call fcn.005bba83
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call edi
push ebp
call edi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42f7e3
lea ecx, [esp + 0x10]
mov byte [esp + 0xa94], bl
call fcn.005bba83
lea ecx, [esp + 0x18]
mov dword [esp + 0xa94], 0xffffffff
call fcn.0046cf50
xor eax, eax
jmp 0x42fa6b
or edi, 0xffffffff
mov eax, dword [0x641250]
mov dword [esp + 0x20], eax
mov byte [esp + 0xa94], 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [esp + 0x24]
push str.OCULAR3__lu
push ecx
call fcn.005b86eb
mov edx, dword [esp + 0x2c]
add esp, 0xc
push edx
push 0x1000
push ebx
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov dword [esp + 0x38], eax
je 0x42f842
push ebx
push ebx
push ebx
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
cmp ebp, ebx
jne 0x42f87a
lea ecx, [esp + 0x20]
mov byte [esp + 0xa94], 1
call fcn.005bba83
lea ecx, [esp + 0x10]
mov byte [esp + 0xa94], bl
call fcn.005bba83
lea ecx, [esp + 0x18]
mov dword [esp + 0xa94], edi
call fcn.0046cf50
xor eax, eax
jmp 0x42fa6b
mov ecx, 0x400
xor eax, eax
mov edi, ebp
lea edx, [esp + 0x84]
rep stosd dword es:[edi], eax
mov edi, str.11A988EC391A445eBDE38A038F2767D7
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x81
lea edi, [esp + 0x86]
mov word [esp + 0x84], bx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x20]
push ecx
push str.Oserver3.exe__sn__s
push edx
stosw word es:[edi], ax
call fcn.00454759
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x50]
mov dword [esp + 0x4c], ebx
rep stosd dword es:[edi], eax
add esp, 0xc
lea ecx, [esp + 0x28]
lea edx, [esp + 0x40]
mov dword [esp + 0x2c], eax
push ecx
mov ecx, dword [esp + 0x14]
push edx
push ebx
mov dword [esp + 0x3c], eax
push ebx
push 0x20
mov dword [esp + 0x48], eax
push ebx
push ebx
lea eax, [esp + 0xa0]
push ebx
push eax
push ecx
mov dword [esp + 0x50], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebx
mov dword [esp + 0x24], ebx
je 0x42fa1e
mov edx, dword [esp + 0x28]
push 0x493e0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x42fa08
cmp dword [esp + 0x14], 0x64
jne 0x42fa08
mov eax, dword [ebp]
xor edx, edx
mov dx, word [ebp + 0x1c]
mov dword [esp + 0x3c], eax
lea ecx, [edx + edx + 0x22]
cmp eax, ecx
jne 0x42fa08
mov esi, dword [eax + ebp + 4]
lea edx, [esi + eax + 8]
cmp edx, 0x1000
ja 0x42fa08
mov ecx, dword [esp + 0xa9c]
mov eax, dword [ebp + 4]
mov dword [esp + 0x24], 1
mov dword [ecx], eax
mov eax, dword [esp + 0xaa0]
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0x24]
push ecx
mov ecx, dword [esp + 0xaa8]
mov dword [eax], edx
call fcn.0046d230
mov eax, dword [esp + 0xaa8]
mov edx, dword [ebp + 0xc]
mov edi, dword [esp + 0xab0]
push 0xffffffffffffffff
mov dword [eax], edx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], ecx
mov eax, dword [esp + 0xab0]
mov edx, dword [ebp + 0x18]
push esi
mov ecx, edi
mov dword [eax], edx
call fcn.005ba47a
cmp esi, ebx
jbe 0x42fa08
mov edx, dword [esp + 0x3c]
mov edi, dword [edi + 4]
mov ecx, esi
mov eax, ecx
lea esi, [edx + ebp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x2c]
push edx
call esi
jmp 0x42fa24
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x38]
push eax
call esi
lea ecx, [esp + 0x20]
mov byte [esp + 0xa94], 1
call fcn.005bba83
lea ecx, [esp + 0x10]
mov byte [esp + 0xa94], bl
call fcn.005bba83
lea ecx, [esp + 0x18]
mov dword [esp + 0xa94], 0xffffffff
call fcn.0046cf50
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xa8c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa88
ret