Function at 0x4193be
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x10
call fcn.0041fef8
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.0041fef8
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x42f3c8
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
push 0x42724d
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call fcn.0040331e
add esp, 8
cmp eax, 0
je 0x419440
cmp dword [ebp + 0x10], 0
je 0x419440
xor eax, eax
jmp 0x419445
mov eax, 1
test eax, eax
je 0x41946b
mov eax, str.0.0.0.0
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x419465
push ebx
call fcn.0041fefe
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
cmp word [ebp + 0x14], 1
jge 0x41947c
mov word [ebp + 0x14], 0
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
mov word [ebx], 2
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 8], ebx
push 0x80000201
push 0
push dword [ebp + 0x14]
push 1
mov ebx, 0x9d8
call fcn.00421070
add esp, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 0xc]
call dword [sym.imp.WSOCK32.dll_htons]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4194de
push 0x140
push 0x4088eb4
push 6
call fcn.0041ff04
add esp, 0xc
mov ebx, dword [ebp - 8]
mov word [ebx], ax
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], esp
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call dword [sym.imp.WSOCK32.dll_inet_addr]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x41951b
push 0x17e
push 0x4088eb4
push 6
call fcn.0041ff04
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov dword [ebp - 8], esp
push 0x10
mov eax, dword [ebp - 4]
push eax
push 0x10
call fcn.0041fef8
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 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 + 8]
call dword [sym.imp.WSOCK32.dll_bind]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4195a2
push 0x1bd
push 0x4088eb4
push 6
call fcn.0041ff04
add esp, 0xc
push eax
mov ebx, dword [ebp - 0xc]
push ebx
mov edi, dword [ebp - 0x10]
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.00420c40
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 0x4195f9
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x4195f7
imul eax, dword [edi]
jmp 0x4195ec
mov ecx, eax
cmp ecx, 8
jle 0x419603
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.0041fefe
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
mov eax, 0
sete al
jmp 0x41962c
push eax
mov ebx, dword [ebp - 4]
push ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0041fefe
add esp, 4
pop ebx
call fcn.0041fefe
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x14