Function at 0x100193cd
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
push edi
xor eax, eax
lea edi, [ebp - 0x1a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 2
pop eax
mov word [ebp - 0x1c], ax
lea eax, [ebp - 1]
push eax
push dword [esi + 0x18]
xor eax, eax
inc eax
call fcn.10019f06
mov edi, eax
test edi, edi
jne 0x1001963e
movzx eax, byte [ebp - 1]
lea ecx, [ebp - 0x228]
push ecx
push dword [esi + 0x18]
call fcn.10019f06
mov edi, eax
test edi, edi
jne 0x1001963e
xor al, al
cmp byte [ebp - 1], al
jbe 0x1001943d
movzx ecx, al
mov bl, byte [ebp + ecx - 0x228]
test bl, bl
je 0x10019440
inc al
cmp al, byte [ebp - 1]
jb 0x10019426
jmp 0x10019440
mov bl, byte [ebp - 1]
cmp al, byte [ebp - 1]
jne 0x10019448
or bl, 0xff
push 0
push 2
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0x18]
mov byte [ebp - 0xc], 5
mov byte [ebp - 0xb], bl
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 2
jne 0x10019639
test bl, bl
je 0x10019475
push 0x57
pop edi
jmp 0x1001963e
lea eax, [ebp - 0x128]
push eax
push dword [esi + 0x18]
push 4
pop ebx
mov eax, ebx
call fcn.10019f06
mov edi, eax
test edi, edi
jne 0x1001963e
cmp byte [ebp - 0x128], 5
mov dword [ebp - 8], ebx
jne 0x100194e5
cmp byte [ebp - 0x127], 1
jne 0x100194e5
cmp byte [ebp - 0x125], 1
je 0x100194ed
cmp byte [ebp - 0x125], 3
jne 0x100194e5
lea eax, [ebp - 0x124]
push eax
push dword [esi + 0x18]
xor eax, eax
inc eax
call fcn.10019f06
mov edi, eax
test edi, edi
jne 0x10019618
mov dword [ebp - 8], 5
cmp byte [ebp - 0x124], al
jne 0x10019563
push 0x57
pop edi
jmp 0x10019618
lea eax, [ebp - 0x124]
push eax
push dword [esi + 0x18]
push 6
pop eax
call fcn.10019f06
mov edi, eax
test edi, edi
jne 0x10019618
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x18], eax
mov ax, word [ebp - 0x120]
mov dword [ebp - 8], 0xa
push 6
push 1
push 2
mov word [ebp - 0x1a], ax
call dword [sym.imp.WS2_32.dll_socket]
lea ebx, [esi + 0x1c]
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x100195ff
push 0x10
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x10019607
push ebx
call fcn.100197b1
mov edi, 0x4d0
jmp 0x10019607
movzx eax, byte [ebp - 0x124]
lea ecx, [ebp - 0x123]
push ecx
push dword [esi + 0x18]
call fcn.10019f06
mov edi, eax
test edi, edi
jne 0x10019618
movzx eax, byte [ebp - 0x124]
lea ecx, [eax + 5]
mov byte [ebp + eax - 0x123], 0
lea eax, [ebp - 0x123]
push eax
mov dword [ebp - 8], ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
movzx eax, byte [ebp - 0x124]
lea eax, [ebp + eax - 0x123]
push eax
push dword [esi + 0x18]
push 2
pop eax
call fcn.10019f06
mov edi, eax
test edi, edi
jne 0x10019607
add dword [ebp - 8], 2
test ebx, ebx
je 0x10019559
cmp word [ebx + 8], 2
jne 0x10019559
cmp word [ebx + 0xa], 4
jne 0x10019559
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
movzx eax, byte [ebp - 0x124]
mov ax, word [ebp + eax - 0x123]
jmp 0x10019520
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp dword [ebp - 8], 0
je 0x1001963e
mov byte [ebp - 0x127], 0
test edi, edi
je 0x1001961f
mov byte [ebp - 0x127], 3
push 0
push dword [ebp - 8]
lea eax, [ebp - 0x128]
push eax
push dword [esi + 0x18]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, dword [ebp - 8]
je 0x1001963e
mov edi, 0x4d4
mov eax, edi
pop edi
pop ebx
leave
ret