Function at 0x140005f80
Capabilities:
Accept command line arguments
Initialize winsock library
Terminate process

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x200
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140013240]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov rsi, rdx
mov edi, ecx
lea r13, [0x1400132d0]
mov qword [rsp + 0x20], r13
lea rax, [fcn.1400057a0]
mov qword [rsp + 0x28], rax
xor r12d, r12d
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
lea rcx, str.Entered_main___n
call qword [sym.imp.MSVCR80.dll_printf]
lea r11, str.omtsreco.exe
mov qword [rsi], r11
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rbx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
xor r9d, r9d
mov r8, rbx
xor edx, edx
call sub.MFC80.DLL_Ordinal_1224
test eax, eax
jne 0x14000602f
lea rcx, str.MFC_failed_to_initialize__n
call qword [sym.imp.MSVCR80.dll_printf]
lea eax, [r12 + 1]
jmp 0x1400061f3
lea rdx, [rsp + 0x50]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140006051
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x14000606a
jmp 0x1400061cc
movzx eax, word [rsp + 0x50]
cmp al, 2
jne 0x1400061c6
shr ax, 8
cmp al, 2
jne 0x1400061c6
xor ecx, ecx
call fcn.14000ca90
test eax, eax
jne 0x140006089
lea rcx, str.Failed_to_init_the_AfxSocket_layer_n
call qword [sym.imp.MSVCR80.dll_printf]
xor eax, eax
jmp 0x1400061f3
cmp edi, 2
jge 0x140006095
xor eax, eax
jmp 0x1400061f3
cmp edi, 2
jle 0x1400060bd
lea rdx, str.noservice
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov ecx, dword [0x1400131b0]
test eax, eax
cmove ecx, r12d
mov dword [0x1400131b0], ecx
mov rdx, qword [rsi + 8]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, Ordinal_316
call sub.MSVCR80.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400060e8
mov rcx, rax
call fcn.140003000
jmp 0x1400060eb
mov rax, r12
mov qword [0x140013298], rax
test rax, rax
je 0x140006129
mov rdx, r13
mov rcx, rax
call fcn.140003060
test eax, eax
jne 0x140006129
mov rbx, qword [0x140013298]
test rbx, rbx
je 0x140006122
mov rcx, rbx
call int.140003030
mov rcx, rbx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [0x140013298], r12
mov qword [0x1400133e0], r12
mov qword [0x1400133d8], r12
mov qword [0x1400133e8], r12
mov qword [0x1400133f0], r12
cmp dword [0x1400131b0], 0
jne 0x140006168
mov dword [0x1400131b0], r12d
mov rdx, rsi
mov ecx, edi
call fcn.1400057a0
mov rbx, qword [0x140013298]
jmp 0x14000619f
lea rcx, [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x140006198
mov rbx, qword [0x140013298]
test rbx, rbx
je 0x14000619f
xor r9d, r9d
mov r8w, 1
mov edx, 0xc0000006
mov rcx, rbx
call fcn.140003280
mov rbx, qword [0x140013298]
jmp 0x1400061a8
test rbx, rbx
je 0x1400061bd
mov rcx, rbx
call int.140003030
mov rcx, rbx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void____ptr64_
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rcx, str.Failed_to_initialize_Windows_sockets_layer_for_version
call qword [sym.imp.MSVCR80.dll_printf]
mov edx, 2
mov r8d, edx
lea rcx, str.__d._d_n
call qword [sym.imp.MSVCR80.dll_printf]
mov eax, 1
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.14000be00
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret