Function at 0x4094f0
Capabilities:
Create tcp socket
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
mov ebp, dword [esp + 0x30]
cmp eax, 0xffffffff
mov dword [ebp], eax
jg 0x409523
push 0x725
call fcn.0040b400
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x14], eax
mov word [esp + 0x14], 2
mov dword [esp + 0x18], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [0x421670]
cmp eax, 0xffffffff
jne 0x4095f2
call fcn.00418750
push eax
call dword [sym.imp.MSVCRT.dll_srand]
push str.DYNSEARCHPORTS
call fcn.004187e0
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x4095de
mov esi, 0x420be0
mov ecx, edi
mov al, byte [ecx]
mov dl, al
cmp al, byte [esi]
jne 0x40959a
test dl, dl
je 0x409596
mov al, byte [ecx + 1]
mov dl, al
cmp al, byte [esi + 1]
jne 0x40959a
add ecx, 2
add esi, 2
test dl, dl
jne 0x409576
xor ecx, ecx
jmp 0x40959f
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
je 0x4095d7
mov esi, 0x4216e4
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4095ce
test cl, cl
je 0x4095ca
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4095ce
add eax, 2
add esi, 2
test cl, cl
jne 0x4095aa
xor eax, eax
jmp 0x4095d3
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4095de
mov eax, 1
jmp 0x4095ed
call fcn.00408e80
mov ecx, 0x2000
cmp ecx, eax
sbb eax, eax
inc eax
mov dword [0x421670], eax
mov ecx, dword [0x42166c]
cmp ecx, 0xffffffff
jne 0x409690
push str.LOCALLOOPBACK
call fcn.004187e0
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x409684
mov esi, 0x421698
mov ecx, edi
mov al, byte [ecx]
mov dl, al
cmp al, byte [esi]
jne 0x40963f
test dl, dl
je 0x40963b
mov al, byte [ecx + 1]
mov dl, al
cmp al, byte [esi + 1]
jne 0x40963f
add ecx, 2
add esi, 2
test dl, dl
jne 0x40961b
xor ecx, ecx
jmp 0x409644
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
je 0x40967c
mov esi, 0x421694
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x409673
test cl, cl
je 0x40966f
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x409673
add eax, 2
add esi, 2
test cl, cl
jne 0x40964f
xor eax, eax
jmp 0x409678
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x409684
mov dword [0x42166c], ebx
jmp 0x409694
mov dword [0x42166c], 1
jmp 0x4096bc
cmp ecx, ebx
jne 0x4096c1
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.00409c80
mov esi, dword [esp + 0x18]
lea edi, [esp + 0x20]
add esp, 8
movsx ecx, byte [esi + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x421670]
cmp eax, ebx
mov ebx, dword [esp + 0x28]
jne 0x4096eb
cmp dword [ebx], 0
jne 0x4096eb
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0x7530
mov edi, 0x3e8
idiv ecx
mov esi, edx
add esi, 0x4e20
jmp 0x4096ff
mov edi, dword [esp + 0x2c]
mov edx, dword [ebx]
mov si, word [ebx]
sub edi, edx
inc edi
test edi, edi
jle 0x409810
push esi
call fcn.0040a260
add esp, 4
mov word [esp + 0x16], ax
mov eax, dword [ebp]
lea edx, [esp + 0x14]
push 0x10
push edx
push eax
call sub.WSOCK32.dll_bind
test eax, eax
jge 0x40973e
mov eax, dword [ebx]
inc esi
test eax, eax
jne 0x409734
cmp si, 0xc350
jne 0x409734
mov esi, 0x4e20
dec edi
test edi, edi
jg 0x4096ff
jmp 0x40980e
mov eax, dword [0x421674]
cmp eax, 0xffffffff
jne 0x40978e
push str.SOMAXCONN
call fcn.004187e0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x409780
mov ebx, dword [sym.imp.MSVCRT.dll_atoi]
push ebp
call ebx
add esp, 4
test eax, eax
jle 0x40977c
push ebp
call ebx
mov ebx, dword [esp + 0x2c]
add esp, 4
mov dword [0x421674], eax
jmp 0x40978a
mov ebx, dword [esp + 0x28]
mov eax, 0x20
mov dword [0x421674], eax
mov ebp, dword [esp + 0x30]
mov ecx, dword [ebp]
push eax
push ecx
call sub.WSOCK32.dll_listen
test eax, eax
je 0x4097ce
call fcn.00409030
mov edx, dword [ebp]
push 2
push edx
call fcn.004090a0
mov eax, dword [ebp]
push eax
call fcn.004092e0
mov ecx, dword [ebp]
push ecx
push 0x716
call fcn.0040b400
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [0x421670]
test eax, eax
je 0x409806
mov ecx, dword [ebp]
lea edx, [esp + 0x28]
lea eax, [esp + 0x14]
push edx
push eax
push ecx
mov dword [esp + 0x34], 0x10
call sub.WSOCK32.dll_getsockname
mov edx, dword [esp + 0x16]
push edx
call fcn.0040a280
movsx eax, ax
add esp, 4
mov dword [ebx], eax
jmp 0x40980e
and esi, 0xffff
mov dword [ebx], esi
test edi, edi
jne 0x409835
call fcn.00409030
mov ecx, dword [ebp]
push ecx
call fcn.004092e0
push 0x2b0a
call fcn.0040b400
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret