Function at 0x100406fe0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x2d8]
sub rsp, 0x3b0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x100499010]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
mov rsi, rcx
mov qword [rbp + 0x90], rcx
xor r12d, r12d
mov dword [rsp + 0x40], r12d
mov qword [rbp + 0xc8], r12
mov qword [rbp + 0xd0], r12
mov qword [rbp + 0xc8], r12
mov qword [rbp + 0xd0], 7
mov word [rbp + 0xb8], r12w
mov qword [rbp + 0xa8], r12
mov qword [rbp + 0xb0], r12
mov qword [rbp + 0xa8], r12
mov qword [rbp + 0xb0], 7
mov word [rbp + 0x98], r12w
lea rcx, [rbp - 0x70]
call fcn.100409ca0
nop
xor edx, edx
mov r8d, 0x198
lea rcx, [rbp + 0x100]
call sub.VCRUNTIME140.dll_memset
mov ecx, 0x202
lea rdx, [rbp + 0x100]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
sete r15b
mov r8, qword [rbp + 0xc8]
cmp r8, 0x200
jb 0x1004070ee
mov qword [rbp + 0xc8], 0x200
lea rax, [rbp + 0xb8]
cmp qword [rbp + 0xd0], 8
cmovae rax, qword [rbp + 0xb8]
mov word [rax + 0x400], r12w
jmp 0x100407153
mov edx, 0x200
sub rdx, r8
mov rcx, qword [rbp + 0xd0]
mov rax, rcx
sub rax, r8
cmp rdx, rax
ja 0x100407144
mov qword [rbp + 0xc8], 0x200
lea r9, [rbp + 0xb8]
cmp rcx, 8
cmovae r9, qword [rbp + 0xb8]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x100407139
movzx eax, r12w
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], r12w
jmp 0x100407153
mov r9, rdx
lea rcx, [rbp + 0xb8]
call fcn.10040a670
lea r8, [rbp + 0xb8]
cmp qword [rbp + 0xd0], 8
cmovae r8, qword [rbp + 0xb8]
mov r9d, dword [rbp + 0xc8]
mov edx, 0x18d
mov rcx, qword [0x1004a90d8]
call qword [sym.imp.USER32.dll_LoadStringW]
lea rax, [rbp + 0xb8]
mov r10, qword [rbp + 0xb8]
mov rdi, qword [rbp + 0xd0]
cmp rdi, 8
cmovae rax, r10
mov rbx, 0xffffffffffffffff
mov rcx, rbx
nop word [rax + rax]
inc rcx
cmp word [rax + rcx*2], 0
jne 0x1004071b0
mov r8, qword [rbp + 0xc8]
cmp rcx, r8
ja 0x1004071e3
mov qword [rbp + 0xc8], rcx
lea rax, [rbp + 0xb8]
cmp rdi, 8
cmovae rax, r10
mov word [rax + rcx*2], r12w
jmp 0x100407237
mov rdx, rcx
sub rdx, r8
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x100407228
mov qword [rbp + 0xc8], rcx
lea r9, [rbp + 0xb8]
cmp rdi, 8
cmovae r9, r10
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x10040721d
movzx eax, r12w
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], r12w
jmp 0x100407237
mov r9, rdx
lea rcx, [rbp + 0xb8]
call fcn.10040a670
test r15b, r15b
jne 0x10040737e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
lea rdx, [rbp + 0xb8]
cmp qword [rbp + 0xd0], 8
cmovae rdx, qword [rbp + 0xb8]
mov r8, qword [rbp + 0xc8]
lea rcx, [rbp - 0x60]
call fcn.10040a950
mov edx, edi
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______ptr64___cdecl_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int__::operator___int____ptr64]
nop
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xe8], xmm0
movdqa xmm1, xmmword [0x100482320]
movdqu xmmword [rbp + 0xe8], xmm1
mov word [rbp + 0xd8], r12w
mov dword [rsp + 0x40], 2
mov rcx, qword [rbp + 0x18]
test cl, 2
jne 0x1004072d1
mov rax, qword [rbp - 0x18]
mov r8, qword [rax]
test r8, r8
je 0x1004072d1
mov rax, qword [rbp - 0x38]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0x10]
cmovb r8, qword [rbp + 0x10]
sub r8, rdx
jmp 0x1004072f9
test cl, 4
jne 0x100407308
mov rax, qword [rbp - 0x20]
mov rcx, qword [rax]
test rcx, rcx
je 0x100407308
mov rax, qword [rbp - 0x40]
mov rdx, qword [rax]
mov rax, qword [rbp - 8]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
lea rcx, [rbp + 0xd8]
call fcn.10040da90
mov eax, 2
and eax, 0xfffffffd
mov dword [rsp + 0x40], eax
mov r14d, 1
mov dword [rsp + 0x40], r14d
lea rcx, [rbp + 0x98]
call fcn.10040dc20
movups xmm0, xmmword [rbp + 0xd8]
movups xmmword [rbp + 0x98], xmm0
movups xmm1, xmmword [rbp + 0xe8]
movups xmmword [rbp + 0xa8], xmm1
movdqa xmm0, xmmword [0x100482320]
movdqu xmmword [rbp + 0xe8], xmm0
mov word [rbp + 0xd8], r12w
mov eax, r14d
and eax, 0xfffffffe
mov dword [rsp + 0x40], eax
movdqu xmmword [rbp + 0xe8], xmm0
mov word [rbp + 0xd8], r12w
jmp 0x10040765c
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
mov r14d, 1
mov dword [rsp + 0x58], r14d
mov dword [rsp + 0x5c], 6
mov rcx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x1004073ba
mov rcx, qword [rsi]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x50]
lea rdx, [0x100472450]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov edi, eax
test eax, eax
sete r15b
test eax, eax
je 0x100407656
cmp eax, 0x2af9
jne 0x100407572
mov r8, qword [rbp + 0xa8]
cmp r8, 0x200
jb 0x100407428
mov qword [rbp + 0xa8], 0x200
lea rax, [rbp + 0x98]
cmp qword [rbp + 0xb0], 8
cmovae rax, qword [rbp + 0x98]
mov word [rax + 0x400], r12w
jmp 0x10040748d
mov edx, 0x200
sub rdx, r8
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
sub rax, r8
cmp rdx, rax
ja 0x10040747e
mov qword [rbp + 0xa8], 0x200
lea r9, [rbp + 0x98]
cmp rcx, 8
cmovae r9, qword [rbp + 0x98]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x100407473
movzx eax, r12w
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], r12w
jmp 0x10040748d
mov r9, rdx
lea rcx, [rbp + 0x98]
call fcn.10040a670
lea r8, [rbp + 0x98]
cmp qword [rbp + 0xb0], 8
cmovae r8, qword [rbp + 0x98]
mov r9d, dword [rbp + 0xa8]
mov edx, 0x18a
mov rcx, qword [0x1004a90d8]
call qword [sym.imp.USER32.dll_LoadStringW]
lea rax, [rbp + 0x98]
mov rdi, qword [rbp + 0x98]
mov rcx, qword [rbp + 0xb0]
cmp rcx, 8
cmovae rax, rdi
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1004074e0
mov r8, qword [rbp + 0xa8]
cmp rbx, r8
ja 0x100407516
mov qword [rbp + 0xa8], rbx
lea rax, [rbp + 0x98]
cmp rcx, 8
cmovae rax, rdi
mov word [rax + rbx*2], r12w
jmp 0x100407656
mov rdx, rbx
sub rdx, r8
mov rax, rcx
sub rax, r8
cmp rdx, rax
ja 0x10040755e
mov qword [rbp + 0xa8], rbx
lea r9, [rbp + 0x98]
cmp rcx, 8
cmovae r9, rdi
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x100407550
movzx eax, r12w
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], r12w
jmp 0x100407656
mov r9, rdx
lea rcx, [rbp + 0x98]
call fcn.10040a670
jmp 0x100407656
lea rdx, [rbp + 0xb8]
cmp qword [rbp + 0xd0], 8
cmovae rdx, qword [rbp + 0xb8]
mov r8, qword [rbp + 0xc8]
lea rcx, [rbp - 0x60]
call fcn.10040a950
mov edx, edi
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______ptr64___cdecl_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int__::operator___int____ptr64]
lea rdx, [rbp + 0xd8]
lea rcx, [rbp - 0x70]
call fcn.100409bd0
mov rdi, rax
lea rax, [rbp + 0x98]
cmp rax, rdi
je 0x1004075f5
lea rcx, [rbp + 0x98]
call fcn.10040dc20
movups xmm0, xmmword [rdi]
movups xmmword [rbp + 0x98], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbp + 0xa8], xmm1
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 7
mov word [rdi], r12w
mov rdx, qword [rbp + 0xf0]
cmp rdx, 8
jb 0x10040763e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xd8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x100407639
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x100407639
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.100469388
movdqa xmm0, xmmword [0x100482320]
movdqu xmmword [rbp + 0xe8], xmm0
mov word [rbp + 0xd8], r12w
call qword [sym.imp.WS2_32.dll_WSACleanup]
cmp qword [rbp + 0xa8], 0
jbe 0x1004076be
lea rax, [rbp + 0x98]
cmp qword [rbp + 0xb0], 8
cmovae rax, qword [rbp + 0x98]
mov rcx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x10040768a
mov rcx, qword [rsi]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 2
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 2
mov r9d, 4
mov r8d, 0xc000013c
movzx edx, r14w
lea ecx, [r9 - 1]
call fcn.100431c20
nop
lea rax, [rbp + 0x28]
mov qword [rsp + 0x48], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x58]
call fcn.10040c050
nop
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int__::destructor_void____ptr64]
lea rcx, [rbp + 0x28]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_unsigned_short_int__struct_std::char_traits_unsigned_short_int__::destructor_void____ptr64]
nop
mov rdx, qword [rbp + 0xb0]
cmp rdx, 8
jb 0x100407755
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x100407750
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x100407750
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.100469388
mov qword [rbp + 0xa8], r12
mov qword [rbp + 0xb0], 7
mov word [rbp + 0x98], r12w
mov rdx, qword [rbp + 0xd0]
cmp rdx, 8
jb 0x1004077b8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1004077b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1004077b3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.100469388
mov qword [rbp + 0xc8], r12
mov qword [rbp + 0xd0], 7
mov word [rbp + 0xb8], r12w
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x100407808
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x100407803
add rdx, 0x27
mov rdi, qword [rcx - 8]
sub rcx, rdi
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x100407846
mov rcx, rdi
call fcn.100469388
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], SQLFreeStmt
mov byte [rsi], 0
movzx eax, r15b
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.100469360
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3