Function at 0x42b081
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push 0x10
call fcn.0043c4ae
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
add ebx, 0xc
push ebx
push 0x10
call fcn.0043c4ae
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x4533a3
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
cmp dword [0x1b7dbf8], 1
jne 0x42b2c3
mov dword [ebp - 0x14], esp
mov eax, dword [0x1b7d7f4]
push eax
push 0x18e
call fcn.0043c4ae
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0x101
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0x81
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push 0x202
xor eax, eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x42b1a9
push 0x30
push 0x40b12e7
push 6
call fcn.0043c4ba
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x18]
push ebx
mov edi, dword [ebp - 0x1c]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 1
mov eax, 2
call fcn.0043c9f0
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x42b1f6
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x42b1f4
imul eax, dword [edi]
jmp 0x42b1e9
mov ecx, eax
cmp ecx, 0x101
jle 0x42b203
mov ecx, 0x101
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x101
push ebx
push edi
push 1
mov eax, 2
call fcn.0043c9f0
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x42b241
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x42b23f
imul eax, dword [edi]
jmp 0x42b234
mov ecx, eax
cmp ecx, 0x81
jle 0x42b24e
mov ecx, 0x81
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x81
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.0043c4b4
add esp, 4
pop eax
mov dword [ebp - 0x14], esp
push 0
push 1
push 2
xor eax, eax
call dword [sym.imp.WS2_32.dll_socket]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x42b2be
push 0x7f
push 0x40b12e7
push 6
call fcn.0043c4ba
add esp, 0xc
mov dword [0x1b7d7f8], eax
mov ebx, dword [ebp - 4]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov word [ebx], 2
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esp
push dword [ebp + 0xc]
xor eax, eax
call dword [sym.imp.WS2_32.dll_htons]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x42b306
push 0x137
push 0x40b12e7
push 6
call fcn.0043c4ba
add esp, 0xc
mov ebx, dword [ebp - 0x14]
mov word [ebx], ax
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.WS2_32.dll_inet_addr]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x42b343
push 0x174
push 0x40b12e7
push 6
call fcn.0043c4ba
add esp, 0xc
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov dword [ebp - 0x14], esp
push 0x10
mov eax, dword [ebp - 4]
push eax
push 0x10
call fcn.0043c4ae
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 8
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
push dword [0x1b7d7f8]
xor eax, eax
call dword [sym.imp.WS2_32.dll_connect]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x42b3cd
push 0x1a8
push 0x40b12e7
push 6
call fcn.0043c4ba
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x18]
push ebx
mov edi, dword [ebp - 0x1c]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 1
mov eax, 2
call fcn.0043c9f0
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x42b424
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x42b422
imul eax, dword [edi]
jmp 0x42b417
mov ecx, eax
cmp ecx, 8
jle 0x42b42e
mov ecx, 8
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 8
call fcn.0043c4b4
add esp, 4
pop eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x42b489
mov dword [ebp - 0x14], esp
push dword [0x1b7d7f8]
xor eax, eax
call dword [0x1b7dc74]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x42b47f
push 0x209
push 0x40b12e7
push 6
call fcn.0043c4ba
add esp, 0xc
mov eax, 0
jmp 0x42b76f
push 0x80000301
push 0
push 0x2712
push 1
mov ebx, 0x9dc
call fcn.0043cf00
add esp, 0x10
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x198
call fcn.0043dad0
add esp, 0x10
mov dword [ebp - 0x18], eax
push htons
push 0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
jne 0x42b4d9
mov eax, 0x453255
push eax
push 1
mov ebx, 0x194
call fcn.0043d2a0
add esp, 0x10
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x9dc
call fcn.0043cf00
add esp, 0x10
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x198
call fcn.0043dad0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push dword [ebp - 0x24]
push dword [ebp - 0x18]
mov ecx, 3
call fcn.00403012
add esp, 0xc
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x42b54e
push ebx
call fcn.0043c4b4
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x42b55e
push ebx
call fcn.0043c4b4
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x42b572
push ebx
call fcn.0043c4b4
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push htons
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x42b589
mov eax, 0x453255
push eax
push 1
mov ebx, 0x194
call fcn.0043d2a0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push 0
push dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x42b5b4
add eax, 8
push eax
push dword [0x1b7d7f8]
xor eax, eax
call dword [sym.imp.WS2_32.dll_send]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x42b5e1
push 0x317
push 0x40b12e7
push 6
call fcn.0043c4ba
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jg 0x42b627
mov dword [ebp - 0x14], esp
push dword [0x1b7d7f8]
xor eax, eax
call dword [0x1b7dc74]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x42b61d
push 0x372
push 0x40b12e7
push 6
call fcn.0043c4ba
add esp, 0xc
mov eax, 0
jmp 0x42b76f
push 0x80000301
push 0
push 0x1000
push 1
mov ebx, 0x1bc
call fcn.0043d270
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x42b65c
push ebx
call fcn.0043c4b4
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push 0
push 0x1000
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x42b677
add eax, 8
push eax
push dword [0x1b7d7f8]
xor eax, eax
call dword [0x1b7dc44]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x42b6a4
push 0x406
push 0x40b12e7
push 6
call fcn.0043c4ba
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x42b72c
fild dword [ebp + 0x14]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
mov ebx, dword [ebp + 0x18]
fild dword [ebx]
fstp qword [ebp - 0x20]
fadd qword [ebp - 0x20]
fstp qword [ebp - 0x28]
mov dword [ebp - 0x2c], esp
push dword [ebp - 8]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x42b6d8
add eax, 8
push eax
fld qword [ebp - 0x28]
call fcn.00401194
push eax
xor eax, eax
call dword [0x1b7dc78]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x42b708
push 0x482
push 0x40b12e7
push 6
call fcn.0043c4ba
add esp, 0xc
mov ebx, dword [ebp + 0x18]
fild dword [ebx]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fild dword [ebp - 8]
fstp qword [ebp - 0x20]
fadd qword [ebp - 0x20]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.00401194
mov ebx, dword [ebp + 0x18]
mov dword [ebx], eax
cmp dword [ebp - 8], 0
jg 0x42b660
mov dword [ebp - 0x14], esp
push dword [0x1b7d7f8]
xor eax, eax
call dword [0x1b7dc74]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x42b765
push 0x539
push 0x40b12e7
push 6
call fcn.0043c4ba
add esp, 0xc
mov eax, 1
jmp 0x42b76f
push eax
mov ebx, dword [ebp - 4]
push ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0043c4b4
add esp, 4
pop ebx
call fcn.0043c4b4
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x42b79c
push ebx
call fcn.0043c4b4
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x42b7ac
push ebx
call fcn.0043c4b4
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x14