Function at 0x4098b9
Capabilities:
Create tcp socket
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
push 0x10
call fcn.0040fadd
add esp, 4
mov dword [ebp - 8], 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.0040fadd
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x41b3cf
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 - 0xc], 0
cmp dword [ebp + 0xc], 0
jne 0x409948
mov eax, str.0.0.0.0
push eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x409942
push ebx
call fcn.0040fae3
add esp, 4
pop eax
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [0x41bf19], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x40996e
push eax
mov ebx, eax
call fcn.004011b9
inc eax
push eax
call fcn.0040fadd
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [0x41bf1d]
test ebx, ebx
je 0x409982
push ebx
call fcn.0040fae3
add esp, 4
pop eax
mov dword [0x41bf1d], eax
mov dword [ebp - 0x10], esp
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4099b6
push 6
call fcn.0040fae9
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4099d1
cmp dword [ebp - 4], 0xffffffff
je 0x4099d1
xor eax, eax
jmp 0x4099d6
mov eax, 1
test eax, eax
je 0x4099e8
mov eax, 0
jmp 0x409da6
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov word [ebx], 2
mov ebx, dword [ebp - 8]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esp
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_htons]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x409a21
push 6
call fcn.0040fae9
add esp, 4
mov ebx, dword [ebp - 0x10]
mov word [ebx], ax
mov ebx, dword [ebp - 8]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.WS2_32.dll_inet_addr]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x409a54
push 6
call fcn.0040fae9
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [ebx], eax
mov ebx, dword [ebp - 8]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 0xffffffff
jne 0x409a9a
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_closesocket]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x409a90
push 6
call fcn.0040fae9
add esp, 4
mov eax, 0
jmp 0x409da6
mov dword [ebp - 0x10], esp
mov eax, dword [ebp - 8]
push eax
push 0x10
call fcn.0040fadd
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 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
call dword [0x41bf2d]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x409b0a
push 6
call fcn.0040fae9
add esp, 4
push eax
mov ebx, dword [ebp - 0x14]
push ebx
mov edi, dword [ebp - 0x18]
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.0040fd70
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 0x409b61
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x409b5f
imul eax, dword [edi]
jmp 0x409b54
mov ecx, eax
cmp ecx, 8
jle 0x409b6b
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.0040fae3
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esp
push dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
push eax
push 0x10
call fcn.0040fadd
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], 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 [ebp - 4]
call dword [sym.imp.WS2_32.dll_bind]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x409bf9
push 6
call fcn.0040fae9
add esp, 4
push eax
mov ebx, dword [ebp - 0x24]
push ebx
mov edi, dword [ebp - 0x28]
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.0040fd70
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 0x409c50
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x409c4e
imul eax, dword [edi]
jmp 0x409c43
mov ecx, eax
cmp ecx, 8
jle 0x409c5a
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.0040fae3
add esp, 4
pop eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x409ca8
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_closesocket]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x409c9e
push 6
call fcn.0040fae9
add esp, 4
mov eax, 0
jmp 0x409da6
mov dword [ebp - 0x10], esp
push 5
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_listen]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x409ccf
push 6
call fcn.0040fae9
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x409d08
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_closesocket]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x409cfe
push 6
call fcn.0040fae9
add esp, 4
mov eax, 0
jmp 0x409da6
mov dword [ebp - 0x10], esp
push 0
push 0
push dword [ebp - 4]
push 0x40a7bb
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x409d43
push 6
call fcn.0040fae9
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x409d7a
mov dword [ebp - 0x10], esp
push dword [ebp - 0xc]
call dword [0x41bf31]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x409d72
push 6
call fcn.0040fae9
add esp, 4
mov eax, dword [ebp - 4]
jmp 0x409da6
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_closesocket]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x409d9c
push 6
call fcn.0040fae9
add esp, 4
mov eax, 0
jmp 0x409da6
push eax
mov ebx, dword [ebp - 8]
push ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0040fae3
add esp, 4
pop ebx
call fcn.0040fae3
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc