Function at 0x100327c0
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007dab5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x378
push edi
mov eax, dword [ebp + 0xc]
xor edi, edi
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x60], xmm0
mov dword [ebp - 0x70], 1
mov dword [ebp - 0x6c], edi
cmp dword [eax + 0x10], edi
je 0x10032821
cmp dword [eax + 0x14], 0xf
mov edi, eax
jbe 0x10032811
mov edi, dword [eax]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x78], 4
jmp 0x1003283f
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], edi
je 0x10032833
cmp dword [eax + 0x14], 0xf
mov edi, eax
jbe 0x10032833
mov edi, dword [eax]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp + 0x10]
push esi
lea esi, [ebp - 0x23]
test ecx, ecx
jns 0x10032880
neg ecx
nop dword [eax]
mov eax, 0xcccccccd
dec esi
mul ecx
shr edx, 3
mov al, dl
mov ah, dl
shl al, 2
add ah, al
add ah, ah
sub cl, ah
add cl, 0x30
mov byte [esi], cl
mov ecx, edx
test ecx, ecx
jne 0x10032850
dec esi
mov byte [esi], 0x2d
jmp 0x100328a3
mov eax, 0xcccccccd
dec esi
mul ecx
shr edx, 3
mov al, dl
mov ah, dl
shl al, 2
add ah, al
add ah, ah
sub cl, ah
add cl, 0x30
mov byte [esi], cl
mov ecx, edx
test ecx, ecx
jne 0x10032880
lea eax, [ebp + 0xf]
push eax
lea eax, [ebp - 0x23]
push eax
push esi
lea ecx, [ebp - 0x58]
call fcn.10022820
cmp dword [ebp - 0x44], 0xf
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x58]
cmova eax, dword [ebp - 0x58]
push ecx
push eax
push edi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x10032b1a
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
test esi, esi
je 0x10032b13
nop dword [eax]
push 0x81
push 0
push 0
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
mov dword [ebp + 0xc], edi
cmp edi, 0xffffffff
jne 0x1003292f
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
mov dword [ebp + 0xc], eax
cmp edi, 0xffffffff
je 0x10032b02
cmp byte [ebp + 0x1c], 0
je 0x1003294d
push 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 1
push eax
push 1
push 6
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp + 0x44]
test ecx, ecx
je 0x10032960
mov dword [ebp - 0x10], edi
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
cmp dword [esi + 4], 0x17
jne 0x1003297e
push 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x1b
push 0x29
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 1
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push dword [esi + 0x10]
push dword [esi + 0x18]
push edi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x10032b54
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10032af2
mov eax, dword [ebp + 0x54]
lea esi, [ebp - 0x17c]
mov dword [ebp - 0x178], edi
mov dword [ebp - 0x17c], 1
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x50]
mov dword [ebp - 0x10], ecx
mov ecx, 0x41
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x3c], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x17c]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x280]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x384]
mov dword [ebp + 0x10], edi
lea edi, [ebp - 0x280]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x2c], eax
lea esi, [ebp - 0x17c]
movups xmm0, xmmword [ebp - 0x38]
mov ecx, 0x41
mov dword [ebp - 0x40], edx
lea edi, [ebp - 0x384]
lea eax, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x38]
call fcn.1003fcd0
mov esi, eax
test esi, esi
jns 0x10032a5f
call fcn.1006502a
cmp dword [eax], 4
je 0x10032a45
test esi, esi
jne 0x10032a75
mov eax, dword [ebp + 0x4c]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp + 0xc]
mov dword [eax], 0xd
jmp 0x10032afb
test esi, esi
jle 0x10032aec
lea eax, [ebp - 0x17c]
push eax
push dword [ebp + 0x10]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x10032a9f
lea eax, [ebp - 0x280]
push eax
push dword [ebp + 0x10]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10032aec
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], 4
push eax
push 0x1007
push 0xffff
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
js 0x10032ad6
cmp dword [ebp - 0x10], 0
jne 0x10032ad6
xor ecx, ecx
jmp 0x10032adb
mov ecx, 2
mov eax, dword [ebp + 0x4c]
mov edi, dword [ebp + 0xc]
mov dword [eax], ecx
test ecx, ecx
je 0x10032b54
mov esi, dword [ebp - 0x14]
jmp 0x10032afb
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x4c]
mov dword [eax], 2
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [esi + 0x1c]
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x100328f0
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
or edi, 0xffffffff
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x10032bfc
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10032bf2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032c38
jmp 0x10032bf2
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp + 0x5c]
push 0
push 0x3e8
push dword [eax + 4]
push dword [eax]
call fcn.10056ec0
mov ecx, dword [ebp + 0x58]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
imul ecx, dword [ecx], 0x3e8
add eax, ecx
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push 0x1006
push 0xffff
push edi
call esi
mov eax, dword [ebp + 0x64]
push 0
push 0x3e8
push dword [eax + 4]
push dword [eax]
call fcn.10056ec0
mov ecx, dword [ebp + 0x60]
push 4
imul ecx, dword [ecx], 0x3e8
add eax, ecx
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push 0x1005
push 0xffff
push edi
call esi
mov eax, dword [ebp + 0x4c]
mov dword [eax], 0
push dword [ebp - 0x18]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x10032b1d
push ecx
push edx
call fcn.100568db
add esp, 8
mov ecx, dword [ebp + 0x44]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
test ecx, ecx
je 0x10032c26
mov esi, dword [ecx]
lea eax, [ebp + 0x20]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop esi
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.1005bb75
int3