Function at 0x10001f30
Capabilities:
Connect socket

Disassembly:
sub esp, 0x520
mov dl, byte [0x1006fde8]
push ebx
push ebp
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x131]
mov byte [esp + 0x130], dl
xor ebx, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
stosb byte es:[edi], al
jmp 0x10001f84
xor ebx, ebx
push ebx
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x10002254
xor eax, eax
push 0x1bb
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [0x100632d4]
lea edx, [esp + 0x20]
push 0x10
push edx
push esi
mov word [esp + 0x2e], ax
mov word [esp + 0x2c], 2
mov dword [esp + 0x30], ecx
mov byte [esp + 0x34], 0x2a
call dword [sym.imp.WS2_32.dll_connect]
push esi
call fcn.10003fa0
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x10002254
mov edi, dword [esp + 0x538]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ebp, ebx
je 0x10002061
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x538]
add eax, ecx
push ebp
push eax
push esi
call fcn.1002d5f0
mov edi, eax
push edi
push esi
call fcn.1002df60
add esp, 0x14
test eax, eax
je 0x1000204b
cmp eax, 6
jne 0x1000205d
test esi, esi
je 0x10002057
push esi
call fcn.1002d660
push esi
call fcn.1002d1c0
add esp, 8
xor esi, esi
jmp 0x10002057
mov eax, dword [esp + 0x18]
sub ebp, edi
add eax, edi
mov dword [esp + 0x18], eax
test ebp, ebp
je 0x10002061
jmp 0x1000200a
mov dword [esp + 0x18], edi
cmp dword [esp + 0x18], ebx
jne 0x1000209c
lea edx, [esp + 0x130]
push 0x3ff
push edx
push esi
call fcn.1002d540
push eax
push esi
call fcn.1002df60
add esp, 0x14
cmp eax, 6
jne 0x1000209c
test esi, esi
je 0x1000209c
push esi
call fcn.1002d660
push esi
call fcn.1002d1c0
add esp, 8
mov al, byte [esp + 0x130]
test al, al
je 0x10002254
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea eax, [esp + 0x130]
push str.Content_Type:_text_xml
push eax
call esi
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x10002254
push str._r_n_r_n
push eax
call esi
add esp, 8
test eax, eax
je 0x10002254
add eax, 4
mov dword [esp + 0x10], eax
je 0x10002254
cmp byte [eax], 0
je 0x10002254
lea ecx, [esp + 0x10]
lea edx, [esp + 0x30]
push ecx
push 0x100
push edx
push str.h_name
push eax
call fcn.100032d0
add esp, 0x14
test eax, eax
je 0x10002146
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x534]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x1000214d
mov ebx, dword [esp + 0x534]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x34]
push 0x100
push edx
push str.h_aliases
push eax
call fcn.100032d0
add esp, 0x14
test eax, eax
je 0x10002196
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x34]
push 0x100
push edx
push str.h_addrtype
push eax
call fcn.100032d0
add esp, 0x14
test eax, eax
je 0x100021cd
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov word [ebx + 8], ax
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x34]
push 0x100
push eax
push str.h_length
push ecx
call fcn.100032d0
add esp, 0x14
test eax, eax
je 0x10002204
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov word [ebx + 0xa], ax
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x34]
push 0x100
push ecx
push str.h_addr_list
push edx
call fcn.100032d0
add esp, 0x14
test eax, eax
je 0x10002241
push 0xa
lea eax, [esp + 0x34]
push 0
push eax
call dword [sym.imp.MSVCRT.dll_strtoul]
add esp, 0xc
mov dword [ebx + 0x90], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], ebx
inc eax
mov dword [esp + 0x1c], eax
je 0x10001f82
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x520
ret