Function at 0x180170970
Capabilities:
Accept command line arguments

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1c0
mov qword [r11 - 0x148], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x1803fc9f0]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rbx, rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
lea rcx, [r11 - 0x110]
call fcn.1802e34e8
mov dword [rbx + 0x1b50], r14d
lea rsi, [0x180036a58]
mov qword [rsp + 0x58], rsi
cmp qword [rbx + 0x1d38], r14
jne 0x1801709e3
mov rcx, rbx
call fcn.180171360
mov rcx, qword [rbx + 0x1d38]
add rcx, 4
xor edx, edx
mov r8d, 0x1cc
call fcn.1802c7550
lea rcx, [0x180036a78]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x180400af8]
call fcn.1800ab980
test eax, eax
je 0x180170f56
mov rdi, qword [rbx + 0x1d38]
lea rcx, [0x180400af8]
call fcn.1800ab970
mov rcx, rax
mov r8d, 0x104
lea rdx, [rdi + 4]
call fcn.180170720
mov rdi, qword [rbx + 0x1d38]
cmp byte [rdi + 4], 0
jne 0x180170a6c
lea rcx, [0x180400af8]
call fcn.1800ab970
mov rdx, rax
lea rcx, [rdi + 4]
mov r8d, 0x104
call fcn.1802b1e30
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
call fcn.18011fb90
mov r12, rax
test rax, rax
je 0x180170f56
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x60]
lea rdx, [0x180036af8]
mov rcx, rax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x180170f4c
mov r13, qword [rsp + 0x60]
xor r15d, r15d
mov dword [rsp + 0x68], r15d
mov eax, dword [rsp + 0x48]
shr eax, 2
cmp r15d, eax
jae 0x180170eec
mov rax, qword [0x1803fc9b8]
mov qword [rsp + 0x38], rax
mov rax, qword [0x1803fc9b8]
mov qword [rsp + 0x40], rax
mov rax, qword [0x1803fc9b8]
mov qword [rsp + 0x50], rax
lea rdi, [r15*4]
add rdi, r13
movzx r9d, word [rdi + 2]
movzx r8d, word [rdi]
lea rdx, [0x180036a88]
lea rcx, [rsp + 0x130]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x130]
mov rcx, r12
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x180170b72
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.1802b2220
lea rcx, [rsp + 0x38]
call fcn.1802b39a0
lea rcx, [rsp + 0x38]
call fcn.1802b3a90
mov rcx, qword [rbx + 0x1d38]
add rcx, 0x148
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
call fcn.1802b1e30
movzx r9d, word [rdi + 2]
movzx r8d, word [rdi]
lea rdx, [0x180036b38]
lea rcx, [rsp + 0x130]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x130]
mov rcx, r12
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x180170bef
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.1802b2220
lea rcx, [rsp + 0x40]
call fcn.1802b39a0
lea rcx, [rsp + 0x40]
call fcn.1802b3a90
mov rcx, qword [rbx + 0x1d38]
add rcx, 0x188
mov r8d, 0x40
mov rdx, qword [rsp + 0x40]
call fcn.1802b1e30
movzx r9d, word [rdi + 2]
movzx r8d, word [rdi]
lea rdx, [0x180036b88]
lea rcx, [rsp + 0x130]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x130]
mov rcx, r12
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x180170c6c
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.1802b2220
lea rcx, [rsp + 0x50]
call fcn.1802b39a0
lea rcx, [rsp + 0x50]
call fcn.1802b3a90
mov rcx, qword [rbx + 0x1d38]
add rcx, 0x108
mov r8d, 0x40
mov rdx, qword [rsp + 0x50]
call fcn.1802b1e30
mov r8d, 8
lea rdx, [0x180036be0]
mov rcx, qword [rsp + 0x38]
call fcn.1802d82e0
test eax, eax
jne 0x180170cc2
mov dword [rbx + 0x1b50], 2
lea rsi, [0x180036c10]
mov qword [rsp + 0x58], rsi
lea rcx, [rsp + 0x50]
call fcn.1802b20f0
nop
lea rcx, [rsp + 0x40]
call fcn.1802b20f0
nop
lea rcx, [rsp + 0x38]
call fcn.1802b20f0
jmp 0x180170eec
mov r8d, recv
lea rdx, [0x180036c20]
mov rcx, qword [rsp + 0x38]
call fcn.1802d82e0
test eax, eax
jne 0x180170d70
mov dword [rbx + 0x1b50], 3
lea rsi, [0x180035c5c]
mov qword [rsp + 0x58], rsi
mov rax, qword [0x180400a08]
cmp dword [rax + 0x588], 0
je 0x180170c9d
movzx r9d, word [rdi + 2]
movzx r8d, word [rdi]
lea rdx, [0x180036c48]
lea rcx, [rsp + 0x130]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x130]
mov rcx, r12
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x180170c9d
mov rcx, qword [rsp + 0x60]
call fcn.1802d6ec0
cmp eax, 9
jl 0x180170c9d
mov dword [rbx + 0x1b50], 7
lea rsi, [0x180036c88]
jmp 0x180170c98
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, [0x180036c90]
mov rcx, qword [rsp + 0x38]
call fcn.1802d82e0
test eax, eax
jne 0x180170da1
mov dword [rbx + 0x1b50], 8
lea rsi, [0x180036cc8]
jmp 0x180170c98
mov r8d, 0xa
lea rdx, [0x180036cd8]
mov rcx, qword [rsp + 0x38]
call fcn.1802d82e0
test eax, eax
jne 0x180170dd2
mov dword [rbx + 0x1b50], 5
lea rsi, [0x180036d08]
jmp 0x180170c98
mov r8d, send
lea rdx, [0x180036d18]
mov rcx, qword [rsp + 0x40]
call fcn.1802d82e0
test eax, eax
jne 0x180170e03
mov dword [rbx + 0x1b50], 1
lea rsi, [0x180036d70]
jmp 0x180170c98
lea rdx, [0x180035c74]
mov rcx, qword [rsp + 0x40]
call fcn.1802d57c0
test eax, eax
jne 0x180170e2e
mov dword [rbx + 0x1b50], 4
lea rsi, [0x180036dc0]
jmp 0x180170c98
mov r8d, 7
lea rdx, [0x180036e00]
mov rcx, qword [rsp + 0x40]
call fcn.1802d82e0
test eax, eax
jne 0x180170e5f
mov dword [rbx + 0x1b50], 6
lea rsi, [0x180036e30]
jmp 0x180170c98
lea rdi, [rbx + 0x1b18]
mov rcx, rdi
call fcn.1800ab980
test eax, eax
jne 0x180170ec4
mov rcx, qword [rbx + 0x1d38]
add rcx, 0x108
lea rdx, [0x180036e50]
call fcn.1802d57c0
test eax, eax
jne 0x180170ec4
lea rdx, [0x180036e68]
lea rcx, [rsp + 0xb8]
call fcn.1800aaba0
nop
lea rdx, [rsp + 0xb8]
mov rcx, rdi
call fcn.1800ab1f0
nop
lea rcx, [rsp + 0xb8]
call fcn.1800ad110
nop
lea rcx, [rsp + 0x50]
call fcn.1802b20f0
nop
lea rcx, [rsp + 0x40]
call fcn.1802b20f0
nop
lea rcx, [rsp + 0x38]
call fcn.1802b20f0
inc r15d
jmp 0x180170ab1
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x70]
lea rdx, [0x180035ca4]
mov rcx, r12
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x180170f4c
mov rdx, qword [rbx + 0x1d38]
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax + 0x10]
mov dword [rdx + 0x1c8], ecx
mov rdx, qword [rbx + 0x1d38]
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax + 8]
mov dword [rdx + 0x1cc], ecx
mov rcx, qword [rsp + 0x70]
movzx eax, word [rcx + 0x12]
mov dword [rbx + 0x1b54], eax
movzx eax, word [rcx + 0x10]
mov dword [rbx + 0x1b58], eax
xor edx, edx
mov rcx, r12
call fcn.1802b8d50
cmp dword [rbx + 0x1b50], 0
jne 0x180170fcb
lea rcx, [0x180036eb0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180170fc6
lea rcx, [0x180036ed0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180170fc6
lea rcx, [0x180036ee0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180170fc6
lea rdx, [0x180036f38]
lea rcx, [rsp + 0xb8]
call fcn.1800aaba0
nop
mov r14d, 1
mov dword [rsp + 0x30], r14d
lea rcx, [rsp + 0xb8]
call fcn.180123260
test al, al
je 0x180170fcb
mov dil, 1
jmp 0x180170fce
xor dil, dil
test r14b, 1
je 0x180170fea
and r14d, 0xfffffffe
mov dword [rsp + 0x30], r14d
lea rcx, [rsp + 0xb8]
call fcn.1800ad110
test dil, dil
je 0x180171005
mov dword [rbx + 0x1b50], 6
lea rsi, [0x180036f88]
mov qword [rsp + 0x58], rsi
lea rdx, [0x180036f90]
lea rcx, [rsp + 0xe8]
call fcn.1800aaba0
nop
cmp dword [rbx + 0x1b50], 0
jne 0x18017108f
lea rdx, [0x180035cec]
lea rcx, [rsp + 0xb8]
call fcn.1800aaba0
nop
or r14d, 2
mov dword [rsp + 0x30], r14d
lea rcx, [rsp + 0xb8]
call fcn.180123260
test al, al
je 0x18017108f
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rdx, rax
lea rcx, [rsp + 0x108]
call fcn.1800aaba0
nop
or r14d, 4
mov dword [rsp + 0x30], r14d
xor r8d, r8d
lea rdx, [rsp + 0xe8]
mov rcx, rax
call fcn.1800ab700
cmp eax, 0xffffffff
jne 0x18017108f
mov dil, 1
jmp 0x180171092
xor dil, dil
test r14b, 4
je 0x1801710af
and r14d, 0xfffffffb
mov dword [rsp + 0x30], r14d
lea rcx, [rsp + 0x108]
call fcn.1800ad110
nop
test r14b, 2
je 0x1801710cb
and r14d, 0xfffffffd
mov dword [rsp + 0x30], r14d
lea rcx, [rsp + 0xb8]
call fcn.1800ad110
test dil, dil
je 0x1801710ee
mov dword [rbx + 0x1b50], 9
lea rsi, [0x180035d04]
mov qword [rsp + 0x58], rsi
mov rcx, rbx
call fcn.180177eb0
cmp dword [rbx + 0x1b50], 0
jne 0x18017112b
lea rdx, [0x180035d3c]
lea rcx, [rsp + 0xb8]
call fcn.1800aaba0
nop
or r14d, 8
mov dword [rsp + 0x30], r14d
lea rcx, [rsp + 0xb8]
call fcn.180123260
test al, al
je 0x18017112b
mov dil, 1
jmp 0x18017112e
xor dil, dil
test r14b, 8
je 0x18017114a
and r14d, 0xfffffff7
mov dword [rsp + 0x30], r14d
lea rcx, [rsp + 0xb8]
call fcn.1800ad110
test dil, dil
je 0x1801711d5
mov dword [rbx + 0x1b50], 0xa
lea rsi, [0x180037040]
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x90], rbx
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x98]
call fcn.18016b380
nop
lea rdi, [rbx + 0x208]
cmp rdi, rax
je 0x1801711b3
mov rdx, qword [rax]
mov qword [rax], 0
mov rcx, qword [rdi]
mov qword [rdi], rdx
test rcx, rcx
je 0x1801711b3
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x1801711ca
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rcx, qword [rdi]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x20]
lea rcx, [rsp + 0xa8]
call fcn.1802e34e8
movzx ecx, word [rsp + 0xb0]
movzx edx, word [rsp + 0xe0]
cmp cx, dx
jae 0x18017120f
dec qword [rsp + 0xa8]
mov eax, 0x3e8
add cx, ax
mov word [rsp + 0xb0], cx
mov eax, dword [rsp + 0xa8]
sub eax, dword [rsp + 0xd8]
imul edi, eax, 0x3e8
movzx eax, dx
sub edi, eax
movzx eax, cx
add edi, eax
mov rax, qword [0x1803fc9b8]
mov qword [rsp + 0x78], rax
mov r8d, edi
lea rdx, [0x180037060]
lea rcx, [rsp + 0x78]
call fcn.1802b2860
cmp edi, 0x14
jbe 0x180171276
mov rax, qword [0x180400a08]
cmp dword [rax + 0x268], 0
je 0x180171276
lea rcx, [rbx + 8]
mov rax, qword [rcx]
mov r8, qword [rsp + 0x78]
mov edx, 1
call qword [rax + reloc.WSOCK32.dll_recv]
cmp dword [rbx + 0x1b50], 0
je 0x1801712c1
mov rax, qword [0x1803fc9b8]
mov qword [rsp + 0x80], rax
mov eax, dword [rbx + 0x1b58]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbx + 0x1b54]
mov r8, rsi
lea rdx, [0x180037090]
lea rcx, [rsp + 0x80]
call fcn.1802b2860
nop
lea rcx, [rsp + 0x80]
jmp 0x180171307
mov rcx, rbx
call fcn.180173a00
test eax, eax
je 0x18017130d
mov rax, qword [0x1803fc9b8]
mov qword [rsp + 0x88], rax
mov r9d, dword [rbx + 0x1b58]
mov r8d, dword [rbx + 0x1b54]
lea rdx, [0x1800370f8]
lea rcx, [rsp + 0x88]
call fcn.1802b2860
nop
lea rcx, [rsp + 0x88]
call fcn.1802b20f0
nop
lea rcx, [rsp + 0x78]
call fcn.1802b20f0
nop
lea rcx, [rsp + 0xe8]
call fcn.1800ad110
nop
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1802b85a0
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret