Function at 0x6787a8a0
Capabilities:
Connect socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header
Set socket configuration

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67938700
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x870
mov eax, dword [0x67ad7034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x830], esi
cmp dword [esi + 0x10], 0x200
mov edi, dword [ebx + 8]
mov dword [ebp - 0x864], edi
jb 0x6787a93d
cmp dword [esi + 0x14], 0x10
jb 0x6787a903
mov esi, dword [esi]
push 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
add esp, 4
push esi
push 0x67abc420
push eax
call fcn.677da310
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.679343f5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp dword [edi + 0x10], 0xc8
jb 0x6787a961
cmp dword [edi + 0x14], 0x10
jb 0x6787a94e
mov edi, dword [edi]
push 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
add esp, 4
push edi
push 0x67abc444
jmp 0x6787a914
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x6787a96b
mov eax, dword [esi]
lea ecx, [ebp - 0x828]
push ecx
lea ecx, [ebp - 0x82c]
push ecx
lea ecx, [ebp - 0x628]
push ecx
push 0x67abc46c
push eax
call fcn.677dc140
add esp, 0x14
cmp eax, 3
je 0x6787aa32
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x6787a9a1
mov eax, dword [esi]
lea ecx, [ebp - 0x828]
push ecx
lea ecx, [ebp - 0x628]
push ecx
push 0x67abc480
push eax
call fcn.677dc140
add esp, 0x10
cmp eax, 2
jne 0x6787a9ce
mov dword [ebp - 0x82c], 0x50
jmp 0x6787aa32
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x6787a9d8
mov eax, dword [esi]
lea ecx, [ebp - 0x82c]
push ecx
lea ecx, [ebp - 0x628]
push ecx
push 0x67abc490
push eax
call fcn.677dc140
add esp, 0x10
cmp eax, 2
je 0x6787aa2b
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x6787aa03
mov eax, dword [esi]
lea ecx, [ebp - 0x628]
push ecx
push 0x67abc4a0
push eax
call fcn.677dc140
add esp, 0xc
cmp eax, 1
jne 0x6787aafb
mov dword [ebp - 0x82c], 0x50
mov byte [ebp - 0x828], 0
mov eax, dword [ebp - 0x82c]
mov dword [ebp - 0x860], eax
mov dword [ebp - 0x87c], 0
lea ecx, [ebp - 0x628]
mov dword [ebp - 0x86c], 0
mov dword [ebp - 0x868], 0xf
lea edx, [ecx + 1]
mov dword [ebp - 4], 0xffffffff
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x6787aa70
sub ecx, edx
lea eax, [ebp - 0x628]
push ecx
push eax
lea ecx, [ebp - 0x87c]
call fcn.677d7ac0
push dword [ebp - 0x860]
xorps xmm0, xmm0
lea eax, [ebp - 0x24]
push 0x67950a54
push 0x10
movups xmmword [ebp - 0x858], xmm0
push eax
or edi, 0xffffffff
mov dword [ebp - 0x850], 1
movups xmmword [ebp - 0x848], xmm0
call fcn.6787b060
add esp, 0x10
lea ecx, [ebp - 0x85c]
cmp dword [ebp - 0x868], 0x10
lea eax, [ebp - 0x87c]
cmovae eax, dword [ebp - 0x87c]
push ecx
lea ecx, [ebp - 0x858]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x6787ab19
mov edi, 1
jmp 0x6787ab6f
cmp dword [esi + 0x14], 0x10
jb 0x6787ab03
mov esi, dword [esi]
push 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
add esp, 4
push esi
push 0x67abc4ac
jmp 0x6787a914
mov esi, dword [ebp - 0x85c]
test esi, esi
je 0x6787ab62
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.ws2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x6787ab55
push dword [esi + 0x10]
push dword [esi + 0x18]
push edi
call dword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x6787ab5c
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
or edi, 0xffffffff
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x6787ab23
mov esi, dword [ebp - 0x85c]
push esi
call dword [sym.imp.ws2_32.dll_FreeAddrInfoW]
mov esi, dword [ebp - 0x830]
mov edx, dword [ebp - 0x868]
cmp edx, 0x10
jb 0x6787abab
mov ecx, dword [ebp - 0x87c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x6787aba1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x6787aba1
call dword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.67934867
add esp, 8
cmp edi, 0xffffffff
jne 0x6787abdc
mov esi, dword [ebp - 0x82c]
push 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
add esp, 4
lea ecx, [ebp - 0x628]
push esi
push ecx
push 0x67abc4d8
push eax
call fcn.677da310
add esp, 0x10
jmp 0x6787a91d
lea eax, [ebp - 0x828]
push eax
push 0x67abc4f4
lea eax, [ebp - 0x428]
push 0x400
push eax
call fcn.6787b640
lea ecx, [ebp - 0x428]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x6787ac05
push 0
sub ecx, edx
lea eax, [ebp - 0x428]
push ecx
push eax
push edi
call dword [sym.imp.ws2_32.dll_send]
mov eax, dword [ebp - 0x82c]
cmp eax, 0x50
jne 0x6787ac5c
lea eax, [ebp - 0x628]
push eax
push 0x67abc508
lea eax, [ebp - 0x428]
push 0x400
push eax
call fcn.6787b640
lea ecx, [ebp - 0x428]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x6787ac53
jmp 0x6787ac8d
push eax
lea eax, [ebp - 0x628]
push eax
push 0x67abc514
lea eax, [ebp - 0x428]
push 0x400
push eax
call fcn.6787b640
lea ecx, [ebp - 0x428]
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x6787ac86
push 0
sub ecx, edx
lea eax, [ebp - 0x428]
push ecx
push eax
mov eax, dword [sym.imp.ws2_32.dll_send]
push edi
call eax
push 0x67abc524
lea eax, [ebp - 0x428]
push 0x400
push eax
call fcn.6787b640
lea ecx, [ebp - 0x428]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x6787acc3
push 0
sub ecx, edx
lea eax, [ebp - 0x428]
push ecx
push eax
push edi
call dword [sym.imp.ws2_32.dll_send]
push 0x67abc53c
lea eax, [ebp - 0x428]
push 0x400
push eax
call fcn.6787b640
lea ecx, [ebp - 0x428]
add esp, 0xc
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x6787ad00
push 0
sub ecx, edx
lea eax, [ebp - 0x428]
push ecx
push eax
push edi
call dword [sym.imp.ws2_32.dll_send]
mov eax, dword [ebp - 0x864]
cmp dword [eax + 0x10], 0
je 0x6787ad6b
cmp dword [eax + 0x14], 0x10
jb 0x6787ad2e
mov eax, dword [eax]
push eax
push 0x67abc554
lea eax, [ebp - 0x428]
push 0x400
push eax
call fcn.6787b640
lea ecx, [ebp - 0x428]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x6787ad51
push 0
sub ecx, edx
lea eax, [ebp - 0x428]
push ecx
push eax
push edi
call dword [sym.imp.ws2_32.dll_send]
push 0x67abc564
lea eax, [ebp - 0x428]
push 0x400
push eax
call fcn.6787b640
lea ecx, [ebp - 0x428]
add esp, 0xc
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x6787ad90
push 0
sub ecx, edx
lea eax, [ebp - 0x428]
push ecx
push eax
push edi
call dword [sym.imp.ws2_32.dll_send]
push 0x67abc594
lea eax, [ebp - 0x428]
push 0x400
push eax
call fcn.6787b640
lea ecx, [ebp - 0x428]
add esp, 0xc
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x6787add0
push 0
sub ecx, edx
lea eax, [ebp - 0x428]
push ecx
push eax
push edi
call dword [sym.imp.ws2_32.dll_send]
push 0x67950958
lea eax, [ebp - 0x428]
push 0x400
push eax
call fcn.6787b640
lea ecx, [ebp - 0x428]
add esp, 0xc
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x6787ae10
push 0
sub ecx, edx
lea eax, [ebp - 0x428]
push ecx
push eax
push edi
call dword [sym.imp.ws2_32.dll_send]
lea eax, [ebp - 0x428]
xor ecx, ecx
dec eax
mov dword [ebp - 0x864], eax
mov dword [ebp - 0x860], eax
mov dword [ebp - 0x85c], ecx
cmp ecx, 2
jl 0x6787ae5d
cmp ecx, 0x3ff
jge 0x6787ae82
cmp byte [eax - 1], 0xd
je 0x6787ae82
cmp byte [eax], 0xa
je 0x6787ae82
push 0
push 1
inc eax
push eax
push edi
call dword [sym.imp.ws2_32.dll_recv]
test eax, eax
je 0x6787a91d
mov ecx, dword [ebp - 0x85c]
mov eax, dword [ebp - 0x860]
inc ecx
inc eax
jmp 0x6787ae39
cmp ecx, 0x400
jae 0x6787b038
mov byte [ebp + ecx - 0x428], 0
cmp ecx, 0x3ff
jne 0x6787aebc
cmp dword [esi + 0x14], 0x10
jb 0x6787aea6
mov esi, dword [esi]
push 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
add esp, 4
push esi
push 0x67abc5b0
jmp 0x6787a914
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x428]
push 0x67abc5e4
push eax
call fcn.677dc140
add esp, 0xc
cmp eax, 1
jne 0x6787b00a
cmp dword [ebp - 0x830], 0x65
jne 0x6787b00a
lea ecx, [ebp - 0x428]
sub eax, ecx
mov dword [ebp - 0x85c], eax
nop dword [eax + eax]
mov esi, dword [ebp - 0x864]
add eax, esi
cmp eax, 2
jl 0x6787af1f
cmp eax, 0x3ff
jge 0x6787af3c
cmp byte [esi - 1], 0xd
je 0x6787af3c
cmp byte [esi], 0xa
je 0x6787af3c
push 0
push 1
inc esi
push esi
push edi
call dword [sym.imp.ws2_32.dll_recv]
test eax, eax
je 0x6787a91d
mov eax, dword [ebp - 0x85c]
jmp 0x6787af06
cmp byte [ebp - 0x428], 0xd
mov eax, dword [ebp - 0x85c]
jne 0x6787af00
cmp byte [ebp - 0x427], 0xa
jne 0x6787af00
push 4
lea eax, [ebp - 0x834]
mov dword [ebp - 0x834], 1
push eax
push 1
push 6
push edi
call dword [sym.imp.ws2_32.dll_setsockopt]
lea eax, [ebp - 0x838]
mov dword [ebp - 0x838], 1
push eax
push 0x8004667e
push edi
call dword [sym.imp.ws2_32.dll_ioctlsocket]
push 0x34
call fcn.67934403
add esp, 4
mov esi, eax
mov dword [ebp - 0x864], esi
push 0x34
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov dword [esi], 0x67abc628
add esp, 0xc
mov dword [esi + 4], 0
mov eax, esi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], 3
mov word [esi + 0x30], 1
jmp 0x6787a91f
cmp dword [esi + 0x14], 0x10
jb 0x6787b012
mov esi, dword [esi]
push 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
add esp, 4
lea ecx, [ebp - 0x428]
push ecx
push esi
push 0x67abc5f0
push eax
call fcn.677da310
add esp, 0x10
jmp 0x6787a91d
call fcn.67934bc3
int3