Function at 0x10005000
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10006a63
mov eax, dword fs:[0]
push eax
sub esp, 0x204
mov eax, dword [0x10009004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1d8], ecx
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x1d4]
push ecx
push 0x201
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x1e4], eax
cmp dword [ebp - 0x1e4], 0
je 0x10005067
xor al, al
jmp 0x100053e8
push 0
call sub.event.dll_event_enable_debug_logging
add esp, 4
call sub.event.dll_event_base_new
mov edx, dword [ebp - 0x1d8]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x1d8]
cmp dword [eax + 0x1c], 0
jne 0x100050ab
push str.Could_not_initialize_libevent__n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.10005740
add esp, 8
xor al, al
jmp 0x100053e8
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov edx, 2
mov word [ebp - 0x20], dx
mov eax, dword [ebp - 0x1d8]
movzx ecx, word [eax + 0x18]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
mov ecx, dword [ebp - 0x1d8]
call fcn.100048d0
test eax, eax
jne 0x1000516d
push 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x1c], eax
push 0x10
lea edx, [ebp - 0x20]
push edx
push 0xffffffffffffffff
push 0xa
mov eax, dword [ebp - 0x1d8]
push eax
push 0x10004930
mov ecx, dword [ebp - 0x1d8]
mov edx, dword [ecx + 0x1c]
push edx
call sub.event.dll_evconnlistener_new_bind
add esp, 0x1c
mov ecx, dword [ebp - 0x1d8]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp - 0x1d8]
cmp dword [edx + 0x20], 0
jne 0x10005168
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
push eax
push str.Could_not_create_a_listener:_s__n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.10005740
add esp, 0xc
xor al, al
jmp 0x100053e8
jmp 0x100052bf
push 1
mov ecx, dword [ebp - 0x1d8]
mov edx, dword [ecx + 0x1c]
push edx
call sub.event.dll_evdns_base_new
add esp, 8
mov dword [ebp - 0x1e8], eax
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [eax + 0x1c]
push ecx
call sub.event.dll_bufferevent_socket_new
add esp, 0xc
mov dword [ebp - 0x1e0], eax
mov edx, dword [ebp - 0x1d8]
push edx
push 0x100043e0
push 0x10004610
push 0x100044f0
mov eax, dword [ebp - 0x1e0]
push eax
call sub.event.dll_bufferevent_setcb
add esp, 0x14
mov ecx, dword [ebp - 0x1d8]
movzx edx, word [ecx + 0x18]
push edx
mov ecx, dword [ebp - 0x1d8]
call fcn.10004340
push eax
push 2
mov eax, dword [ebp - 0x1e8]
push eax
mov ecx, dword [ebp - 0x1e0]
push ecx
call sub.event.dll_bufferevent_socket_connect_hostname
add esp, 0x14
push 1
mov edx, dword [ebp - 0x1e0]
push edx
call sub.event.dll_bufferevent_enable
add esp, 8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__getpid]
mov dword [ebp - 0x1ec], eax
push str.client
mov eax, dword [ebp - 0x1ec]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.10005440
add esp, 8
mov dword [ebp - 0x1f0], eax
mov edx, dword [ebp - 0x1f0]
mov dword [ebp - 0x1f4], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1f4]
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.10001420
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x210]
call fcn.10002840
lea ecx, [ebp - 0x44]
call fcn.10004390
push eax
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov edx, dword [ebp - 0x1d8]
mov dword [edx + 0x74], eax
mov eax, dword [ebp - 0x1d8]
cmp dword [eax + 0x74], 0
jne 0x100052b7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
push eax
push str.hClientSemaphore_err:_s
call fcn.10005780
add esp, 8
lea ecx, [ebp - 0x44]
call fcn.10002840
mov edx, dword [ebp - 0x1d8]
push edx
push 0x10004f60
push 0x18
push 2
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [eax + 0x1c]
push ecx
call sub.event.dll_event_new
add esp, 0x14
mov edx, dword [ebp - 0x1d8]
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 0x1d8]
cmp dword [eax + 0x24], 0
je 0x1000530e
push 0
mov ecx, dword [ebp - 0x1d8]
mov edx, dword [ecx + 0x24]
push edx
call sub.event.dll_event_add
add esp, 8
test eax, eax
jge 0x1000532e
push str.Could_not_create_add_a_signal_event__n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.10005740
add esp, 8
xor al, al
jmp 0x100053e8
mov eax, dword [ebp - 0x1d8]
push eax
lea ecx, [ebp - 0x24]
call fcn.10001fb0
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.100010f0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.10004730
mov edx, dword [ebp - 0x1d8]
cmp dword [edx + 0x74], 0
je 0x100053c2
push 0x3e8
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [eax + 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x1f8], eax
cmp dword [ebp - 0x1f8], 0x102
jne 0x100053c2
push str.connent_time_out___r_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.10005740
add esp, 8
mov byte [ebp - 0x1d9], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10002af0
mov al, byte [ebp - 0x1d9]
jmp 0x100053e8
mov edx, dword [ebp - 0x1d8]
mov byte [edx + 0x1a], 1
mov byte [ebp - 0x1da], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10002af0
mov al, byte [ebp - 0x1da]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000592f
mov esp, ebp
pop ebp
ret