Function at 0x4f15c2
Capabilities:
Set socket configuration

Disassembly:
push ebp
sub esp, 0x5a8
lea ebp, [esp - 4]
mov eax, dword [0x6dd9a4]
xor eax, ebp
mov dword [ebp + 0x5a8], eax
push 0x58c
mov eax, 0x5c0663
call fcn.00518b79
mov esi, ecx
mov dword [ebp - 0x30], esi
mov eax, dword [ebp + 0x5b4]
mov dword [ebp - 0x34], eax
push 0x4b3107
call fcn.0051a1fb
xor ebx, ebx
mov dword [ebp - 0x38], ebx
xor eax, eax
cmp dword [esi + 0xc], ebx
setne al
inc eax
mov dword [ebp - 0x18], eax
push 0x10
push ebx
lea eax, [ebp + 0x20]
push eax
call fcn.00516720
push 0x10
push ebx
lea eax, [ebp + 0x10]
push eax
call fcn.00516720
add esp, 0x1c
push ebx
push dword [ebp - 0x18]
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4f166d
push ebx
sub esp, 0x24
mov ecx, esp
mov dword [ebp - 0x38], esp
push ebx
push str.NC.SockList.NoSocket
call fcn.0049eefc
mov dword [ebp - 4], ebx
or dword [ebp - 4], 0xffffffff
mov ecx, 0x6ed748
call fcn.0043008c
or eax, 0xffffffff
jmp 0x4f27eb
xor edi, edi
inc edi
cmp dword [ebp - 0x18], edi
jne 0x4f1688
mov dword [ebp - 0x18], edi
push 4
lea ecx, [ebp - 0x18]
push ecx
push edi
push 6
push eax
call dword [sym.imp.WSOCK32.dll_setsockopt]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x5c], 0x10
mov word [ebp + 0x20], 2
mov ax, word [esi + 0x14]
cmp ax, word [0x6edbae]
jne 0x4f16b2
push str.127.0.0.1
call dword [sym.imp.WSOCK32.dll_inet_addr]
jmp 0x4f16b9
push ebx
call dword [sym.imp.WSOCK32.dll_htonl]
mov dword [ebp + 0x24], eax
movzx eax, word [esi + 0x14]
push eax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp + 0x22], ax
cmp dword [ebp - 0x34], ebx
je 0x4f27e8
cmp dword [ebp + 0x5b8], ebx
je 0x4f16e8
cmp dword [ebp + 0x5b8], edi
jne 0x4f27e8
mov dword [esi + 8], edi
test byte [ebp + 0x5bc], 8
je 0x4f1715
mov dword [ebp - 0x18], edi
push 4
lea eax, [ebp - 0x18]
push eax
push 4
push 0xffff
push dword [esi]
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4f1665
push 0x10
lea eax, [ebp + 0x20]
push eax
push dword [esi]
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
jne 0x4f17f6
mov dword [ebp - 0x1c], ebx
cmp dword [esi + 8], edi
jne 0x4f17f6
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, dword [ebp - 0x1c]
add dword [ebp - 0x1c], 0x3e8
push ebx
cmp ecx, 0x2710
je 0x4f190c
cmp eax, 0x2740
je 0x4f1983
push str.StartWT.Bind.Failed_P
lea ecx, [ebp + 0x578]
call fcn.0049eefc
mov dword [ebp - 4], 7
push ebx
push ebx
movzx eax, word [esi + 0x14]
push eax
lea ecx, [ebp - 0xd8]
call fcn.0049ec37
mov byte [ebp - 4], 8
sub esp, 0x24
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
lea eax, [ebp + 0x578]
push eax
push ecx
call fcn.004a0106
add esp, 0xc
mov byte [ebp - 4], 9
mov byte [ebp - 4], 8
mov ecx, 0x6ed730
call fcn.00410e61
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xd8]
call fcn.0049ebaa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x578]
call fcn.0049ebaa
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x10
lea eax, [ebp + 0x20]
push eax
push dword [esi]
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
je 0x4f172f
mov dword [esi + 8], 2
push ebx
push str.StartWT.Listening_P
lea ecx, [ebp - 0xa8]
call fcn.0049eefc
mov dword [ebp - 4], 0xa
push ebx
push ebx
movzx eax, word [esi + 0x14]
push eax
lea ecx, [ebp - 0xd8]
call fcn.0049ec37
mov byte [ebp - 4], 0xb
sub esp, 0x24
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
lea eax, [ebp - 0xa8]
push eax
push ecx
call fcn.004a0106
add esp, 0xc
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 0xb
mov ecx, 0x6ed730
call fcn.00410efa
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xd8]
call fcn.0049ebaa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.0049ebaa
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x4f2680
push dword [esi + 0x10]
push dword [esi]
call dword [sym.imp.WSOCK32.dll_listen]
cmp eax, 0xffffffff
je 0x4f1665
cmp word [esi + 0x14], 0x50
mov eax, dword [0x6edb1c]
je 0x4f18a4
mov eax, dword [0x6edb20]
mov dword [ebp - 0x1c], eax
cmp dword [esi + 8], 2
jne 0x4f27e3
mov dword [ebp - 4], 0xd
movzx eax, word [esi + 0x14]
cmp ax, 0x1732
je 0x4f2530
cmp ax, word [0x6edbae]
je 0x4f2530
cmp ax, 0x34b
je 0x4f2530
cmp ax, 0x50
jne 0x4f24a9
mov dword [ebp - 0x550], ebx
xor eax, eax
mov dword [ebp - 0x6c], eax
cmp eax, ebx
jae 0x4f19e9
mov ecx, dword [ebp + eax*4 - 0x54c]
cmp ecx, dword [esi]
je 0x4f19e7
inc eax
jmp 0x4f18ef
push str.StartWT.Bind.FinalFailure_P
lea ecx, [ebp - 0xa8]
call fcn.0049eefc
mov dword [ebp - 4], edi
push ebx
push ebx
movzx eax, word [esi + 0x14]
push eax
lea ecx, [ebp - 0x108]
call fcn.0049ec37
mov byte [ebp - 4], 2
sub esp, 0x24
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
lea eax, [ebp - 0xa8]
push eax
push ecx
call fcn.004a0106
add esp, 0xc
mov byte [ebp - 4], 3
mov byte [ebp - 4], 2
mov ecx, 0x6ed730
call fcn.00410e61
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x108]
call fcn.0049ebaa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.0049ebaa
jmp 0x4f1665
push str.StartWT.PortInUse_P
lea ecx, [ebp - 0xa8]
call fcn.0049eefc
mov dword [ebp - 4], 4
push ebx
push ebx
movzx eax, word [esi + 0x14]
push eax
lea ecx, [ebp - 0xd8]
call fcn.0049ec37
mov byte [ebp - 4], 5
sub esp, 0x24
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
lea eax, [ebp - 0xa8]
push eax
push ecx
call fcn.004a0106
add esp, 0xc
mov byte [ebp - 4], 6
mov byte [ebp - 4], 5
mov ecx, 0x6ed730
call fcn.00410e61
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xd8]
jmp 0x4f196a
cmp eax, ebx
jne 0x4f19ff
cmp ebx, 0x40
jae 0x4f19ff
mov ecx, dword [esi]
mov dword [ebp + eax*4 - 0x54c], ecx
inc dword [ebp - 0x550]
lea eax, [ebp - 0x128]
push eax
lea ecx, [esi + 0x34]
call fcn.00439a0a
mov ecx, dword [eax]
mov dword [ebp - 0x58], ecx
mov eax, dword [eax + 4]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x118]
push eax
lea ecx, [esi + 0x34]
call fcn.004de3d2
push eax
lea ecx, [ebp - 0x58]
call fcn.004c32b4
test al, al
jne 0x4f1a8a
xor edi, edi
mov dword [ebp - 0x68], edi
cmp edi, dword [ebp - 0x550]
jae 0x4f1a5e
lea ecx, [ebp - 0x58]
call fcn.004f13c4
mov ecx, dword [ebp + edi*4 - 0x54c]
cmp ecx, dword [eax]
je 0x4f1a58
inc edi
jmp 0x4f1a37
cmp edi, dword [ebp - 0x550]
jne 0x4f1a80
cmp dword [ebp - 0x550], 0x40
jae 0x4f1a80
lea ecx, [ebp - 0x58]
call fcn.004f13c4
mov eax, dword [eax]
mov dword [ebp + edi*4 - 0x54c], eax
inc dword [ebp - 0x550]
lea ecx, [ebp - 0x58]
call fcn.004dc6b0
jmp 0x4f1a19
push ebx
push ebx
push ebx
lea eax, [ebp - 0x550]
push eax
push ebx
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
jne 0x4f1c3d
mov edi, 0x6ed7a8
mov ecx, edi
call fcn.004c1925
sub eax, dword [0x6db694]
cmp eax, 0x1e
jbe 0x4f1ba1
mov ecx, edi
call fcn.004c1925
mov dword [0x6db694], eax
mov dword [0x7258e8], ebx
push ebx
push ebx
lea ecx, [ebp - 0x194]
call fcn.0049ec37
mov byte [ebp - 4], 0xf
push ebx
push str._Not_logged_Errors:
lea ecx, [ebp - 0x404]
call fcn.0049eefc
mov byte [ebp - 4], 0x10
push ebx
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
lea ecx, [ebp - 0x398]
call fcn.0049ec37
mov byte [ebp - 4], 0x11
push ebx
push str.ncSocklist.Error.On.select:
lea ecx, [ebp - 0xa8]
call fcn.0049eefc
mov byte [ebp - 4], 0x12
push ebx
sub esp, 0x24
mov eax, esp
mov dword [ebp - 0x20], esp
lea ecx, [ebp - 0x194]
push ecx
lea ecx, [ebp - 0x404]
push ecx
lea ecx, [ebp - 0x398]
push ecx
lea ecx, [ebp - 0xa8]
push ecx
push eax
call fcn.004a018c
add esp, 0x14
mov byte [ebp - 4], 0x13
mov byte [ebp - 4], 0x12
mov ecx, 0x6ed748
call fcn.0043008c
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xa8]
call fcn.0049ebaa
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x398]
call fcn.0049ebaa
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x404]
call fcn.0049ebaa
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x194]
call fcn.0049ebaa
jmp 0x4f1ba7
inc dword [0x7258e8]
lea edi, [esi + 0x34]
lea eax, [ebp - 0x44]
push eax
mov ecx, edi
call fcn.00439a0a
lea eax, [ebp - 0x110]
push eax
mov ecx, edi
call fcn.004de3d2
push eax
lea ecx, [ebp - 0x44]
call fcn.004c32b4
test al, al
jne 0x4f1c2c
mov dword [ebp - 0x50], 0x10
lea ecx, [ebp - 0x44]
call fcn.004f13c4
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp]
push ecx
push dword [eax]
call dword [sym.imp.WSOCK32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x4f1c22
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2736
jne 0x4f1c22
push dword [ebp - 0x40]
push dword [ebp - 0x44]
lea eax, [ebp - 0x130]
push eax
mov ecx, edi
call fcn.004d896b
mov ecx, dword [eax]
mov dword [ebp - 0x44], ecx
mov eax, dword [eax + 4]
mov dword [ebp - 0x40], eax
jmp 0x4f1bb5
lea ecx, [ebp - 0x44]
call fcn.004dc6b0
jmp 0x4f1bb5
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
or dword [ebp - 4], 0xffffffff
jmp 0x4f18a7
lea eax, [ebp - 0x550]
push eax
push dword [esi]
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4f1ee0
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp + 0x10]
push eax
push dword [esi]
call dword [sym.imp.WSOCK32.dll_accept]
mov dword [ebp - 0x3c], eax
cmp eax, 0xffffffff
je 0x4f1e5c
mov byte [ebp - 0x29], bl
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
sub edi, 0x1388
cmp dword [esi + 0x30], ebx
jbe 0x4f1ca2
lea ecx, [esi + 0x28]
call fcn.004f1484
cmp dword [eax + 4], edi
jae 0x4f1ca2
lea ecx, [esi + 0x28]
call fcn.004df0c3
jmp 0x4f1c86
mov eax, dword [ebp - 0x1c]
cmp dword [0x6ef188], eax
jbe 0x4f1d0b
mov byte [ebp - 0x29], 1
lea edi, [esi + 0x28]
lea eax, [ebp - 0xb4]
push eax
mov ecx, edi
call fcn.004ca80b
lea eax, [ebp - 0x14c]
push eax
mov ecx, edi
call fcn.004de3e6
push eax
lea ecx, [ebp - 0xb4]
call fcn.004b5fe2
test al, al
jne 0x4f1d0b
lea ecx, [ebp - 0xb4]
call fcn.004de459
mov eax, dword [eax]
cmp eax, dword [ebp - 0x18]
je 0x4f1e15
push ebx
lea eax, [ebp - 0x350]
push eax
lea ecx, [ebp - 0xb4]
call fcn.004f13e8
jmp 0x4f1cc2
cmp byte [ebp - 0x29], bl
je 0x4f1e15
inc dword [esi + 0x44]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [esi + 0x40]
cmp eax, 0x3e8
jbe 0x4f1e04
push ebx
push dword [esi + 0x48]
lea ecx, [ebp - 0x224]
call fcn.0049ecea
mov byte [ebp - 4], 0x14
push ebx
push str._NoOfAccepts:
lea ecx, [ebp - 0x428]
call fcn.0049eefc
mov byte [ebp - 4], 0x15
push ebx
push dword [esi + 0x44]
lea ecx, [ebp - 0x1dc]
call fcn.0049ecea
mov byte [ebp - 4], 0x16
push ebx
push str.SockList.IncomingDenied.HTTP_NoOfRejects:
lea ecx, [ebp - 0x344]
call fcn.0049eefc
mov byte [ebp - 4], 0x17
push ebx
sub esp, 0x24
mov eax, esp
mov dword [ebp - 0x20], esp
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x428]
push ecx
lea ecx, [ebp - 0x1dc]
push ecx
lea ecx, [ebp - 0x344]
push ecx
push eax
call fcn.004a018c
add esp, 0x14
mov byte [ebp - 4], 0x18
mov byte [ebp - 4], 0x17
mov ecx, 0x6ed748
call fcn.0043008c
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x344]
call fcn.0049ebaa
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x1dc]
call fcn.0049ebaa
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x428]
call fcn.0049ebaa
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x224]
call fcn.0049ebaa
call edi
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call fcn.004b2e00
pop ecx
pop ecx
jmp 0x4f1ee0
inc dword [esi + 0x48]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x84], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x84]
push eax
lea ecx, [esi + 0x28]
call fcn.004f1599
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x74], eax
call edi
add eax, 0x1388
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x74]
push eax
lea ecx, [esi + 0x34]
call fcn.004f1599
jmp 0x4f1ee0
push ebx
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
lea ecx, [ebp - 0x26c]
call fcn.0049ec37
mov byte [ebp - 4], 0x19
push ebx
push str.nsSocklist.Error.On.accept:
lea ecx, [ebp - 0x374]
call fcn.0049eefc
mov byte [ebp - 4], 0x1a
push ebx
sub esp, 0x24
mov eax, esp
mov dword [ebp - 0x20], esp
lea ecx, [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x374]
push ecx
push eax
call fcn.004a0106
add esp, 0xc
mov byte [ebp - 4], 0x1b
mov byte [ebp - 4], 0x1a
mov ecx, 0x6ed748
call fcn.0043008c
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x374]
call fcn.0049ebaa
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x26c]
call fcn.0049ebaa
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edi, [esi + 0x34]
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.00439a0a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x138]
push eax
mov ecx, edi
call fcn.004de3d2
push eax
lea ecx, [ebp - 0x28]
call fcn.004c32b4
test al, al
jne 0x4f1c34
lea ecx, [ebp - 0x28]
call fcn.004f13c4
lea ecx, [ebp - 0x550]
push ecx
push dword [eax]
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4f23c5
mov byte [ebp - 0x11], bl
mov byte [ebp + 0x57c], bl
push 7
pop ecx
xor eax, eax
lea edi, [ebp + 0x57d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x28]
call fcn.004f13c4
push 2
push 0x1f
lea ecx, [ebp + 0x57c]
push ecx
push dword [eax]
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
jne 0x4f205e
push ebx
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
lea ecx, [ebp - 0x2fc]
call fcn.0049ec37
mov byte [ebp - 4], 0x1c
push ebx
push str._Error:
lea ecx, [ebp - 0x3bc]
call fcn.0049eefc
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x28]
call fcn.004f13c4
push ebx
push dword [eax]
lea ecx, [ebp - 0x2b4]
call fcn.0049ecea
mov byte [ebp - 4], 0x1e
push ebx
push str.ncSocklist.Error.reading.from.socket:
lea ecx, [ebp - 0x44c]
call fcn.0049eefc
mov byte [ebp - 4], 0x1f
push ebx
sub esp, 0x24
mov eax, esp
mov dword [ebp - 0x18], esp
lea ecx, [ebp - 0x2fc]
push ecx
lea ecx, [ebp - 0x3bc]
push ecx
lea ecx, [ebp - 0x2b4]
push ecx
lea ecx, [ebp - 0x44c]
push ecx
push eax
call fcn.004a018c
add esp, 0x14
mov byte [ebp - 4], 0x20
mov byte [ebp - 4], 0x1f
mov ecx, 0x6ed730
call fcn.00410e61
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x44c]
call fcn.0049ebaa
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x2b4]
call fcn.0049ebaa
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x3bc]
call fcn.0049ebaa
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x2fc]
call fcn.0049ebaa
push ebx
lea ecx, [ebp - 0x28]
call fcn.004f13c4
push eax
call fcn.004b2e00
pop ecx
pop ecx
jmp 0x4f23b7
cmp eax, ebx
jne 0x4f20e1
lea ecx, [ebp - 0x28]
call fcn.004f13c4
push ebx
push dword [eax]
lea ecx, [ebp - 0x170]
call fcn.0049ecea
mov byte [ebp - 4], 0x21
push ebx
push str.ncSocklist.Already.gracefully.closed.socket:
lea ecx, [ebp - 0x3e0]
call fcn.0049ed47
mov byte [ebp - 4], 0x22
push ebx
sub esp, 0x24
mov eax, esp
mov dword [ebp - 0x18], esp
lea ecx, [ebp - 0x170]
push ecx
lea ecx, [ebp - 0x3e0]
push ecx
push eax
call fcn.004a0106
add esp, 0xc
mov byte [ebp - 4], 0x23
mov byte [ebp - 4], 0x22
mov ecx, 0x6ed730
call fcn.00410efa
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x3e0]
call fcn.0049ebaa
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x170]
jmp 0x4f2043
push 4
push str.GET
lea eax, [ebp + 0x57c]
push eax
call fcn.00514a15
add esp, 0xc
test eax, eax
je 0x4f211e
push 5
push str.POST
lea eax, [ebp + 0x57c]
push eax
call fcn.00514a15
add esp, 0xc
test eax, eax
je 0x4f211e
mov byte [ebp - 0x11], 1
jmp 0x4f2327
push str._s00000000
lea eax, [ebp + 0x57c]
push eax
call fcn.0051a230
pop ecx
pop ecx
test eax, eax
jne 0x4f239d
push 0x65c644
lea eax, [ebp + 0x57c]
push eax
call fcn.0051a230
pop ecx
pop ecx
cmp eax, ebx
je 0x4f231a
push 8
add eax, 3
push eax
lea eax, [ebp + 0x59c]
push eax
call fcn.00514790
add esp, 0xc
mov byte [ebp + 0x5a4], bl
push 0xffffffffffffffff
sub esp, 0x24
mov ecx, esp
mov dword [ebp - 0x18], esp
push ebx
lea eax, [ebp + 0x59c]
push eax
call fcn.0049ed47
mov byte [ebp - 4], 0x24
mov byte [ebp - 4], 0xd
call fcn.004f10cc
add esp, 0x28
mov dword [ebp - 0x18], eax
cmp eax, ebx
jge 0x4f21a1
mov byte [ebp - 0x11], 1
mov byte [ebp - 0x2a], bl
push 0x6ef1f0
lea ecx, [ebp - 0x64]
call fcn.00411378
mov byte [ebp - 4], 0x25
mov eax, dword [0x6ef184]
mov eax, dword [eax]
mov edi, 0x6ef180
push edi
push eax
lea ecx, [ebp - 0x7c]
call fcn.004cdfd3
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x48], eax
cmp byte [ebp - 0x11], bl
jne 0x4f227d
push edi
push dword [0x6ef184]
lea ecx, [ebp - 0xe4]
call fcn.004cdfd3
lea eax, [ebp - 0xe4]
push eax
lea ecx, [ebp - 0x4c]
call fcn.004c32b4
test al, al
jne 0x4f227d
lea ecx, [ebp - 0x4c]
call fcn.004f13c4
mov eax, dword [eax]
cmp dword [eax + 0x21c], ebx
je 0x4f2270
lea ecx, [ebp - 0x4c]
call fcn.004f13c4
mov eax, dword [eax]
cmp byte [eax + 0x238], bl
je 0x4f2270
lea ecx, [ebp - 0x4c]
call fcn.004f13c4
mov eax, dword [eax]
mov ecx, dword [eax + 0x21c]
call fcn.004f10fd
cmp eax, dword [ebp - 0x18]
jne 0x4f2270
mov byte [ebp - 0x2a], 1
lea ecx, [ebp - 0x28]
call fcn.004f13c4
mov edi, eax
lea ecx, [ebp - 0x4c]
call fcn.004f13c4
mov eax, dword [eax]
mov eax, dword [eax + 0x21c]
push ebx
push dword [edi]
mov ecx, eax
call fcn.004e242d
jmp 0x4f2307
lea ecx, [ebp - 0x4c]
call fcn.004dc6b0
jmp 0x4f21d7
cmp byte [ebp - 0x2a], bl
jne 0x4f2307
cmp byte [ebp - 0x11], bl
jne 0x4f2307
push ebx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x200]
call fcn.0049ec37
mov byte [ebp - 4], 0x26
push ebx
push str.ncSocklist.No.ConnectionThread.for.SessionID:
lea ecx, [ebp - 0x1b8]
call fcn.0049eefc
mov byte [ebp - 4], 0x27
push ebx
sub esp, 0x24
mov eax, esp
mov dword [ebp - 0x18], esp
lea ecx, [ebp - 0x200]
push ecx
lea ecx, [ebp - 0x1b8]
push ecx
push eax
call fcn.004a0106
add esp, 0xc
mov byte [ebp - 4], 0x28
mov byte [ebp - 4], 0x27
mov ecx, 0x6ed730
call fcn.00410e61
mov byte [ebp - 4], 0x26
lea ecx, [ebp - 0x1b8]
call fcn.0049ebaa
mov byte [ebp - 4], 0x25
lea ecx, [ebp - 0x200]
call fcn.0049ebaa
mov byte [ebp - 0x11], 1
mov byte [ebp - 4], 0xd
cmp byte [ebp - 0x60], bl
je 0x4f231e
mov ecx, dword [ebp - 0x64]
call fcn.0040dc30
jmp 0x4f231e
mov byte [ebp - 0x11], 1
cmp byte [ebp - 0x11], bl
je 0x4f23b7
push ebx
push str.ncSocklist.Wrong.Data.on.Port.80:
lea ecx, [ebp - 0x248]
call fcn.0049eefc
mov byte [ebp - 4], 0x29
push ebx
push ebx
lea eax, [ebp + 0x57c]
push eax
lea ecx, [ebp - 0x574]
call fcn.0049ed47
mov byte [ebp - 4], 0x2a
sub esp, 0x24
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
lea eax, [ebp - 0x248]
push eax
push ecx
call fcn.004a0106
add esp, 0xc
mov byte [ebp - 4], 0x2b
mov byte [ebp - 4], 0x2a
mov ecx, 0x6ed730
call fcn.00410efa
mov byte [ebp - 4], 0x29
lea ecx, [ebp - 0x574]
call fcn.0049ebaa
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x248]
call fcn.0049ebaa
lea ecx, [ebp - 0x28]
call fcn.004f13c4
push dword [ebp + 0x5c0]
push dword [ebp - 0x34]
push dword [eax]
mov ecx, esi
call fcn.004f1138
lea edi, [esi + 0x34]
lea eax, [ebp - 0x120]
jmp 0x4f2481
lea ecx, [ebp - 0x28]
call fcn.004f13c4
mov ecx, dword [ebp - 0x20]
cmp dword [eax + 4], ecx
lea ecx, [ebp - 0x28]
jae 0x4f249f
call fcn.004f13c4
push ebx
push dword [eax]
lea ecx, [ebp - 0x2d8]
call fcn.0049ecea
mov byte [ebp - 4], 0x2c
push ebx
push str.ncSocklist.Socket.TimedOut.With.No.Action:
lea ecx, [ebp - 0x290]
call fcn.0049eefc
mov byte [ebp - 4], 0x2d
push ebx
sub esp, 0x24
mov eax, esp
mov dword [ebp - 0x18], esp
lea ecx, [ebp - 0x2d8]
push ecx
lea ecx, [ebp - 0x290]
push ecx
push eax
call fcn.004a0106
add esp, 0xc
mov byte [ebp - 4], 0x2e
mov byte [ebp - 4], 0x2d
mov ecx, 0x6ed730
call fcn.00410e61
mov byte [ebp - 4], 0x2c
lea ecx, [ebp - 0x290]
call fcn.0049ebaa
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x2d8]
call fcn.0049ebaa
lea ecx, [ebp - 0x28]
call fcn.004f13c4
push 2
push dword [eax]
call dword [sym.imp.WSOCK32.dll_shutdown]
push ebx
lea ecx, [ebp - 0x28]
call fcn.004f13c4
push eax
call fcn.004b2e00
pop ecx
pop ecx
lea eax, [ebp - 0x140]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push eax
mov ecx, edi
call fcn.004d896b
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], eax
jmp 0x4f1ef7
call fcn.004dc6b0
jmp 0x4f1ef7
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
movzx eax, word [esi + 0x14]
push eax
lea ecx, [ebp - 0x108]
call fcn.0049ec37
mov byte [ebp - 4], 0x2f
push ebx
push str.nsSocklist.Listening.Port.is.not.valid_m_Port
lea ecx, [ebp - 0x320]
call fcn.0049eefc
mov byte [ebp - 4], 0x30
push ebx
sub esp, 0x24
mov eax, esp
mov dword [ebp - 0x20], esp
lea ecx, [ebp - 0x108]
push ecx
lea ecx, [ebp - 0x320]
push ecx
push eax
call fcn.004a0106
add esp, 0xc
mov byte [ebp - 4], 0x31
mov byte [ebp - 4], 0x30
mov ecx, 0x6ed748
call fcn.0043008c
mov byte [ebp - 4], 0x2f
lea ecx, [ebp - 0x320]
call fcn.0049ebaa
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x108]
call fcn.0049ebaa
jmp 0x4f1c34
mov eax, dword [ebp - 0x1c]
cmp dword [0x6ef188], eax
jb 0x4f258e
push ebx
sub esp, 0x24
mov ecx, esp
mov dword [ebp - 0x20], esp
push ebx
push str.SockList.IncomingDenied.TCP
call fcn.0049eefc
mov byte [ebp - 4], 0xe
mov byte [ebp - 4], 0xd
mov ecx, 0x6ed748
call fcn.0043008c
push ebx
push dword [esi]
mov edi, dword [sym.imp.WSOCK32.dll_listen]
call edi
mov eax, dword [ebp - 0x1c]
cmp dword [0x6ef188], eax
jb 0x4f2587
cmp dword [esi + 8], 2
jne 0x4f2587
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4f256c
push dword [esi + 0x10]
push dword [esi]
call edi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp + 0x10]
push eax
push dword [esi]
call dword [sym.imp.WSOCK32.dll_accept]
mov dword [ebp - 0x3c], eax
cmp eax, 0xffffffff
je 0x4f25bc
push dword [ebp + 0x5c0]
push dword [ebp - 0x34]
push eax
mov ecx, esi
call fcn.004f1138
jmp 0x4f1c34
push 0x64
jmp 0x4f1c2e
cmp eax, edi
jne 0x4f27e3
push 0x546
push ebx
lea eax, [ebp + 0x30]
push eax
call fcn.00516720
add esp, 0xc
mov dword [ebp - 0x50], 0x10
mov dword [ebp - 0x20], edi
push 4
lea eax, [ebp - 0x20]
push eax
push 0x20
push 0xffff
push dword [esi]
call dword [sym.imp.WSOCK32.dll_setsockopt]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], ebx
push 0x104
push ebx
lea eax, [ebp - 0x550]
push eax
call fcn.00516720
add esp, 0xc
jmp 0x4f27d9
mov eax, dword [esi]
mov dword [ebp - 0x54c], eax
mov dword [ebp - 0x550], edi
lea ecx, [ebp - 0x64]
push ecx
push ebx
push ebx
lea ecx, [ebp - 0x550]
push ecx
inc eax
push eax
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, ebx
jle 0x4f27d9
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp + 0x10]
push eax
push ebx
push 0x546
lea eax, [ebp + 0x30]
push eax
push dword [esi]
call dword [sym.imp.WSOCK32.dll_recvfrom]
mov dword [ebp - 0x30], eax
add eax, 0xfffffff8
cmp eax, 0x53d
ja 0x4f27d9
push 0x560
call fcn.00511d1d
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0x37
cmp eax, ebx
je 0x4f2761
push dword [ebp - 0x30]
lea ecx, [ebp + 0x30]
push ecx
lea ecx, [ebp + 0x10]
push ecx
push dword [esi]
mov ecx, eax
call fcn.004f134d
mov dword [ebp - 0x1c], eax
jmp 0x4f2764
mov dword [ebp - 0x1c], ebx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
push 2
push 0x65e074
add eax, 0x1b
push eax
call fcn.00514a15
add esp, 0xc
test eax, eax
jne 0x4f2794
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 0x1e]
add eax, 8
cmp dword [ebp - 0x30], eax
je 0x4f27ce
push ebx
sub esp, 0x24
mov ecx, esp
mov dword [ebp - 0x30], esp
push ebx
push str.SockList.InvalidUDP
call fcn.0049eefc
mov dword [ebp - 4], 0x38
or dword [ebp - 4], 0xffffffff
mov ecx, 0x6ed748
call fcn.004c1477
cmp dword [ebp - 0x1c], ebx
je 0x4f27cb
push dword [ebp - 0x1c]
call fcn.005112a2
pop ecx
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x18], ebx
je 0x4f27d9
push dword [ebp - 0x18]
call dword [ebp - 0x34]
cmp dword [esi + 8], 2
je 0x4f26d9
mov eax, dword [ebp - 0x38]
jmp 0x4f27eb
push 2
pop eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x5a8]
xor ecx, ebp
call fcn.005112a7
add ebp, 0x5ac
leave
ret 0x10