Function at 0x1000b150
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x1208
call fcn.10043430
mov eax, dword [0x10059004]
xor eax, esp
mov dword [esp + 0x1204], eax
push esi
push edi
lea eax, [esp + 0x40]
mov dword [esp + 0x18], 0
push eax
push 0x202
mov edi, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
xorps xmm0, xmm0
mov dword [esp + 0x1c], eax
mov eax, dword [0x1005bb40]
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x30], xmm0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 6
test eax, eax
je 0x1000b1e2
push 0x18
push eax
lea eax, [esp + 0x1e8]
movaps xmmword [esp + 0x1e8], xmm0
push eax
movq qword [esp + 0x1fc], xmm0
call fcn.1002013e
add esp, 0xc
jmp 0x1000b201
movq xmm0, qword [0x1004f6e0]
mov ax, word [0x1004f6e8]
movq qword [esp + 0x1e0], xmm0
mov word [esp + 0x1e8], ax
mov eax, dword [0x1005bb3c]
test eax, eax
je 0x1000b236
push 0xc
push eax
lea eax, [esp + 0x1dc]
mov dword [esp + 0x1e4], 0
xorps xmm0, xmm0
push eax
movq qword [esp + 0x1e0], xmm0
call fcn.1002013e
add esp, 0xc
jmp 0x1000b241
mov dword [esp + 0x1d4], 0x353331
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1dc]
push eax
lea eax, [esp + 0x1ec]
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1000b282
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x1204]
xor ecx, esp
call fcn.100136f9
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x18]
test esi, esi
je 0x1000b2d4
nop word [eax + eax]
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0x14], eax
cmp eax, 0xffffffff
je 0x1000b269
push dword [esi + 0x10]
push dword [esi + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
jne 0x1000b2d4
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 0x14], 0xffffffff
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x1000b290
cmp dword [edi + 0x14], 0xffffffff
je 0x1000b269
nop word [eax + eax]
mov ecx, dword [edi + 4]
call fcn.10010d40
mov ecx, dword [edi + 4]
mov dword [esp + 0x14], eax
call fcn.10010d40
cmp dword [0x1005bb30], 1
mov dword [esp + 0x10], eax
jne 0x1000b32a
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0x14], eax
push dword [esi + 0x10]
push dword [esi + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov dword [0x1005bb30], 0
mov eax, dword [esp + 0x14]
push 0
push dword [eax]
push dword [esp + 0x18]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_send]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x1000b3b2
push 0
push 0x1000
lea eax, [esp + 0x210]
push eax
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x1000b399
mov ecx, dword [edi]
lea eax, [esp + 0x1c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
call fcn.10010e40
mov ecx, dword [edi]
lea eax, [esp + 0x208]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
call fcn.10010e40
mov eax, dword [esp + 0x1c]
jmp 0x1000b39b
jne 0x1000b3bb
test eax, eax
jg 0x1000b2e0
push 1
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_shutdown]
mov dword [esp + 0x1c], eax
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x120c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.100136f9
mov esp, ebp
pop ebp
ret