Function at 0x463110
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
mov ebx, dword [ebp + 8]
movzx eax, word [ebp + 0xc]
test ebx, ebx
mov dword [ebp - 0x40], eax
je 0x463370
dec ebx
mov edx, 0xffffffff
jne 0x4632ea
mov dword [esp], 6
mov eax, 0x4e8
mov edi, 1
mov dword [esp + 8], eax
mov dword [esp + 4], edi
call sub.WSOCK32.DLL_socket
mov dword [ebp - 0x44], eax
sub esp, 0xc
inc eax
mov edx, 0xffffffff
je 0x4632ea
cld
xor eax, eax
mov ecx, 3
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
mov word [edi], 0
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp - 0x40]
mov word [ebp - 0x38], 6
test ebx, ebx
mov word [ebp - 0x2c], si
je 0x4632a3
mov edx, dword [ebp + 0x10]
mov ebx, 0x2e
mov dword [esp + 4], ebx
mov dword [esp], edx
call sym._strchr
mov dword [ebp - 0x48], eax
test eax, eax
je 0x4632a3
mov dword [ebp - 0x50], 3
mov edi, dword [ebp + 0x10]
lea esi, [ebp - 0x36]
mov dword [ebp - 0x4c], esi
movzx edx, byte [edi]
lea ebx, [edi + 1]
mov edi, dword [ebp - 0x4c]
mov dword [ebp - 0x54], edi
mov al, dl
sub al, 0x30
inc edi
cmp al, 9
movzx ecx, al
mov dword [ebp - 0x4c], edi
jbe 0x4631ef
mov cl, dl
sub cl, 0x41
cmp cl, 5
ja 0x463330
sub dl, 0x37
movzx ecx, dl
movzx edx, byte [ebx]
lea edi, [ebx + 1]
mov esi, ecx
shl esi, 4
mov bl, dl
sub bl, 0x30
cmp bl, 9
movzx ecx, bl
jbe 0x46321b
mov cl, dl
sub cl, 0x41
cmp cl, 5
ja 0x463350
sub dl, 0x37
movzx ecx, dl
mov edx, dword [ebp - 0x54]
mov ebx, esi
add bl, cl
mov byte [edx], bl
dec dword [ebp - 0x50]
cmp dword [ebp - 0x50], 0xffffffff
jne 0x4631c0
mov dword [ebp - 0x5c], 5
mov edi, dword [ebp - 0x48]
lea esi, [ebp - 0x32]
mov dword [ebp - 0x58], esi
inc edi
mov esi, esi
movzx edx, byte [edi]
inc edi
mov esi, dword [ebp - 0x58]
mov al, dl
lea ecx, [esi + 1]
sub al, 0x30
mov dword [ebp - 0x58], ecx
cmp al, 9
movzx ecx, al
jbe 0x46326c
mov bl, dl
sub bl, 0x41
cmp bl, 5
ja 0x4632f4
sub dl, 0x37
movzx ecx, dl
movzx edx, byte [edi]
mov ebx, ecx
shl ebx, 4
inc edi
mov al, dl
sub al, 0x30
cmp al, 9
movzx ecx, al
jbe 0x463294
mov cl, dl
sub cl, 0x41
cmp cl, 5
ja 0x463310
sub dl, 0x37
movzx ecx, dl
mov dl, bl
add dl, cl
mov byte [esi], dl
dec dword [ebp - 0x5c]
cmp dword [ebp - 0x5c], 0xffffffff
jne 0x463240
mov edi, dword [ebp - 0x44]
mov ebx, 0xe
lea esi, [ebp - 0x38]
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.WSOCK32.DLL_bind
sub esp, 0xc
inc eax
je 0x463485
mov edi, dword [ebp - 0x44]
mov esi, 0xa
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.WSOCK32.DLL_listen
sub esp, 8
test eax, eax
mov edx, dword [ebp - 0x44]
js 0x4634a4
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov al, dl
mov ecx, 0xff
sub al, 0x61
cmp al, 5
ja 0x46326c
sub dl, 0x57
jmp 0x463269
mov al, dl
mov ecx, 0xff
sub al, 0x61
cmp al, 5
ja 0x463294
sub dl, 0x57
jmp 0x463291
mov al, dl
mov ecx, 0xff
sub al, 0x61
cmp al, 5
ja 0x4631ef
sub dl, 0x57
jmp 0x4631ec
mov al, dl
mov ecx, 0xff
sub al, 0x61
cmp al, 5
ja 0x46321b
sub dl, 0x57
jmp 0x463218
mov dword [esp], 2
xor ecx, ecx
mov edx, 1
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call sub.WSOCK32.DLL_socket
mov dword [ebp - 0x44], eax
sub esp, 0xc
inc eax
mov edx, 0xffffffff
je 0x4632ea
mov dword [ebp - 0x3c], 1
mov esi, dword [ebp - 0x44]
mov edx, 0xffff
mov dword [esp + 4], edx
mov ecx, 4
mov eax, 4
mov dword [esp + 8], ecx
lea edi, [ebp - 0x3c]
mov dword [esp], esi
lea esi, [ebp - 0x28]
mov dword [esp + 0xc], edi
mov edi, esi
mov dword [esp + 0x10], eax
call sub.WSOCK32.DLL_setsockopt
cld
mov eax, ebx
mov ecx, 4
rep stosd dword es:[edi], eax
mov word [ebp - 0x28], 2
sub esp, 0x14
mov dword [esp], 0
call sub.WSOCK32.DLL_htonl
mov dword [ebp - 0x24], eax
mov edi, dword [ebp - 0x40]
sub esp, 4
mov dword [esp], edi
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x26], ax
mov ebx, dword [ebp + 0x10]
sub esp, 4
test ebx, ebx
je 0x463425
mov ebx, dword [ebp + 0x10]
mov dword [esp], ebx
call sub.WSOCK32.DLL_inet_addr
mov dword [ebp - 0x24], eax
sub esp, 4
mov dword [esp + 4], esi
mov esi, dword [ebp - 0x44]
mov edx, 0x10
mov dword [esp + 8], edx
mov dword [esp], esi
call sub.WSOCK32.DLL_bind
sub esp, 0xc
inc eax
jne 0x4632c8
mov eax, dword [ebp - 0x44]
mov ecx, 2
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.WSOCK32.DLL_shutdown
mov ecx, dword [ebp - 0x44]
sub esp, 8
mov dword [esp], ecx
call sub.WSOCK32.DLL_closesocket
sub esp, 4
mov dword [esp], 0x7d0
call sub.KERNEL32.dll_Sleep
sub esp, 4
mov edx, 0xffffffff
jmp 0x4632ea
mov eax, dword [ebp - 0x44]
mov edx, 2
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WSOCK32.DLL_shutdown
mov ecx, dword [ebp - 0x44]
sub esp, 8
mov dword [esp], ecx
jmp 0x463464
mov ebx, 2
mov eax, edx
mov dword [esp + 4], ebx
jmp 0x463453