Function at 0x1015e300
Capabilities:
Connect socket
Get hostname
Send data
Send data on socket

Disassembly:
sub esp, 0x3c
mov eax, dword [0x1021e964]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x50]
mov eax, 2
mov word [esp + 0x38], ax
xorps xmm0, xmm0
movlpd qword [esp + 0x40], xmm0
mov eax, dword [edi + 0x54]
mov dword [esp + 0x3c], eax
movzx eax, word [0x10230f1c]
push eax
call sub.WS2_32.dll_htons
mov word [esp + 0x3a], ax
lea eax, [esp + 0x38]
push 0x10
push eax
push dword [edi + 4]
call sub.WS2_32.dll_connect
test eax, eax
jns 0x1015e371
cmp dword [esp + 0x54], 0
mov eax, 0x69
mov ecx, 0x63
cmovne eax, ecx
mov dword [0x1021d6d4], eax
jmp 0x1015e650
push dword [esp + 0x60]
push 0x200
push dword [edi + 0x60]
call fcn.10160360
mov esi, eax
xor ebp, ebp
push pe_nt_image_headers32
mov dword [esp + 0x14], esi
call fcn.1015b830
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1015e3c7
push pe_nt_image_headers32
push ebx
call sub.WS2_32.dll_gethostname
cmp eax, 0xffffffff
je 0x1015e3be
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1015e3b2
sub ecx, edx
lea ebp, [ecx + 1]
push ebx
call fcn.100be50c
add esp, 4
push 0x220
lea eax, [esi + 0x24]
add eax, ebp
push eax
push 0x13
call fcn.1015ba70
mov ebx, eax
test ebx, ebx
je 0x1015e650
mov esi, dword [edi + 0x3c]
and esi, 0xf00000
call fcn.1015dc70
mov edx, dword [edi + 0xc]
movzx ecx, al
mov eax, edx
shl ecx, 0x18
or ecx, esi
mov esi, ecx
or esi, 1
and al, 1
cmove esi, ecx
test dl, 8
je 0x1015e41a
or esi, 8
mov dword [0x10230efc], 1
mov dword [ebx + 8], esi
mov eax, dword [edi + 0x10]
mov esi, dword [esp + 0x10]
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x58]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x5c]
mov dword [ebx + 0x18], eax
lea eax, [ebx + 0x24]
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x20], ebp
test esi, esi
je 0x1015e458
push esi
push dword [edi + 0x60]
push eax
call fcn.101a3c10
add esp, 0xc
lea eax, [ebx + 0x24]
push esi
push dword [edi + 0x60]
push eax
call fcn.101a3c10
lea eax, [esi + 0x24]
add esp, 0xc
xor esi, esi
add eax, ebx
jne 0x1015e47d
push ebp
call fcn.1015b830
mov esi, eax
add esp, 4
test esi, esi
je 0x1015e48d
push ebp
push eax
call sub.WS2_32.dll_gethostname
push esi
call fcn.100be50c
add esp, 4
movzx eax, word [ebx + 2]
push 0
push eax
push ebx
push dword [edi + 4]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x1015e4b1
mov dword [0x1021d6d4], 0x61
jmp 0x1015e647
push 0x3a98
push 0x13
push edi
call fcn.1015f910
mov esi, eax
test esi, esi
je 0x1015e647
movzx eax, word [esi + 4]
test ax, ax
je 0x1015e4db
mov dword [0x1021d6d4], eax
jmp 0x1015e647
mov ebp, dword [esi + 0x1c]
test ebp, ebp
je 0x1015e63d
cmp ebp, 1
je 0x1015e63d
cmp dword [esp + 0x54], 0
mov ax, word [esi + 0x14]
mov word [edi + 0x44], ax
jne 0x1015e50e
movzx eax, word [esi + 0x10]
mov word [edi + 0x48], ax
movzx eax, word [esi + 0xc]
mov word [edi + 0x46], ax
mov eax, dword [esi + 0x18]
push eax
mov dword [esp + 0x14], eax
call fcn.1015b830
add esp, 4
mov dword [edi + 0x40], eax
test eax, eax
je 0x1015e647
push dword [esp + 0x10]
add esi, 0x20
push esi
push eax
call fcn.101a3c10
mov eax, dword [edi + 0x40]
add esp, 0xc
cmp dword [esp + 0x64], 0
mov dword [edi + 0x24], eax
je 0x1015e61d
lea eax, [esp + 0x14]
mov dword [esp + 0x34], 0
xorps xmm0, xmm0
movups xmmword [esp + 0x14], xmm0
push eax
movups xmmword [esp + 0x28], xmm0
push edi
mov byte [esp + 0x1c], 0xb2
mov byte [esp + 0x1e], 0x1c
mov byte [esp + 0x20], 0x34
mov byte [esp + 0x22], 0x2c
mov dword [esp + 0x24], ebp
mov byte [esp + 0x28], 0x13
mov byte [esp + 0x2c], 0x20
call fcn.1015f5c0
test eax, eax
je 0x1015e61d
push 0x1388
push dword [esp + 0x1e]
push edi
call fcn.1015f910
test eax, eax
je 0x1015e61d
cmp word [eax + 4], 0
jne 0x1015e61d
movzx eax, word [esi]
imul ecx, eax, 0x3e8
movzx eax, word [esi + 2]
add ecx, eax
cmp ecx, dword [esp + 0x64]
jge 0x1015e61d
xor eax, eax
xorps xmm0, xmm0
mov word [edi + 0x44], ax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x14]
movups xmmword [esp + 0x14], xmm0
push eax
push edi
movups xmmword [esp + 0x2c], xmm0
mov byte [esp + 0x1c], 0xb2
mov byte [esp + 0x1e], 0x14
mov byte [esp + 0x20], 0x14
mov byte [esp + 0x22], 0x24
mov dword [esp + 0x24], ebp
call fcn.1015f5c0
test eax, eax
je 0x1015e611
push 0x1388
push dword [esp + 0x1e]
push edi
call fcn.1015f910
mov dword [0x1021d6d4], 0x69
jmp 0x1015e647
push ebx
call fcn.100be50c
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1018d760
add esp, 0x3c
ret 0x18
mov dword [0x1021d6d4], 0x62
push ebx
call fcn.100be50c
add esp, 4
mov ecx, dword [esp + 0x48]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1018d760
add esp, 0x3c
ret 0x18