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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40dc
call fcn.1001a2d0
mov eax, dword [0x10086ba0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x40b4], 1
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
push 0x14
push 0
lea ecx, [ebp - 0x40ac]
push ecx
call fcn.100139b0
add esp, 0xc
mov edx, dword [ebp + 0x18]
add edx, 0x38b
push edx
call fcn.10013a30
add esp, 4
push eax
mov eax, dword [ebp + 0x18]
add eax, 0x38b
push eax
lea ecx, [ebp - 0x40ac]
push ecx
call fcn.10016670
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x40b8], eax
mov eax, 2
mov word [ebp - 0x40c8], ax
lea ecx, [ebp - 0x40ac]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x40c4], eax
push 0x5dc
push 0
lea edx, [ebp - 0x4098]
push edx
call fcn.100139b0
add esp, 0xc
push 0x5dc
push 0
lea eax, [ebp - 0x3aa0]
push eax
call fcn.100139b0
add esp, 0xc
cmp dword [ebp - 0x40b8], 0
jne 0x1003bd43
xor eax, eax
jmp 0x1003c07a
push 4
mov ecx, dword [ebp - 0x40b8]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x3ab0]
push ecx
call fcn.10013640
add esp, 0xc
push 8
push 0
lea edx, [ebp - 0x3aac]
push edx
call fcn.100139b0
add esp, 0xc
call fcn.1003b360
mov dword [ebp - 0x3aa4], eax
cmp dword [ebp - 0x3aa4], 0
jae 0x1003bd9b
mov eax, dword [ebp - 0x3aa4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1003c07a
mov ecx, 2
mov word [ebp - 0x3ab4], cx
movzx edx, word [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x3ab2], ax
push 4
lea eax, [ebp - 0x40b4]
push eax
push 0xfffffffffffffffb
push 0xffff
mov ecx, dword [ebp - 0x3aa4]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x1003bde6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x40b0], eax
push 0x10
lea edx, [ebp - 0x40c8]
push edx
mov eax, dword [ebp - 0x3aa4]
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jge 0x1003be0c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x40b0], eax
push 0x10
lea ecx, [ebp - 0x3ab4]
push ecx
mov edx, dword [ebp - 0x3aa4]
push edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jge 0x1003be48
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x40b0], eax
push 2
mov eax, dword [ebp - 0x3aa4]
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
xor eax, eax
jmp 0x1003c07a
movzx ecx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
push str.GET__s_HTTP_1.1_r_nHost:__s:_d_r_nConnection:_Keep_Alive_r_n_r_n
push 0x5dc
lea ecx, [ebp - 0x4098]
push ecx
call fcn.10002870
add esp, 0x18
mov dword [ebp - 0x40cc], 1
mov dword [ebp - 0x40d4], 0
mov dword [ebp - 0x40d8], 0
mov edx, dword [ebp + 0x18]
push edx
lea eax, [ebp - 0x3aa0]
push eax
lea ecx, [ebp - 0x4098]
push ecx
mov edx, dword [ebp - 0x3aa4]
push edx
call fcn.10060af0
add esp, 0x10
mov dword [ebp - 0x40d0], eax
cmp dword [ebp - 0x40d0], 0
jle 0x1003c04d
cmp dword [ebp - 0x40cc], 0
je 0x1003bff6
mov dword [ebp - 0x40dc], 0
mov eax, dword [ebp - 0x40d0]
sub eax, 3
cmp dword [ebp - 0x40dc], eax
jge 0x1003bff4
mov ecx, dword [ebp - 0x40dc]
movsx edx, byte [ebp + ecx - 0x3aa0]
cmp edx, 0xd
jne 0x1003bfe0
mov eax, dword [ebp - 0x40dc]
movsx ecx, byte [ebp + eax - 0x3a9f]
cmp ecx, 0xa
jne 0x1003bfe0
mov edx, dword [ebp - 0x40dc]
movsx eax, byte [ebp + edx - 0x3a9e]
cmp eax, 0xd
jne 0x1003bfe0
mov ecx, dword [ebp - 0x40dc]
movsx edx, byte [ebp + ecx - 0x3a9d]
cmp edx, 0xa
jne 0x1003bfe0
mov dword [ebp - 0x40cc], 0
mov eax, dword [ebp - 0x40d0]
sub eax, 4
cmp dword [ebp - 0x40dc], eax
jge 0x1003bfde
mov ecx, dword [ebp - 0x40d0]
sub ecx, dword [ebp - 0x40dc]
mov edx, dword [ebp - 0x40d8]
lea eax, [edx + ecx - 4]
push eax
mov ecx, dword [ebp - 0x40d4]
push ecx
call fcn.10017e08
add esp, 8
mov dword [ebp - 0x40d4], eax
mov edx, dword [ebp - 0x40d0]
sub edx, dword [ebp - 0x40dc]
sub edx, 4
push edx
mov eax, dword [ebp - 0x40dc]
lea ecx, [ebp + eax - 0x3a9c]
push ecx
mov edx, dword [ebp - 0x40d4]
add edx, dword [ebp - 0x40d8]
push edx
call fcn.10013640
add esp, 0xc
mov eax, dword [ebp - 0x40d0]
sub eax, dword [ebp - 0x40dc]
mov ecx, dword [ebp - 0x40d8]
lea edx, [ecx + eax - 4]
mov dword [ebp - 0x40d8], edx
jmp 0x1003bff4
mov eax, dword [ebp - 0x40dc]
add eax, 1
mov dword [ebp - 0x40dc], eax
jmp 0x1003bed7
jmp 0x1003c04d
mov ecx, dword [ebp - 0x40d8]
add ecx, dword [ebp - 0x40d0]
push ecx
mov edx, dword [ebp - 0x40d4]
push edx
call fcn.10017e08
add esp, 8
mov dword [ebp - 0x40d4], eax
mov eax, dword [ebp - 0x40d0]
push eax
lea ecx, [ebp - 0x3aa0]
push ecx
mov edx, dword [ebp - 0x40d4]
add edx, dword [ebp - 0x40d8]
push edx
call fcn.10013640
add esp, 0xc
mov eax, dword [ebp - 0x40d8]
add eax, dword [ebp - 0x40d0]
mov dword [ebp - 0x40d8], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x40d8]
mov dword [ecx], edx
push 2
mov eax, dword [ebp - 0x3aa4]
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, dword [ebp - 0x3aa4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x40d4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001362b
mov esp, ebp
pop ebp
ret