Function at 0x401465
Capabilities:
Accept command line arguments
Check if file exists
Create process on windows
Create process suspended
Get file attributes

Disassembly:
jmp 0x412f50
push 0xffffffffffffffff
push 0x471169
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc88
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CString::CString_3
push 0x5c
lea ecx, [esp + 0x28]
mov dword [esp + 0xca4], ebp
call sub.MFC42u.DLL_CString::ReverseFind
cmp eax, 0xffffffff
je 0x412fe8
mov ecx, dword [esp + 0x24]
lea edx, [ecx + eax*2 + 2]
lea ecx, [esp + 0x2c]
push edx
call sub.MFC42u.DLL_CString::CString_3
push str.__IPGDEBUG
lea ecx, [esp + 0x30]
mov byte [esp + 0xca4], 1
call sub.MFC42u.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x412fd7
mov dword [esp + 0x14], 1
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
mov byte [esp + 0xca0], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_4
push 1
push ebp
push ebp
mov byte [esp + 0xcac], 2
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
cmp esi, ebp
je 0x4131e9
push 1
push str.OSERVER3
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x2c], ebx
je 0x413164
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x49a]
mov word [esp + 0x498], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x30]
lea ecx, [esp + 0x498]
push eax
push 0x400
push ecx
push ebx
mov dword [esp + 0x40], 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x41316b
mov edx, dword [esp + 0x4a4]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42u.DLL_CString::operator
lea eax, [esp + 0x1c]
push 1
push eax
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::Left
mov ecx, dword [eax]
push 0x480ef8
push ecx
mov byte [esp + 0xca8], 3
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
sete bl
mov byte [esp + 0xca0], 2
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x413111
push 1
push 0
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::Delete
push 0x22
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::Find
test eax, eax
jl 0x413152
lea edx, [esp + 0x1c]
push eax
push edx
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xca4], 4
call sub.MFC42u.DLL_CString::operator_1
mov byte [esp + 0xca0], 2
lea ecx, [esp + 0x1c]
jmp 0x41314d
push 0x20
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::Find
test eax, eax
jl 0x413152
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xca4], 5
call sub.MFC42u.DLL_CString::operator_1
mov byte [esp + 0xca0], 2
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x413172
jmp 0x413177
mov ebp, 2
jmp 0x413186
mov ebp, 3
jmp 0x41317b
mov ebp, 4
mov ebx, dword [esp + 0x2c]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebp, ebp
jne 0x4131ee
test edi, edi
mov dword [esp + 0x28], 1
je 0x4131ee
push 0x486f38
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString_3
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push 0x483194
push eax
mov byte [esp + 0xcac], 6
call sub.MFC42u.DLL_CString::Format
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ebp
push ebp
push ecx
call sub.MFC42u.DLL_AfxMessageBox
lea ecx, [esp + 0x14]
mov byte [esp + 0xca0], 2
call sub.MFC42u.DLL_CString::CString
jmp 0x4131ee
mov ebp, 1
lea edx, [esp + 0x20]
push 0
push edx
call fcn.00459040
mov eax, dword [esp + 0x28]
mov byte [esp + 0xca0], 7
test eax, eax
jne 0x413290
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42u.DLL_CString::operator
push str.OServer3_x64.exe
lea ecx, [esp + 0x14]
call fcn.0041f1ac
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ecx
call esi
cmp eax, 0xffffffff
je 0x413333
test edi, edi
je 0x413290
push 0x486f38
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString_3
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push 0x483130
push eax
mov byte [esp + 0xcac], 8
call sub.MFC42u.DLL_CString::Format
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 0
push 0
push ecx
call sub.MFC42u.DLL_AfxMessageBox
mov byte [esp + 0xca0], 7
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString_4
mov byte [esp + 0xca0], 0xa
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [esp + 0x1c]
push str.OCULAR3__lu
push ecx
call sub.MFC42u.DLL_CString::Format
mov edx, dword [esp + 0x24]
add esp, 0xc
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push edx
push 0x1000
push 0
push 4
push 0
push 0xffffffffffffffff
call ebp
mov esi, eax
test esi, esi
mov dword [esp + 0x30], esi
jne 0x4133ec
lea ecx, [esp + 0x18]
mov byte [esp + 0xca0], 7
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0xca0], 2
call fcn.00425ff0
lea ecx, [esp + 0x10]
mov byte [esp + 0xca0], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0xca0], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, 0x11
jmp 0x413832
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42u.DLL_CString::operator
push str.OServer3.exe
lea ecx, [esp + 0x14]
call fcn.0041f1ac
mov eax, dword [esp + 0x10]
push eax
call esi
cmp eax, 0xffffffff
je 0x4133af
test edi, edi
je 0x413290
push 0x486f38
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString_3
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push 0x4830dc
push edx
mov byte [esp + 0xcac], 9
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x20]
add esp, 0xc
push 0
push 0
push eax
call sub.MFC42u.DLL_AfxMessageBox
mov byte [esp + 0xca0], 7
lea ecx, [esp + 0x14]
jmp 0x41328b
lea ecx, [esp + 0x20]
mov byte [esp + 0xca0], 2
call fcn.00425ff0
lea ecx, [esp + 0x10]
mov byte [esp + 0xca0], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0xca0], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, ebp
jmp 0x413832
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x292]
mov word [esp + 0x290], 0
rep stosd dword es:[edi], eax
mov ebx, dword [sym.imp.MSVCRT.dll_swprintf]
lea ecx, [esp + 0x290]
stosw word es:[edi], ax
mov eax, dword [esp + 0x18]
push eax
push str._s_MEM
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x290]
push edx
push 0x1000
push 0
push 4
push 0
push 0xffffffffffffffff
call ebp
test eax, eax
mov dword [esp + 0x28], eax
jne 0x41349c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
mov byte [esp + 0xca0], 7
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0xca0], 2
call fcn.00425ff0
lea ecx, [esp + 0x10]
mov byte [esp + 0xca0], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0xca0], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, 0x101
jmp 0x413832
push 0
push 0
push 0
push 0xf001f
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
test ebp, ebp
je 0x4137bc
mov ecx, 0x400
xor eax, eax
mov edi, ebp
lea edx, [esp + 0x88]
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 + 0x8a]
mov word [esp + 0x88], 0
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 ebx
xor esi, esi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x54]
mov dword [esp + 0x50], esi
add esp, 0xc
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x34]
lea edx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
push edx
push esi
mov dword [esp + 0x48], eax
push esi
push 0x20
mov dword [esp + 0x54], eax
push esi
push esi
lea eax, [esp + 0xa4]
push esi
push eax
push ecx
mov dword [esp + 0x5c], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, esi
je 0x4137c9
mov edx, dword [esp + 0x34]
push 0xea60
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x413754
mov ebx, dword [esp + 0x14]
cmp ebx, esi
jne 0x4135c5
mov edx, dword [esp + 0x28]
push esi
push esi
push esi
push 0xf001f
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
je 0x41375b
mov ecx, dword [eax]
push eax
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, dword [esp + 0x14]
cmp ebx, 0x64
jne 0x413762
mov edi, dword [ebp]
xor edx, edx
mov dx, word [ebp + 0x1c]
mov dword [esp + 0x1c], edi
lea eax, [edx + edx + 0x22]
cmp edi, eax
jne 0x413770
mov edx, dword [esp + 0xca8]
mov ecx, dword [ebp + 4]
mov dword [edx], ecx
mov ecx, dword [esp + 0xcac]
mov eax, dword [ebp + 8]
lea edx, [ebp + 0x24]
mov dword [ecx], eax
mov ecx, dword [esp + 0xcb0]
push edx
call fcn.004262d0
mov eax, dword [esp + 0xcb4]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov edx, dword [ebp + 0x10]
mov ecx, dword [esp + 0xcb8]
mov dword [eax + 4], edx
mov eax, dword [ebp + 0x18]
mov dword [ecx], eax
mov ebx, dword [edi + ebp + 4]
lea edx, [ebx + edi + 8]
cmp edx, 0x1000
ja 0x413780
mov esi, dword [esp + 0xcbc]
push 0xffffffffffffffff
push ebx
mov ecx, esi
call sub.MFC42u.DLL_CByteArray::SetSize
test ebx, ebx
jbe 0x413673
mov eax, dword [esi + 4]
mov ecx, ebx
lea esi, [edi + ebp + 8]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0xcc0]
lea esi, [ebx + edi]
add esi, ebp
mov dword [ecx], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x413750
lea edx, [eax + ebx]
lea edx, [edx + edi + 0xc]
cmp edx, 0x1000
ja 0x41378e
mov edx, dword [esi + 0x24]
mov edi, dword [esi + 0x28]
lea edx, [edi + edx*2 + 0x23]
cmp eax, edx
jne 0x41379a
mov eax, dword [esi + 0xc]
mov ebx, dword [esp + 0xcc4]
mov dword [ecx], eax
mov ecx, dword [esi + 0x14]
mov dword [ebx], ecx
mov eax, dword [esi + 0x24]
cmp eax, 0x10
mov edi, 1
jne 0x4136ed
push 0x10
lea edx, [esi + 0x2c]
push str.0000000000000000
push edx
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4136ed
xor edi, edi
mov eax, dword [esp + 0xcc0]
cmp dword [eax], 0
jne 0x413702
cmp dword [ebx], 0
je 0x413750
test edi, edi
je 0x413750
mov edx, dword [esp + 0xcd0]
mov ecx, dword [esi + 0x10]
mov eax, dword [esp + 0xccc]
mov dword [edx], ecx
mov ecx, dword [esi + 0x1c]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov ecx, dword [esp + 0xcc8]
mov dword [eax + 4], edx
lea eax, [esi + 0x2c]
push eax
call fcn.004262d0
mov edx, dword [esp + 0xcd4]
mov ecx, dword [esi + 0x18]
mov dword [edx], ecx
mov eax, dword [esi + 0x24]
lea ecx, [esi + eax*2 + 0x2e]
push ecx
mov ecx, dword [esp + 0xcdc]
call fcn.004208d0
xor ebx, ebx
jmp 0x4137a6
mov ebx, 0x14
jmp 0x4137a6
mov ebx, 0x112
jmp 0x4137a6
and ebx, 0xffff
shl ebx, 0x10
or ebx, 0x15
jmp 0x4137a6
and edi, 0xffff
shl edi, 0x10
or edi, 0x16
mov ebx, edi
jmp 0x4137a6
and ebx, 0xffff
shl ebx, 0x10
or ebx, 0x17
jmp 0x4137a6
and eax, 0xffff
shl eax, 0x10
or al, 0x18
jmp 0x4137a4
and eax, 0xffff
shl eax, 0x10
or al, 0x19
mov ebx, eax
mov edx, dword [esp + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x38]
push eax
call esi
jmp 0x4137d4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0x12
jmp 0x4137db
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0x13
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x30]
push ecx
call esi
mov edx, dword [esp + 0x28]
push edx
call esi
lea ecx, [esp + 0x18]
mov byte [esp + 0xca0], 7
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0xca0], 2
call fcn.00425ff0
lea ecx, [esp + 0x10]
mov byte [esp + 0xca0], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0xca0], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, ebx
mov ecx, dword [esp + 0xc98]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc94
ret