Function at 0x140004cc0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x400
mov rax, qword [0x1400e3008]
xor rax, rsp
mov qword [rsp + 0x3f0], rax
mov rdi, rcx
mov ebx, r9d
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rcx, [0x140009af0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov r9d, 0x64
lea r8, [0x1400ec7c0]
mov rcx, rdi
mov qword [0x1400ec828], rax
lea edx, [r9 + 3]
call qword [sym.imp.USER32.dll_LoadStringA]
mov r9d, 0x64
lea r8, [0x1400ec750]
mov rcx, rdi
lea edx, [r9 + 9]
call qword [sym.imp.USER32.dll_LoadStringA]
mov rcx, rdi
call fcn.140005050
mov edx, ebx
mov rcx, rdi
call fcn.1400050e0
test eax, eax
je 0x140005025
lea rcx, vtable.CServerInfo.0
call fcn.14000d700
call fcn.140001b60
xor r9d, r9d
lea r8, [0x1400cc4a8]
lea rdx, str.__s__X_Team_MHPServer__UserCount_:__d_
lea rcx, [rsp + 0x2f0]
call qword [sym.imp.USER32.dll_wsprintfA]
mov rcx, qword [0x1400ec7b8]
lea rdx, [rsp + 0x2f0]
call qword [sym.imp.USER32.dll_SetWindowTextA]
call fcn.14009f150
lea r8, str.BlockData
lea rdx, str.select_count___from_sqlite_master_where_typetable_and_name_s
lea rcx, [rsp + 0x1f0]
call fcn.14009f860
lea rdx, [rsp + 0x1f0]
call fcn.14009f4d0
test eax, eax
jg 0x140004dd4
lea rdx, str.CREATE_TABLE_BlockData__Id_INTEGER_PRIMARY_KEY_AUTOINCREMENT_NOT_NULL__BlockType_INTEGER_NOT_NULL__BlockStartTime_BIGINT_NOT_NULL__BlockEndTime_BIGINT_NOT_NULL__DetectionId_INTEGER_NOT_NULL__
call fcn.14009f260
lea r8, str.DetectionData
lea rdx, str.select_count___from_sqlite_master_where_typetable_and_name_s
lea rcx, [rsp + 0x1f0]
call fcn.14009f860
lea rdx, [rsp + 0x1f0]
call fcn.14009f4d0
test eax, eax
jg 0x140004e0c
lea rdx, str.CREATE_TABLE_DetectionData__Id_INTEGER_PRIMARY_KEY_AUTOINCREMENT_NOT_NULL__DetectionType_INTEGER_NOT_NULL__Account_VARCHAR_10___Name_VARCHAR_10___IpAddress_VARCHAR_16__NOT_NULL__HardwareId_VARCHAR_36__NOT_NULL__Date_DATETIME_NOT_NULL_DEFAULT__datetime_now_localtime_____ProcessId_INTEGER__ProcessName_VARCHAR_100___ProcessType_INTEGER__ProcessEntry_BIGINT__ProcessCRC32_BIGINT__ProcessDump_BINARY_32___RelatedInfo_VARCHAR_100___
call fcn.14009f260
lea r8, str.ExceptionData
lea rdx, str.select_count___from_sqlite_master_where_typetable_and_name_s
lea rcx, [rsp + 0x1f0]
call fcn.14009f860
lea rdx, [rsp + 0x1f0]
call fcn.14009f4d0
test eax, eax
jg 0x140004e44
lea rdx, str.CREATE_TABLE_ExceptionData__Id_INTEGER_PRIMARY_KEY_AUTOINCREMENT_NOT_NULL__ProcessType_INTEGER_NOT_NULL__ProcessEntry_BIGINT_NOT_NULL__ProcessCRC32_BIGINT_NOT_NULL_ProcessDump_BINARY_32__NOT_NULL__ProcessName_VARCHAR_100__NOT_NULL__
call fcn.14009f260
call fcn.140003140
mov rax, qword [0x1400ec7b8]
lea r8, [0x1400ccc84]
mov qword [0x140175768], rax
call fcn.140009180
lea r8, str.LOGHACK_LOG
call fcn.140009180
mov ecx, 0x202
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140004f6c
movzx eax, word [0x1400eaf8c]
mov word [0x140176208], ax
call fcn.14000deb0
test al, al
jne 0x140004eaf
lea rcx, [0x1401761f0]
call fcn.14000ddb0
jmp 0x140004f86
call fcn.14000dff0
test al, al
jne 0x140004ec9
lea rcx, [0x1401761f0]
call fcn.14000ddb0
jmp 0x140004f86
call fcn.14000e090
test al, al
jne 0x140004ee3
lea rcx, [0x1401761f0]
call fcn.14000ddb0
jmp 0x140004f86
call fcn.14000e120
test al, al
jne 0x140004efd
lea rcx, [0x1401761f0]
call fcn.14000ddb0
jmp 0x140004f86
call fcn.14000e210
test al, al
jne 0x140004f14
lea rcx, [0x1401761f0]
call fcn.14000ddb0
jmp 0x140004f86
movzx r8d, word [0x140176208]
lea rdx, str._SocketManager__Server_started_at_port___d_
xor ecx, ecx
call fcn.14009f970
lea rcx, vtable.CServerInfo.0
call fcn.14000d650
mov rcx, qword [0x1400ec7b8]
xor r9d, r9d
mov r8d, 0x3e8
lea edx, [r9 + 0x64]
call qword [sym.imp.USER32.dll_SetTimer]
mov rcx, qword [0x1400ec7b8]
xor r9d, r9d
mov r8d, 0x1388
lea edx, [r9 + 0x66]
call qword [sym.imp.USER32.dll_SetTimer]
jmp 0x140004f86
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.WSAStartup___failed_with_error:__d
mov ecx, 1
mov r8d, eax
call fcn.14009f970
call fcn.14000d250
mov rcx, qword [0x1400ec7b8]
xor r9d, r9d
mov r8d, 0x7d0
lea edx, [r9 + 0x65]
call qword [sym.imp.USER32.dll_SetTimer]
mov edx, WSAGetLastError
mov rcx, rdi
call qword [sym.imp.USER32.dll_LoadAcceleratorsA]
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov rbx, rax
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x140005014
nop dword [rax]
mov rcx, qword [rsp + 0x20]
lea r8, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x140004ffd
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_DispatchMessageA]
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x140004fd0
mov rcx, qword [0x1400ec828]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x3f0]
xor rcx, rsp
call fcn.1400a02d0
mov rbx, qword [rsp + 0x418]
add rsp, 0x400
pop rdi
ret