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

Disassembly:
push 0xffffffffffffffff
push 0x4a1dc2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc94
push ebx
push ebp
push esi
xor ebp, ebp
push edi
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.00472250
mov ecx, dword [0x4c1960]
mov dword [esp + 0xcac], ebp
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0xcb0], 1
call fcn.004885ca
push str.OServer3.exe
lea ecx, [esp + 0x14]
call fcn.00488824
lea ecx, [esp + 0x3c]
call fcn.00487126
mov eax, dword [esp + 0x10]
mov byte [esp + 0xcac], 2
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40d261
push 1
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x28], edi
jne 0x40d0bc
lea ecx, [esp + 0x3c]
mov byte [esp + 0xcac], 1
call fcn.00487159
lea ecx, [esp + 0x10]
mov byte [esp + 0xcac], 0
call fcn.00488433
lea ecx, [esp + 0x20]
mov dword [esp + 0xcac], 0xffffffff
call fcn.00437830
mov eax, 1
jmp 0x40d677
push 1
push str.OSERVER3
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
cmp ebx, ebp
mov dword [esp + 0x1c], ebx
je 0x40d1f7
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x4a6]
mov word [esp + 0x4a4], bp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
lea edx, [esp + 0x4a4]
push ecx
push 0x400
push edx
push ebx
stosw word es:[edi], ax
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x40d1fe
mov eax, dword [esp + 0x4b0]
lea ecx, [esp + 0x10]
push eax
call fcn.004885ca
lea ecx, [esp + 0x18]
push 1
push ecx
lea ecx, [esp + 0x18]
call fcn.00484cce
mov edx, dword [eax]
push 0x4c0624
push edx
call fcn.0041ec90
add esp, 8
cmp eax, ebp
lea ecx, [esp + 0x18]
sete bl
call fcn.00488433
test bl, bl
je 0x40d1a4
push 1
push ebp
lea ecx, [esp + 0x18]
call fcn.004847e5
push 0x22
lea ecx, [esp + 0x14]
call fcn.0048896f
cmp eax, ebp
jl 0x40d1e5
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call fcn.00484cce
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xcb0], 3
call fcn.0048857a
mov byte [esp + 0xcac], 2
lea ecx, [esp + 0x18]
jmp 0x40d1e0
push 0x20
lea ecx, [esp + 0x14]
call fcn.0048896f
cmp eax, ebp
jl 0x40d1e5
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00484cce
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xcb0], 4
call fcn.0048857a
mov byte [esp + 0xcac], 2
lea ecx, [esp + 0x18]
call fcn.00488433
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d205
jmp 0x40d20a
mov esi, 2
jmp 0x40d219
mov esi, 3
jmp 0x40d20e
mov esi, 4
mov ebx, dword [esp + 0x1c]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [esp + 0x28]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp esi, ebp
je 0x40d261
lea ecx, [esp + 0x3c]
mov byte [esp + 0xcac], 1
call fcn.00487159
lea ecx, [esp + 0x10]
mov byte [esp + 0xcac], 0
call fcn.00488433
lea ecx, [esp + 0x20]
mov dword [esp + 0xcac], 0xffffffff
call fcn.00437830
mov eax, esi
jmp 0x40d677
mov eax, dword [0x4c1960]
mov dword [esp + 0x14], eax
mov byte [esp + 0xcac], 5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [esp + 0x18]
push str.OCULAR3__lu
push ecx
call fcn.004850f3
mov edx, dword [esp + 0x20]
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push edx
push 0x1000
push ebp
push 4
push ebp
push 0xffffffffffffffff
call ebx
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x18], esi
jne 0x40d2fe
lea ecx, [esp + 0x14]
mov byte [esp + 0xcac], 2
call fcn.00488433
lea ecx, [esp + 0x3c]
mov byte [esp + 0xcac], 1
call fcn.00487159
lea ecx, [esp + 0x10]
mov byte [esp + 0xcac], 0
call fcn.00488433
lea ecx, [esp + 0x20]
mov dword [esp + 0xcac], 0xffffffff
call fcn.00437830
mov eax, 0x11
jmp 0x40d677
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x29e]
mov word [esp + 0x29c], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x29c]
push eax
push str._s_MEM
push ecx
call fcn.0041f764
add esp, 0xc
lea edx, [esp + 0x29c]
push edx
push 0x1000
push ebp
push 4
push ebp
push 0xffffffffffffffff
call ebx
cmp eax, ebp
mov dword [esp + 0x24], eax
jne 0x40d3a7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
mov byte [esp + 0xcac], 2
call fcn.00488433
lea ecx, [esp + 0x3c]
mov byte [esp + 0xcac], 1
call fcn.00487159
lea ecx, [esp + 0x10]
mov byte [esp + 0xcac], 0
call fcn.00488433
lea ecx, [esp + 0x20]
mov dword [esp + 0xcac], 0xffffffff
call fcn.00437830
mov eax, 0x101
jmp 0x40d677
push ebp
push ebp
push ebp
push 0xf001f
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
cmp ebx, ebp
je 0x40d601
mov ecx, 0x400
xor eax, eax
mov edi, ebx
lea edx, [esp + 0x94]
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, ebx
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 + 0x96]
mov word [esp + 0x94], bp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
push ecx
push str.Oserver3.exe__sn__s
push edx
stosw word es:[edi], ax
call fcn.0041f764
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x60]
mov dword [esp + 0x5c], ebp
rep stosd dword es:[edi], eax
add esp, 0xc
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x50]
mov dword [esp + 0x30], eax
push ecx
mov ecx, dword [esp + 0x14]
push edx
push ebp
mov dword [esp + 0x40], eax
push ebp
push 0x20
mov dword [esp + 0x4c], eax
push ebp
push ebp
lea eax, [esp + 0xb0]
push ebp
push eax
push ecx
mov dword [esp + 0x54], ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebp
je 0x40d60e
mov edx, dword [esp + 0x2c]
push 0xea60
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40d59b
mov eax, dword [esp + 0x1c]
cmp eax, ebp
jne 0x40d4cc
mov edx, dword [esp + 0x24]
push ebp
push ebp
push ebp
push 0xf001f
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebp
je 0x40d5a2
mov ecx, dword [eax]
push eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x1c]
cmp eax, 0x64
jne 0x40d5a9
mov esi, dword [ebx]
lea eax, [ebx + 4]
xor edx, edx
mov dword [esp + 0x28], esi
mov dx, word [eax + 0x18]
lea ecx, [edx + edx + 0x22]
cmp esi, ecx
jne 0x40d5b5
mov edx, dword [esp + 0xcb4]
push edx
push esi
push eax
call fcn.004507d0
mov ebp, dword [esi + ebx + 4]
add esp, 0xc
lea eax, [esi + ebp + 8]
cmp eax, 0x1000
ja 0x40d5c5
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x44]
call fcn.00487186
test ebp, ebp
jbe 0x40d541
mov edi, dword [esp + 0x40]
mov ecx, ebp
mov edx, ecx
lea esi, [esi + ebx + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0xcbc]
mov ecx, dword [esp + 0x40]
push eax
push ebp
push ecx
call fcn.004507d0
lea ecx, [esi + ebp]
add esp, 0xc
mov eax, dword [ecx + ebx + 8]
test eax, eax
je 0x40d597
lea edx, [eax + ebp]
lea edx, [edx + esi + 0xc]
cmp edx, 0x1000
ja 0x40d5d3
mov edx, dword [ecx + ebx + 0x24]
mov esi, dword [ecx + ebx + 0x28]
lea ecx, [ecx + ebx + 0xc]
lea edx, [esi + edx*2 + 0x23]
cmp eax, edx
jne 0x40d5df
mov edx, dword [esp + 0xcb8]
push edx
push eax
push ecx
call fcn.004507d0
add esp, 0xc
xor ebp, ebp
jmp 0x40d5eb
mov ebp, 0x14
jmp 0x40d5eb
mov ebp, 0x112
jmp 0x40d5eb
and eax, 0xffff
shl eax, 0x10
or al, 0x15
jmp 0x40d5e9
and esi, 0xffff
shl esi, 0x10
or esi, 0x16
mov ebp, esi
jmp 0x40d5eb
and ebp, 0xffff
shl ebp, 0x10
or ebp, 0x17
jmp 0x40d5eb
and eax, 0xffff
shl eax, 0x10
or al, 0x18
jmp 0x40d5e9
and eax, 0xffff
shl eax, 0x10
or al, 0x19
mov ebp, eax
mov eax, dword [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x30]
push ecx
call esi
jmp 0x40d619
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, 0x12
jmp 0x40d620
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, 0x13
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [esp + 0x18]
push edx
call esi
mov eax, dword [esp + 0x24]
push eax
call esi
lea ecx, [esp + 0x14]
mov byte [esp + 0xcac], 2
call fcn.00488433
lea ecx, [esp + 0x3c]
mov byte [esp + 0xcac], 1
call fcn.00487159
lea ecx, [esp + 0x10]
mov byte [esp + 0xcac], 0
call fcn.00488433
lea ecx, [esp + 0x20]
mov dword [esp + 0xcac], 0xffffffff
call fcn.00437830
mov eax, ebp
mov ecx, dword [esp + 0xca4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xca0
ret