Function at 0x140001120
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x230
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x228], rax
mov r14, rdx
mov r12d, ecx
xor ebp, ebp
lea rdx, str.1.11
lea rcx, str._HUC_Packet_Transmit_Tool_V_s__n_n
mov r15d, ebp
mov edi, ebp
call fcn.140001060
lea rcx, str._Code_by_lion__bkbll__Welcome_to_http:__www.cnhonker.com__n_n
call fcn.140001060
xor eax, eax
xorps xmm0, xmm0
xorps xmm1, xmm1
mov qword [rsp + 0x220], rax
mov qword [rsp + 0x1f8], rax
mov rbx, r14
mov rax, qword [r14]
movups xmmword [rsp + 0x200], xmm0
movups xmmword [rsp + 0x210], xmm0
movups xmmword [rsp + 0x1d8], xmm1
movups xmmword [rsp + 0x1e8], xmm1
test rax, rax
je 0x140001285
nop
lea rdx, str._log
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x1400011e8
mov rdi, qword [rbx + 8]
test rdi, rdi
je 0x14000122d
cmp byte [rdi], 0x2d
je 0x14000122d
add rbx, 0x10
jmp 0x1400011ec
add rbx, 8
mov rax, qword [rbx]
test rax, rax
jne 0x1400011c0
test rdi, rdi
je 0x140001285
lea rdx, [0x1400043b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [0x140006628], rax
mov rcx, rax
test rax, rax
jne 0x14000123e
lea rcx, str.____ERROR:_open_logfile
call fcn.140001060
jmp 0x140001470
lea rcx, str.____ERROR:_Must_supply_logfile_name._n_n
call fcn.140001060
jmp 0x140001470
mov eax, dword [0x1400043e0]
movups xmm0, xmmword [str._Start__r_n]
mov dword [rsp + 0x1d0], eax
movzx eax, word [0x1400043e4]
movups xmmword [rsp + 0x1c0], xmm0
mov word [rsp + 0x1d4], ax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov r8d, socket
lea rdx, [rsp + 0x1c0]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, 2
lea rdx, [0x1400025e0]
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_signal]
cmp r12d, ebx
jle 0x1400013b9
mov rcx, qword [r14 + 8]
lea rdx, str._listen
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x1400012f6
cmp r12d, 4
jl 0x1400012f6
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov rcx, qword [r14 + 0x18]
mov ebp, eax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov ebx, 1
mov r15d, eax
mov dword [0x140006620], ebx
jmp 0x1400013bf
mov rcx, qword [r14 + 8]
lea rdx, str._tran
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x14000134a
cmp r12d, 5
jl 0x14000134a
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov rdx, qword [r14 + 0x18]
lea rcx, [rsp + 0x1d8]
mov r8d, 0x28
mov ebp, eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov rcx, qword [r14 + 0x20]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov r15d, eax
mov dword [0x140006620], ebx
jmp 0x1400013bf
mov rcx, qword [r14 + 8]
lea rdx, str._slave
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x1400013b9
cmp r12d, 6
jl 0x1400013b9
mov rdx, qword [r14 + 0x10]
lea r8d, [rax + 0x28]
lea rcx, [rsp + 0x200]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov rcx, qword [r14 + 0x18]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov rdx, qword [r14 + 0x20]
lea rcx, [rsp + 0x1d8]
mov r8d, 0x28
mov ebp, eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov rcx, qword [r14 + 0x28]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov ebx, 3
mov r15d, eax
mov dword [0x140006620], ebx
jmp 0x1400013bf
mov ebx, dword [0x140006620]
sub ebx, 1
je 0x140001452
sub ebx, 1
je 0x14000143e
cmp ebx, 1
je 0x140001422
mov rbx, qword [r14]
lea rcx, str._Usage_of_Packet_Transmit:__n_n
call fcn.140001060
mov rdx, rbx
lea rcx, str.__s___listentranslave___option____log_logfile__n_n
call fcn.140001060
lea rcx, str._option:__n
call fcn.140001060
lea rcx, str.__listen__PassivePort___ListenPort__n
call fcn.140001060
lea rcx, str.__tran____ListenPort___DestHost___DestPort__n
call fcn.140001060
lea rcx, str.__slave___DestHost___DestPort___ActiveHost___ActivePort__n_n
call fcn.140001060
jmp 0x14000145c
mov r9d, r15d
lea r8, [rsp + 0x1d8]
mov edx, ebp
lea rcx, [rsp + 0x200]
call fcn.1400021c0
jmp 0x14000145c
mov r8d, r15d
lea rdx, [rsp + 0x1d8]
mov ecx, ebp
call fcn.140001e90
jmp 0x14000145c
mov edx, r15d
mov ecx, ebp
call fcn.140001c30
cmp dword [0x140006620], 0
je 0x14000146a
call fcn.140002600
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.1400027a0
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret