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

Disassembly:
push 0xffffffffffffffff
push 0x49e5d7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc84
push ebx
push ebp
push esi
xor ebx, ebx
push edi
lea eax, [esp + 0x20]
push ebx
push eax
call fcn.0046f850
mov ecx, dword [0x4be930]
mov dword [esp + 0xc9c], ebx
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0xca0], 1
call fcn.00484e84
push str.OServer3.exe
lea ecx, [esp + 0x14]
call fcn.004850de
mov eax, dword [esp + 0x10]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40c7dc
push 1
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x28], edi
jne 0x40c64a
lea ecx, [esp + 0x10]
mov byte [esp + 0xc9c], 0
call fcn.00484ced
lea ecx, [esp + 0x20]
mov dword [esp + 0xc9c], 0xffffffff
call fcn.00438860
mov eax, 1
jmp 0x40cc46
push 1
push str.OSERVER3
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, eax
cmp ebp, ebx
je 0x40c787
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x496]
mov word [esp + 0x494], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
lea edx, [esp + 0x494]
push ecx
push 0x400
push edx
push ebp
stosw word es:[edi], ax
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x40c78e
mov eax, dword [esp + 0x4a0]
lea ecx, [esp + 0x10]
push eax
call fcn.00484e84
lea ecx, [esp + 0x14]
push 1
push ecx
lea ecx, [esp + 0x18]
call fcn.0048153e
mov edx, dword [eax]
push 0x4bd618
push edx
call fcn.0041e960
add esp, 8
cmp eax, ebx
lea ecx, [esp + 0x14]
sete byte [esp + 0x1f]
call fcn.00484ced
mov al, byte [esp + 0x1f]
test al, al
je 0x40c734
push 1
push ebx
lea ecx, [esp + 0x18]
call fcn.00481055
push 0x22
lea ecx, [esp + 0x14]
call fcn.00485229
cmp eax, ebx
jl 0x40c775
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
call fcn.0048153e
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xca0], 2
call fcn.00484e34
mov byte [esp + 0xc9c], 1
lea ecx, [esp + 0x14]
jmp 0x40c770
push 0x20
lea ecx, [esp + 0x14]
call fcn.00485229
cmp eax, ebx
jl 0x40c775
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0048153e
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xca0], 3
call fcn.00484e34
mov byte [esp + 0xc9c], 1
lea ecx, [esp + 0x14]
call fcn.00484ced
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c795
jmp 0x40c79a
mov esi, 2
jmp 0x40c7a5
mov esi, 3
jmp 0x40c79a
mov esi, 4
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [esp + 0x28]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp esi, ebx
je 0x40c7dc
lea ecx, [esp + 0x10]
mov byte [esp + 0xc9c], 0
call fcn.00484ced
lea ecx, [esp + 0x20]
mov dword [esp + 0xc9c], 0xffffffff
call fcn.00438860
mov eax, esi
jmp 0x40cc46
mov eax, dword [0x4be930]
mov dword [esp + 0x18], eax
mov byte [esp + 0xc9c], 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [esp + 0x1c]
push str.OCULAR3__lu
push ecx
call fcn.004819a0
mov edx, dword [esp + 0x24]
add esp, 0xc
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push edx
push 0x1000
push ebx
push 4
push ebx
push 0xffffffffffffffff
call ebp
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x3c], esi
jne 0x40c868
lea ecx, [esp + 0x18]
mov byte [esp + 0xc9c], 1
call fcn.00484ced
lea ecx, [esp + 0x10]
mov byte [esp + 0xc9c], 0
call fcn.00484ced
lea ecx, [esp + 0x20]
mov dword [esp + 0xc9c], 0xffffffff
call fcn.00438860
mov eax, 0x11
jmp 0x40cc46
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x28e]
mov word [esp + 0x28c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x28c]
push eax
push str._s_MEM
push ecx
call fcn.0041f434
add esp, 0xc
lea edx, [esp + 0x28c]
push edx
push 0x1000
push ebx
push 4
push ebx
push 0xffffffffffffffff
call ebp
cmp eax, ebx
mov dword [esp + 0x24], eax
jne 0x40c900
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
mov byte [esp + 0xc9c], 1
call fcn.00484ced
lea ecx, [esp + 0x10]
mov byte [esp + 0xc9c], 0
call fcn.00484ced
lea ecx, [esp + 0x20]
mov dword [esp + 0xc9c], 0xffffffff
call fcn.00438860
mov eax, 0x101
jmp 0x40cc46
push ebx
push ebx
push ebx
push 0xf001f
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
cmp ebp, ebx
je 0x40cbe1
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 + 0x18]
push ecx
push str.Oserver3.exe__sn__s
push edx
stosw word es:[edi], ax
call fcn.0041f434
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 + 0x2c]
lea edx, [esp + 0x40]
mov dword [esp + 0x30], eax
push ecx
mov ecx, dword [esp + 0x14]
push edx
push ebx
mov dword [esp + 0x40], eax
push ebx
push 0x20
mov dword [esp + 0x4c], eax
push ebx
push ebx
lea eax, [esp + 0xa0]
push ebx
push eax
push ecx
mov dword [esp + 0x54], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebx
je 0x40cbee
mov edx, dword [esp + 0x2c]
push 0xea60
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40cb7b
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x40ca25
mov edx, dword [esp + 0x24]
push ebx
push ebx
push ebx
push 0xf001f
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
je 0x40cb82
mov ecx, dword [eax]
push eax
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x14]
cmp eax, 0x64
jne 0x40cb89
mov esi, dword [ebp]
xor edx, edx
mov dx, word [ebp + 0x1c]
mov dword [esp + 0x28], esi
lea eax, [edx + edx + 0x22]
cmp esi, eax
jne 0x40cb95
mov edx, dword [esp + 0xca4]
mov ecx, dword [ebp + 4]
mov dword [edx], ecx
mov ecx, dword [esp + 0xca8]
mov eax, dword [ebp + 8]
lea edx, [ebp + 0x24]
mov dword [ecx], eax
mov ecx, dword [esp + 0xcac]
push edx
call fcn.00438b40
mov eax, dword [esp + 0xcb0]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov edx, dword [ebp + 0x10]
mov ecx, dword [esp + 0xcb4]
mov dword [eax + 4], edx
mov eax, dword [ebp + 0x18]
mov dword [ecx], eax
mov ebx, dword [esi + ebp + 4]
lea edx, [ebx + esi + 8]
cmp edx, 0x1000
ja 0x40cba5
mov edi, dword [esp + 0xcb8]
push 0xffffffffffffffff
push ebx
mov ecx, edi
call fcn.00483a40
test ebx, ebx
jbe 0x40cad1
mov edi, dword [edi + 4]
mov ecx, ebx
mov eax, ecx
lea esi, [esi + 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 esi, dword [esp + 0x28]
mov ecx, dword [esp + 0xcbc]
lea eax, [ebx + esi]
lea edi, [eax + ebp]
mov dword [ecx], 0
mov eax, dword [edi + 8]
test eax, eax
je 0x40cb77
lea edx, [eax + ebx]
lea edx, [edx + esi + 0xc]
cmp edx, 0x1000
ja 0x40cbb3
mov edx, dword [edi + 0x24]
mov esi, dword [edi + 0x28]
lea edx, [esi + edx*2 + 0x23]
cmp eax, edx
jne 0x40cbbf
mov eax, dword [edi + 0xc]
test eax, eax
mov dword [ecx], eax
je 0x40cb77
mov ecx, dword [esp + 0xccc]
mov eax, dword [edi + 0x10]
mov dword [ecx], eax
mov eax, dword [esp + 0xcc0]
mov edx, dword [edi + 0x14]
mov dword [eax], edx
mov eax, dword [esp + 0xcc8]
mov ecx, dword [edi + 0x1c]
mov dword [eax], ecx
mov edx, dword [edi + 0x20]
mov ecx, dword [esp + 0xcc4]
mov dword [eax + 4], edx
lea eax, [edi + 0x2c]
push eax
call fcn.00438b40
mov edx, dword [esp + 0xcd0]
mov ecx, dword [edi + 0x18]
mov dword [edx], ecx
mov eax, dword [edi + 0x24]
lea ecx, [edi + eax*2 + 0x2e]
push ecx
mov ecx, dword [esp + 0xcd8]
call fcn.004333a0
xor ebx, ebx
jmp 0x40cbcb
mov ebx, 0x14
jmp 0x40cbcb
mov ebx, 0x112
jmp 0x40cbcb
and eax, 0xffff
shl eax, 0x10
or al, 0x15
jmp 0x40cbc9
and esi, 0xffff
shl esi, 0x10
or esi, 0x16
mov ebx, esi
jmp 0x40cbcb
and ebx, 0xffff
shl ebx, 0x10
or ebx, 0x17
jmp 0x40cbcb
and eax, 0xffff
shl eax, 0x10
or al, 0x18
jmp 0x40cbc9
and eax, 0xffff
shl eax, 0x10
or al, 0x19
mov ebx, eax
mov edx, dword [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x30]
push eax
call esi
jmp 0x40cbf9
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0x12
jmp 0x40cc00
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0x13
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x3c]
push ecx
call esi
mov edx, dword [esp + 0x24]
push edx
call esi
lea ecx, [esp + 0x18]
mov byte [esp + 0xc9c], 1
call fcn.00484ced
lea ecx, [esp + 0x10]
mov byte [esp + 0xc9c], 0
call fcn.00484ced
lea ecx, [esp + 0x20]
mov dword [esp + 0xc9c], 0xffffffff
call fcn.00438860
mov eax, ebx
mov ecx, dword [esp + 0xc94]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc90
ret