Function at 0x1001c498
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
lea eax, [ebp - 1]
push eax
push dword [esi + 0x18]
xor eax, eax
inc eax
mov word [ebp - 0x1c], 2
call fcn.1001cfad
mov edi, eax
test edi, edi
jne 0x1001c708
movzx eax, byte [ebp - 1]
lea ecx, [ebp - 0x228]
push ecx
push dword [esi + 0x18]
call fcn.1001cfad
mov edi, eax
test edi, edi
jne 0x1001c708
xor al, al
cmp byte [ebp - 1], al
jbe 0x1001c507
movzx ecx, al
mov bl, byte [ebp + ecx - 0x228]
test bl, bl
je 0x1001c50a
inc al
cmp al, byte [ebp - 1]
jb 0x1001c4f0
jmp 0x1001c50a
mov bl, byte [ebp - 1]
cmp al, byte [ebp - 1]
jne 0x1001c512
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 0x1001c703
test bl, bl
je 0x1001c53f
push 0x57
pop edi
jmp 0x1001c708
lea eax, [ebp - 0x128]
push eax
push dword [esi + 0x18]
push 4
pop ebx
mov eax, ebx
call fcn.1001cfad
mov edi, eax
test edi, edi
jne 0x1001c708
cmp byte [ebp - 0x128], 5
mov dword [ebp - 8], ebx
jne 0x1001c5af
cmp byte [ebp - 0x127], 1
jne 0x1001c5af
cmp byte [ebp - 0x125], 1
je 0x1001c5b7
cmp byte [ebp - 0x125], 3
jne 0x1001c5af
lea eax, [ebp - 0x124]
push eax
push dword [esi + 0x18]
xor eax, eax
inc eax
call fcn.1001cfad
mov edi, eax
test edi, edi
jne 0x1001c6e2
cmp byte [ebp - 0x124], al
mov dword [ebp - 8], 5
jne 0x1001c62d
push 0x57
pop edi
jmp 0x1001c6e2
lea eax, [ebp - 0x124]
push eax
push dword [esi + 0x18]
push 6
pop eax
call fcn.1001cfad
mov edi, eax
test edi, edi
jne 0x1001c6e2
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]
cmp eax, 0xffffffff
lea ebx, [esi + 0x1c]
mov dword [ebx], eax
je 0x1001c6c9
push 0x10
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1001c6d1
push ebx
call fcn.1001c87a
mov edi, 0x4d0
jmp 0x1001c6d1
movzx eax, byte [ebp - 0x124]
lea ecx, [ebp - 0x123]
push ecx
push dword [esi + 0x18]
call fcn.1001cfad
mov edi, eax
test edi, edi
jne 0x1001c6e2
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.1001cfad
mov edi, eax
test edi, edi
jne 0x1001c6d1
add dword [ebp - 8], 2
test ebx, ebx
je 0x1001c623
cmp word [ebx + 8], 2
jne 0x1001c623
cmp word [ebx + 0xa], 4
jne 0x1001c623
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 0x1001c5ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp dword [ebp - 8], 0
je 0x1001c708
test edi, edi
mov byte [ebp - 0x127], 0
je 0x1001c6e9
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 0x1001c708
mov edi, 0x4d4
mov eax, edi
pop edi
pop ebx
leave
ret