Function at 0x100148e0
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Initialize winsock library
Start tcp server

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100433d5
mov eax, dword fs:[0]
push eax
sub esp, 0x548
mov eax, dword [0x10059084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x44c], edi
xor eax, eax
mov dword [ebp - 0x408], eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x400]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x424], eax
test eax, eax
je 0x10014b6e
mov eax, dword [edi + 0x63c]
mov dword [ebp - 0x40c], eax
test eax, eax
je 0x10014963
lock inc dword [eax + 4]
mov eax, dword [edi + 0x63c]
mov dword [ebp - 0x40c], eax
mov edx, dword [edi + 0x638]
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x408], 1
test edx, edx
je 0x100149e2
mov ecx, eax
mov dword [ebp - 0x410], ecx
test eax, eax
je 0x100149a5
lock inc dword [eax + 4]
mov ecx, dword [edi + 0x63c]
mov edx, dword [edi + 0x638]
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x434], edx
mov dword [ebp - 0x430], ecx
mov eax, 3
mov dword [ebp - 4], 1
push closesocket
mov ecx, edx
mov dword [ebp - 0x408], eax
mov dword [ebp - 0x420], eax
call fcn.100222c0
test al, al
je 0x100149ee
mov byte [ebp - 0x401], 1
jmp 0x100149f5
mov ecx, dword [ebp - 0x430]
mov dword [ebp - 0x410], ecx
mov byte [ebp - 0x401], 0
mov edx, dword [ebp - 0x408]
or esi, 0xffffffff
test dl, 2
je 0x10014a3d
mov ecx, dword [ebp - 0x410]
and edx, 0xfffffffd
mov dword [ebp - 0x408], edx
test ecx, ecx
je 0x10014a3d
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x10014a3d
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x410]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x10014a37
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x408]
mov dword [ebp - 4], 0xffffffff
test dl, 1
je 0x10014a74
mov ecx, dword [ebp - 0x40c]
test ecx, ecx
je 0x10014a74
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x10014a74
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x40c]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x10014a74
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x401], 0
je 0x10016c29
mov ecx, dword [edi + 0x63c]
mov dword [ebp - 0x40c], ecx
test ecx, ecx
je 0x10014aa1
lock inc dword [ecx + 4]
mov ecx, dword [edi + 0x63c]
mov dword [ebp - 0x40c], ecx
mov eax, dword [edi + 0x638]
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], ecx
push str.WebServerBase::_AcceptThread
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 2
call fcn.100241e0
mov dword [ebp - 0x418], eax
lea esi, [eax + 0x10]
mov byte [ebp - 4], 3
push 0x10051518
push esi
call fcn.100057d0
push str.WSAStartup_...__failure._result:
push esi
call fcn.100057d0
add esp, 0x10
mov ecx, esi
push dword [ebp - 0x424]
call fcn.10003570
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp - 0x418]
push eax
call fcn.100078f0
mov ecx, dword [ebp - 0x438]
call fcn.10021b20
lea ecx, [ebp - 0xc0]
call fcn.10024260
mov ecx, dword [ebp - 0x40c]
test ecx, ecx
je 0x10016c29
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x10016c29
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x40c]
lock xadd dword [ecx + 8], esi
dec esi
jne 0x10016c29
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10016c29
mov eax, dword [ebp - 0x400]
cmp al, 2
jne 0x100169f1
shr eax, 8
cmp al, 2
jne 0x100169f1
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [edi + 0x10], eax
cmp eax, 0xffffffff
jne 0x10014dc0
mov eax, dword [edi + 0x63c]
mov dword [ebp - 0x40c], eax
test eax, eax
je 0x10014bc5
lock inc dword [eax + 4]
mov eax, dword [edi + 0x63c]
mov dword [ebp - 0x40c], eax
mov edx, dword [edi + 0x638]
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x408], 0x10
test edx, edx
je 0x10014c44
mov ecx, eax
mov dword [ebp - 0x410], ecx
test eax, eax
je 0x10014c07
lock inc dword [eax + 4]
mov ecx, dword [edi + 0x63c]
mov edx, dword [edi + 0x638]
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x434], edx
mov dword [ebp - 0x430], ecx
mov eax, 0x30
mov dword [ebp - 4], 9
push closesocket
mov ecx, edx
mov dword [ebp - 0x408], eax
mov dword [ebp - 0x420], eax
call fcn.100222c0
test al, al
je 0x10014c50
mov byte [ebp - 0x401], 1
jmp 0x10014c57
mov ecx, dword [ebp - 0x430]
mov dword [ebp - 0x410], ecx
mov byte [ebp - 0x401], 0
mov edx, dword [ebp - 0x408]
or esi, 0xffffffff
test dl, 0x20
je 0x10014c9f
mov ecx, dword [ebp - 0x410]
and edx, 0xffffffdf
mov dword [ebp - 0x408], edx
test ecx, ecx
je 0x10014c9f
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x10014c9f
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x410]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x10014c99
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x408]
mov dword [ebp - 4], 0xffffffff
test dl, 0x10
je 0x10014cd6
mov ecx, dword [ebp - 0x40c]
test ecx, ecx
je 0x10014cd6
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x10014cd6
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x40c]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x10014cd6
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x401], 0
je 0x10016bfb
mov ecx, dword [edi + 0x63c]
mov dword [ebp - 0x40c], ecx
test ecx, ecx
je 0x10014d03
lock inc dword [ecx + 4]
mov ecx, dword [edi + 0x63c]
mov dword [ebp - 0x40c], ecx
mov eax, dword [edi + 0x638]
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], ecx
push str.WebServerBase::_AcceptThread
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xa
call fcn.100241e0
mov dword [ebp - 0x424], eax
lea esi, [eax + 0x10]
mov byte [ebp - 4], 0xb
push 0x10051518
push esi
call fcn.100057d0
push str.AcceptThread:_WSASocket_...__failure._WSAGetLastError:
push esi
call fcn.100057d0
add esp, 0x10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, esi
call fcn.10003570
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp - 0x424]
push eax
call fcn.100078f0
mov ecx, dword [ebp - 0x418]
call fcn.10021b20
lea ecx, [ebp - 0xc0]
call fcn.10024260
mov ecx, dword [ebp - 0x40c]
test ecx, ecx
je 0x10016bfb
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x10016bfb
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x40c]
jmp 0x10016bee
mov eax, 2
mov word [ebp - 0x234], ax
movzx eax, word [edi + 0x54]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push dword [edi + 0x50]
mov word [ebp - 0x232], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x234]
push 0x10
push eax
push dword [edi + 0x10]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x100150aa
mov eax, dword [edi + 0x63c]
mov dword [ebp - 0x40c], eax
test eax, eax
je 0x10014e28
lock inc dword [eax + 4]
mov eax, dword [edi + 0x63c]
mov dword [ebp - 0x40c], eax
mov edx, dword [edi + 0x638]
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x408], 0x40
test edx, edx
je 0x10014ea7
mov ecx, eax
mov dword [ebp - 0x410], ecx
test eax, eax
je 0x10014e6a
lock inc dword [eax + 4]
mov ecx, dword [edi + 0x63c]
mov edx, dword [edi + 0x638]
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x434], edx
mov dword [ebp - 0x430], ecx
mov eax, 0xc0
mov dword [ebp - 4], 0xd
push closesocket
mov ecx, edx
mov dword [ebp - 0x408], eax
mov dword [ebp - 0x420], eax
call fcn.100222c0
test al, al
je 0x10014eb3
mov byte [ebp - 0x401], 1
jmp 0x10014eba
mov ecx, dword [ebp - 0x430]
mov dword [ebp - 0x410], ecx
mov byte [ebp - 0x401], 0
mov edx, dword [ebp - 0x408]
or esi, 0xffffffff
test dl, dl
jns 0x10014f04
mov ecx, dword [ebp - 0x410]
and edx, 0xffffff7f
mov dword [ebp - 0x408], edx
test ecx, ecx
je 0x10014f04
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x10014f04
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x410]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x10014efe
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x408]
mov dword [ebp - 4], 0xffffffff
test dl, 0x40
je 0x10014f3b
mov ecx, dword [ebp - 0x40c]
test ecx, ecx
je 0x10014f3b
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x10014f3b
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x40c]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x10014f3b
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x401], 0
je 0x10016bfb
mov eax, dword [edi + 0x63c]
mov dword [ebp - 0x40c], eax
test eax, eax
je 0x10014f68
lock inc dword [eax + 4]
mov eax, dword [edi + 0x63c]
mov dword [ebp - 0x40c], eax
mov ecx, dword [edi + 0x638]
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x428], eax
push str.WebServerBase::_AcceptThread
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xe
call fcn.100241e0
mov dword [ebp - 0x414], eax
lea esi, [eax + 0x10]
mov byte [ebp - 4], 0xf
push 0x10051518
push esi
call fcn.100057d0
push str.AcceptThread:_bind_...__failure._GetLastError:
push esi
call fcn.100057d0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x424]
call fcn.1001e660
mov byte [ebp - 4], 0x10
mov esi, dword [ebp - 0x424]
test esi, esi
je 0x1001502c
mov eax, dword [esi + 8]
test eax, eax
je 0x10014feb
cmp word [eax], 0
jne 0x10015027
test esi, esi
je 0x1001502c
mov eax, dword [esi + 4]
test eax, eax
je 0x1001502c
cmp byte [eax], 0
je 0x1001502c
cmp dword [esi + 8], 0
jne 0x10015020
mov eax, dword [esi + 0xc]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1002c463
add esp, 4
mov dword [esi + 8], eax
mov ecx, esi
call fcn.1001e290
mov eax, dword [esi + 8]
jmp 0x10015031
mov eax, 0x10052714
push eax
mov eax, dword [ebp - 0x414]
add eax, 0x10
push eax
call fcn.10005570
sub esp, 0x10
mov eax, esp
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp - 0x414]
push eax
call fcn.100078f0
mov ecx, dword [ebp - 0x418]
call fcn.10021b20
test esi, esi
je 0x10014d88
or ecx, 0xffffffff
mov eax, ecx
lock xadd dword [esi], eax
jne 0x10014d88
mov eax, dword [esi + 4]
test eax, eax
je 0x1001508a
push eax
call fcn.1002ba5e
add esp, 4
mov eax, dword [esi + 8]
test eax, eax
je 0x1001509a
push eax
call fcn.1002ba5e
add esp, 4
push 0x14
push esi
call fcn.10025ac5
add esp, 8
jmp 0x10014d88
push closesocket
push dword [edi + 0x10]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x10015279
mov eax, dword [edi + 0x63c]
mov dword [ebp - 0x40c], eax
test eax, eax
je 0x100150e1
lock inc dword [eax + 4]
mov eax, dword [edi + 0x63c]
mov dword [ebp - 0x40c], eax
mov edx, dword [edi + 0x638]
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x408], 0x100
test edx, edx
je 0x10015160
mov ecx, eax
mov dword [ebp - 0x410], ecx
test eax, eax
je 0x10015123
lock inc dword [eax + 4]
mov ecx, dword [edi + 0x63c]
mov edx, dword [edi + 0x638]
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x434], edx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 4], 0x12
mov esi, 0x300
push closesocket
mov ecx, edx
mov dword [ebp - 0x408], esi
mov dword [ebp - 0x420], esi
call fcn.100222c0
test al, al
je 0x1001516c
mov byte [ebp - 0x401], 1
jmp 0x10015173
mov ecx, dword [ebp - 0x430]
mov dword [ebp - 0x410], ecx
mov byte [ebp - 0x401], 0
mov edx, dword [ebp - 0x408]
or esi, 0xffffffff
test edx, 0x200
je 0x100151c1
mov ecx, dword [ebp - 0x410]
and edx, 0xfffffdff
mov dword [ebp - 0x408], edx
test ecx, ecx
je 0x100151c1
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x100151c1
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x410]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x100151bb
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x408]
mov dword [ebp - 4], 0xffffffff
test edx, 0x100
je 0x100151fb
mov ecx, dword [ebp - 0x40c]
test ecx, ecx
je 0x100151fb
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x100151fb
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x40c]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x100151fb
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x401], 0
je 0x10016bfb
mov ecx, dword [edi + 0x63c]
mov dword [ebp - 0x40c], ecx
test ecx, ecx
je 0x10015228
lock inc dword [ecx + 4]
mov ecx, dword [edi + 0x63c]
mov dword [ebp - 0x40c], ecx
mov eax, dword [edi + 0x638]
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], ecx
push str.WebServerBase::_AcceptThread
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0x13
call fcn.100241e0
mov dword [ebp - 0x424], eax
lea esi, [eax + 0x10]
mov byte [ebp - 4], 0x14
push 0x10051518
push esi
call fcn.100057d0
push str.listen_...__failure._WSAGetLastError:
jmp 0x10014d4f
mov esi, dword [sym.imp.WS2_32.dll_WSACreateEvent]
call esi
mov dword [edi + 0x18], eax
test eax, eax
jne 0x10015444
mov eax, dword [edi + 0x63c]
mov dword [ebp - 0x40c], eax
test eax, eax
je 0x100152ac
lock inc dword [eax + 4]
mov eax, dword [edi + 0x63c]
mov dword [ebp - 0x40c], eax
mov edx, dword [edi + 0x638]
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x408], 0x400
test edx, edx
je 0x1001532b
mov ecx, eax
mov dword [ebp - 0x410], ecx
test eax, eax
je 0x100152ee
lock inc dword [eax + 4]
mov ecx, dword [edi + 0x63c]
mov edx, dword [edi + 0x638]
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x434], edx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 4], 0x16
mov esi, 0xc00
push closesocket
mov ecx, edx
mov dword [ebp - 0x408], esi
mov dword [ebp - 0x420], esi
call fcn.100222c0
test al, al
je 0x10015337
mov byte [ebp - 0x401], 1
jmp 0x1001533e
mov ecx, dword [ebp - 0x430]
mov dword [ebp - 0x410], ecx
mov byte [ebp - 0x401], 0
mov edx, dword [ebp - 0x408]
or esi, 0xffffffff
test edx, 0x800
je 0x1001538c
mov ecx, dword [ebp - 0x410]
and edx, 0xfffff7ff
mov dword [ebp - 0x408], edx
test ecx, ecx
je 0x1001538c
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x1001538c
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x410]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x10015386
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x408]
mov dword [ebp - 4], 0xffffffff
test edx, 0x400
je 0x100153c6
mov ecx, dword [ebp - 0x40c]
test ecx, ecx
je 0x100153c6
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x100153c6
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x40c]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x100153c6
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x401], 0
je 0x10016bfb
mov ecx, dword [edi + 0x63c]
mov dword [ebp - 0x40c], ecx
test ecx, ecx
je 0x100153f3
lock inc dword [ecx + 4]
mov ecx, dword [edi + 0x63c]
mov dword [ebp - 0x40c], ecx
mov eax, dword [edi + 0x638]
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], ecx
push str.WebServerBase::_AcceptThread
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0x17
call fcn.100241e0
mov dword [ebp - 0x424], eax
lea esi, [eax + 0x10]
mov byte [ebp - 4], 0x18
push 0x10051518
push esi
call fcn.100057d0
push str.WSACreateEvent_...__failure_for_ShutdownEvent._WSAGetLastError:
jmp 0x10014d4f
call esi
mov ecx, eax
mov dword [edi + 0x14], ecx
test ecx, ecx
jne 0x1001560b
mov eax, dword [edi + 0x63c]
mov dword [ebp - 0x40c], eax
test eax, eax
je 0x10015473
lock inc dword [eax + 4]
mov eax, dword [edi + 0x63c]
mov dword [ebp - 0x40c], eax
mov edx, dword [edi + 0x638]
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x408], 0x1000
test edx, edx
je 0x100154f2
mov ecx, eax
mov dword [ebp - 0x410], ecx
test eax, eax
je 0x100154b5
lock inc dword [eax + 4]
mov ecx, dword [edi + 0x63c]
mov edx, dword [edi + 0x638]
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x434], edx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 4], 0x1a
mov esi, 0x3000
push closesocket
mov ecx, edx
mov dword [ebp - 0x408], esi
mov dword [ebp - 0x420], esi
call fcn.100222c0
test al, al
je 0x100154fe
mov byte [ebp - 0x401], 1
jmp 0x10015505
mov ecx, dword [ebp - 0x430]
mov dword [ebp - 0x410], ecx
mov byte [ebp - 0x401], 0
mov edx, dword [ebp - 0x408]
or esi, 0xffffffff
test edx, 0x2000
je 0x10015553
mov ecx, dword [ebp - 0x410]
and edx, 0xffffdfff
mov dword [ebp - 0x408], edx
test ecx, ecx
je 0x10015553
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x10015553
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x410]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x1001554d
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x408]
mov dword [ebp - 4], 0xffffffff
test edx, 0x1000
je 0x1001558d
mov ecx, dword [ebp - 0x40c]
test ecx, ecx
je 0x1001558d
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x1001558d
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x40c]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x1001558d
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x401], 0
je 0x10016bfb
mov ecx, dword [edi + 0x63c]
mov dword [ebp - 0x40c], ecx
test ecx, ecx
je 0x100155ba
lock inc dword [ecx + 4]
mov ecx, dword [edi + 0x63c]
mov dword [ebp - 0x40c], ecx
mov eax, dword [edi + 0x638]
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], ecx
push str.WebServerBase::_AcceptThread
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0x1b
call fcn.100241e0
mov dword [ebp - 0x424], eax
lea esi, [eax + 0x10]
mov byte [ebp - 4], 0x1c
push 0x10051518
push esi
call fcn.100057d0
push str.WSACreateEvent_...__failure_for_networkEvent._WSAGetLastError:
jmp 0x10014d4f
mov eax, dword [edi + 0x18]
push 8
push ecx
push dword [edi + 0x10]
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x45c], ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x100157e7
mov eax, dword [edi + 0x63c]
mov dword [ebp - 0x40c], eax
test eax, eax
je 0x1001564f
lock inc dword [eax + 4]
mov eax, dword [edi + 0x63c]
mov dword [ebp - 0x40c], eax
mov edx, dword [edi + 0x638]
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x408], 0x4000
test edx, edx
je 0x100156ce
mov ecx, eax
mov dword [ebp - 0x410], ecx
test eax, eax
je 0x10015691
lock inc dword [eax + 4]
mov ecx, dword [edi + 0x63c]
mov edx, dword [edi + 0x638]
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x434], edx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 4], 0x1e
mov esi, 0xc000
push closesocket
mov ecx, edx
mov dword [ebp - 0x408], esi
mov dword [ebp - 0x420], esi
call fcn.100222c0
test al, al
je 0x100156da
mov byte [ebp - 0x401], 1
jmp 0x100156e1
mov ecx, dword [ebp - 0x430]
mov dword [ebp - 0x410], ecx
mov byte [ebp - 0x401], 0
mov edx, dword [ebp - 0x408]
or esi, 0xffffffff
test edx, 0x8000
je 0x1001572f
mov ecx, dword [ebp - 0x410]
and edx, 0xffff7fff
mov dword [ebp - 0x408], edx
test ecx, ecx
je 0x1001572f
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x1001572f
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x410]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x10015729
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x408]
mov dword [ebp - 4], 0xffffffff
test edx, 0x4000
je 0x10015769
mov ecx, dword [ebp - 0x40c]
test ecx, ecx
je 0x10015769
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x10015769
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x40c]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x10015769
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x401], 0
je 0x10016bfb
mov ecx, dword [edi + 0x63c]
mov dword [ebp - 0x40c], ecx
test ecx, ecx
je 0x10015796
lock inc dword [ecx + 4]
mov ecx, dword [edi + 0x63c]
mov dword [ebp - 0x40c], ecx
mov eax, dword [edi + 0x638]
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], ecx
push str.WebServerBase::_AcceptThread
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0x1f
call fcn.100241e0
mov dword [ebp - 0x424], eax
lea esi, [eax + 0x10]
mov byte [ebp - 4], 0x20
push 0x10051518
push esi
call fcn.100057d0
push str.WSAEventSelect_...__failure._WSAGetLastError:
jmp 0x10014d4f
push dword [edi + 0x1c]
mov dword [edi + 0x5c], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x460]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
or esi, 0xffffffff
cmp eax, esi
je 0x100165cb
mov ecx, dword [ebp - 0x464]
mov edx, dword [ebp - 0x428]
mov dword [ebp - 0x448], ecx
mov ecx, dword [ebp - 0x46c]
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x40c], edx
nop dword [eax + eax]
test eax, eax
je 0x100169be
lea eax, [ebp - 0x270]
push eax
push dword [edi + 0x14]
push dword [edi + 0x10]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp eax, 0xffffffff
je 0x1001667a
test byte [ebp - 0x270], 8
je 0x100165ad
push 0
push 0
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 0x10
push eax
lea eax, [ebp - 0x244]
push eax
push dword [edi + 0x10]
call dword [sym.imp.WS2_32.dll_WSAAccept]
mov dword [ebp - 0x414], eax
mov eax, dword [edi + 0x63c]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x100158bc
lock inc dword [eax + 4]
mov eax, dword [edi + 0x63c]
mov dword [ebp - 0x420], eax
mov ecx, dword [edi + 0x638]
mov dword [ebp - 0x478], ecx
mov dword [ebp - 0x474], eax
push 2
mov dword [ebp - 4], 0x29
call fcn.100222c0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x420]
mov byte [ebp - 0x401], al
test edx, edx
je 0x10015916
mov ecx, esi
lock xadd dword [edx + 4], ecx
jne 0x10015916
mov eax, dword [edx]
mov ecx, edx
call dword [eax]
mov ecx, dword [ebp - 0x420]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x10015916
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x401], 0
je 0x10015fd2
mov edi, dword [ebp - 0x414]
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x458], 0x10
push eax
push edi
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x418], 0
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x10015976
push dword [ebp - 0x222]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [ebp - 0x438], eax
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x224]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x100159a5
push dword [ebp - 0x222]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x420], 0
push 0xfffffffffffffffc
lea eax, [ebp - 0x214]
mov dword [ebp - 4], 0x2a
push eax
lea ecx, [ebp - 0x420]
call fcn.10019750
mov edi, dword [eax]
test edi, edi
je 0x100159d9
lock inc dword [edi]
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x10015a32
mov ecx, esi
lock xadd dword [eax], ecx
jne 0x10015a32
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x214], eax
test eax, eax
je 0x10015a32
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10015a11
push ecx
call fcn.1002ba5e
mov eax, dword [ebp - 0x214]
add esp, 4
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10015a27
push ecx
call fcn.1002ba5e
mov eax, dword [ebp - 0x214]
add esp, 4
push 0x14
push eax
call fcn.10025ac5
add esp, 8
mov ecx, dword [ebp - 0x408]
or ecx, 0x100000
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x408], ecx
test edi, edi
je 0x10015a51
lock inc dword [edi]
mov dword [ebp - 4], 0x2c
test ecx, 0x200000
je 0x10015ac5
mov edx, dword [ebp - 0x454]
and ecx, 0xffdfffff
mov dword [ebp - 0x408], ecx
test edx, edx
je 0x10015ac5
mov eax, esi
lock xadd dword [edx], eax
jne 0x10015abb
mov eax, dword [edx + 4]
test eax, eax
je 0x10015a94
push eax
call fcn.1002ba5e
mov edx, dword [ebp - 0x454]
add esp, 4
mov eax, dword [edx + 8]
test eax, eax
je 0x10015aaa
push eax
call fcn.1002ba5e
mov edx, dword [ebp - 0x454]
add esp, 4
push 0x14
push edx
call fcn.10025ac5
mov ecx, dword [ebp - 0x408]
add esp, 8
mov dword [ebp - 0x454], 0
mov byte [ebp - 4], 0x2d
test ecx, 0x100000
je 0x10015b14
and ecx, 0xffefffff
mov dword [ebp - 0x408], ecx
test edi, edi
je 0x10015b14
mov eax, esi
lock xadd dword [edi], eax
jne 0x10015b14
mov eax, dword [edi + 4]
test eax, eax
je 0x10015af9
push eax
call fcn.1002ba5e
add esp, 4
mov eax, dword [edi + 8]
test eax, eax
je 0x10015b09
push eax
call fcn.1002ba5e
add esp, 4
push 0x14
push edi
call fcn.10025ac5
add esp, 8
lea edx, [ebp - 0x224]
lea ecx, [ebp - 0x450]
call fcn.10016c60
push 0x14
mov byte [ebp - 4], 0x2e
call fcn.10025ad3
mov dword [ebp - 0x214], eax
lea ecx, [ebp - 0x444]
add esp, 4
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax], 1
mov dword [eax + 4], 0
mov dword [eax + 8], 0
push str.AcceptThread:_Accepted._clientSocket:Ox
mov dword [ebp - 0x444], eax
call fcn.10017720
lea eax, [ebp - 0x41c]
mov byte [ebp - 4], 0x2f
push eax
lea ecx, [ebp - 0x444]
call fcn.100179b0
push str._local_port:
mov ecx, eax
call fcn.1000c1c0
push dword [ebp - 0x438]
mov ecx, eax
call fcn.10017e70
push str._peer_port:
mov ecx, eax
call fcn.1000c1c0
lea ecx, [ebp - 0x450]
push ecx
mov ecx, eax
call fcn.100179b0
push 0x10052660
mov ecx, eax
call fcn.1000c1c0
push dword [ebp - 0x418]
mov ecx, eax
call fcn.10017e70
mov esi, dword [eax]
mov dword [ebp - 0x430], esi
test esi, esi
je 0x10015bef
lock inc dword [esi]
mov eax, dword [ebp - 0x444]
test eax, eax
je 0x10015c53
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10015c49
mov eax, dword [ebp - 0x444]
mov dword [ebp - 0x418], eax
test eax, eax
je 0x10015c49
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10015c28
push ecx
call fcn.1002ba5e
mov eax, dword [ebp - 0x418]
add esp, 4
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10015c3e
push ecx
call fcn.1002ba5e
mov eax, dword [ebp - 0x418]
add esp, 4
push 0x14
push eax
call fcn.10025ac5
add esp, 8
mov dword [ebp - 0x444], 0
mov eax, dword [ebp - 0x44c]
mov edx, dword [eax + 0x63c]
mov dword [ebp - 0x214], edx
test edx, edx
je 0x10015c79
lock inc dword [edx + 4]
mov edx, dword [eax + 0x63c]
mov dword [ebp - 0x214], edx
mov ecx, dword [eax + 0x638]
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x480], ecx
mov dword [ebp - 0x47c], edx
mov ecx, dword [ebp - 0x408]
or ecx, 0x400000
cmp dword [eax + 0x638], 0
mov dword [ebp - 0x408], ecx
je 0x10015d13
mov dword [ebp - 0x448], edx
test edx, edx
je 0x10015cce
lock inc dword [edx + 4]
mov edx, dword [eax + 0x638]
mov eax, dword [eax + 0x63c]
mov dword [ebp - 0x448], eax
jmp 0x10015cda
mov edx, dword [ebp - 0x418]
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x468], edx
mov dword [ebp - 0x464], eax
or ecx, 0x800000
mov dword [ebp - 4], 0x33
mov dword [ebp - 0x408], ecx
mov dword [ebp - 0x420], ecx
mov ecx, edx
push 2
call fcn.100222c0
mov byte [ebp - 0x401], 1
test al, al
jne 0x10015d1a
mov byte [ebp - 0x401], 0
mov ecx, dword [ebp - 0x408]
test ecx, 0x800000
je 0x10015d6b
mov edx, dword [ebp - 0x448]
and ecx, 0xff7fffff
mov dword [ebp - 0x408], ecx
test edx, edx
je 0x10015d6b
or eax, 0xffffffff
lock xadd dword [edx + 4], eax
jne 0x10015d6b
mov eax, dword [edx]
mov ecx, edx
call dword [eax]
mov edx, dword [ebp - 0x448]
or eax, 0xffffffff
lock xadd dword [edx + 8], eax
jne 0x10015d65
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 4]
mov ecx, dword [ebp - 0x408]
mov dword [ebp - 4], 0x31
test ecx, 0x400000
je 0x10015db5
and ecx, 0xffbfffff
mov dword [ebp - 0x408], ecx
mov ecx, dword [ebp - 0x214]
test ecx, ecx
je 0x10015db5
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x10015db5
mov eax, dword [ecx]
call dword [eax]
or ecx, 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0x214]
lock xadd dword [ecx + 8], eax
jne 0x10015db5
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x401], 0
je 0x10015ef0
mov eax, dword [ebp - 0x44c]
mov ecx, dword [eax + 0x63c]
mov dword [ebp - 0x214], ecx
test ecx, ecx
je 0x10015de8
lock inc dword [ecx + 4]
mov ecx, dword [eax + 0x63c]
mov dword [ebp - 0x214], ecx
mov eax, dword [eax + 0x638]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x488], eax
mov dword [ebp - 0x484], ecx
push str.WebServerBase::_AcceptThread
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 0x34
call fcn.100241e0
mov dword [ebp - 0x438], eax
add eax, 0x10
mov byte [ebp - 4], 0x35
push 0x10051518
push eax
mov dword [ebp - 0x418], eax
call fcn.100057d0
add esp, 8
test esi, esi
je 0x10015e83
mov eax, dword [esi + 8]
test eax, eax
je 0x10015e46
cmp word [eax], 0
jne 0x10015e7e
mov eax, dword [esi + 4]
test eax, eax
je 0x10015e83
cmp byte [eax], 0
je 0x10015e83
cmp dword [esi + 8], 0
jne 0x10015e77
mov eax, dword [esi + 0xc]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1002c463
add esp, 4
mov dword [esi + 8], eax
mov ecx, esi
call fcn.1001e290
mov eax, dword [esi + 8]
jmp 0x10015e88
mov eax, 0x10052714
push eax
push dword [ebp - 0x418]
call fcn.10005570
sub esp, 0x10
mov eax, esp
mov dword [ebp - 0x418], eax
mov ecx, dword [ebp - 0x438]
push eax
call fcn.100078f0
mov ecx, dword [ebp - 0x420]
push 2
call fcn.10021ff0
lea ecx, [ebp - 0xc0]
call fcn.10024260
mov ecx, dword [ebp - 0x214]
test ecx, ecx
je 0x10015ef0
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x10015ef0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x214]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x10015ef0
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x10015f28
or eax, 0xffffffff
lock xadd dword [esi], eax
jne 0x10015f28
mov eax, dword [esi + 4]
test eax, eax
je 0x10015f0d
push eax
call fcn.1002ba5e
add esp, 4
mov eax, dword [esi + 8]
test eax, eax
je 0x10015f1d
push eax
call fcn.1002ba5e
add esp, 4
push 0x14
push esi
call fcn.10025ac5
add esp, 8
mov eax, dword [ebp - 0x450]
or esi, 0xffffffff
test eax, eax
je 0x10015f8e
mov ecx, esi
lock xadd dword [eax], ecx
jne 0x10015f84
mov eax, dword [ebp - 0x450]
mov dword [ebp - 0x418], eax
test eax, eax
je 0x10015f84
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10015f63
push ecx
call fcn.1002ba5e
mov eax, dword [ebp - 0x418]
add esp, 4
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10015f79
push ecx
call fcn.1002ba5e
mov eax, dword [ebp - 0x418]
add esp, 4
push 0x14
push eax
call fcn.10025ac5
add esp, 8
mov dword [ebp - 0x450], 0
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10015fcc
mov eax, esi
lock xadd dword [edi], eax
jne 0x10015fcc
mov eax, dword [edi + 4]
test eax, eax
je 0x10015fb1
push eax
call fcn.1002ba5e
add esp, 4
mov eax, dword [edi + 8]
test eax, eax
je 0x10015fc1
push eax
call fcn.1002ba5e
add esp, 4
push 0x14
push edi
call fcn.10025ac5
add esp, 8
mov edi, dword [ebp - 0x44c]
cmp dword [ebp - 0x414], 0xffffffff
jne 0x10016228
mov ecx, dword [edi + 0x63c]
mov dword [ebp - 0x214], ecx
test ecx, ecx
je 0x10015fff
lock inc dword [ecx + 4]
mov ecx, dword [edi + 0x63c]
mov dword [ebp - 0x214], ecx
mov edx, dword [edi + 0x638]
mov dword [ebp - 0x490], edx
mov dword [ebp - 0x48c], ecx
mov eax, dword [ebp - 0x408]
or eax, 0x1000000
mov dword [ebp - 0x408], eax
test edx, edx
je 0x10016089
mov dword [ebp - 0x410], ecx
test ecx, ecx
je 0x10016048
lock inc dword [ecx + 4]
mov ecx, dword [edi + 0x63c]
mov edx, dword [edi + 0x638]
mov dword [ebp - 0x410], ecx
jmp 0x1001604e
mov ecx, dword [ebp - 0x410]
mov dword [ebp - 0x470], edx
mov dword [ebp - 0x46c], ecx
or eax, 0x2000000
mov dword [ebp - 4], 0x37
push 0x40000000
mov ecx, edx
mov dword [ebp - 0x408], eax
mov dword [ebp - 0x420], eax
call fcn.100222c0
mov byte [ebp - 0x401], 1
test al, al
jne 0x10016090
mov byte [ebp - 0x401], 0
mov ecx, dword [ebp - 0x408]
test ecx, 0x2000000
je 0x100160df
mov edx, dword [ebp - 0x410]
and ecx, 0xfdffffff
mov dword [ebp - 0x408], ecx
test edx, edx
je 0x100160df
mov eax, esi
lock xadd dword [edx + 4], eax
jne 0x100160df
mov eax, dword [edx]
mov ecx, edx
call dword [eax]
mov edx, dword [ebp - 0x410]
mov eax, esi
lock xadd dword [edx + 8], eax
jne 0x100160d9
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 4]
mov ecx, dword [ebp - 0x408]
mov dword [ebp - 4], 0xffffffff
test ecx, 0x1000000
je 0x10016125
and ecx, 0xfeffffff
mov dword [ebp - 0x408], ecx
mov ecx, dword [ebp - 0x214]
test ecx, ecx
je 0x10016125
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x10016125
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x214]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x10016125
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x401], 0
je 0x100165ad
mov ecx, dword [edi + 0x63c]
mov dword [ebp - 0x214], ecx
test ecx, ecx
je 0x10016152
lock inc dword [ecx + 4]
mov ecx, dword [edi + 0x63c]
mov dword [ebp - 0x214], ecx
mov eax, dword [edi + 0x638]
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x498], eax
mov dword [ebp - 0x494], ecx
push str.WebServerBase::_AcceptThread
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0x38
call fcn.100241e0
mov dword [ebp - 0x41c], eax
lea esi, [eax + 0x10]
mov byte [ebp - 4], 0x39
push 0x10051518
push esi
call fcn.100057d0
push str.WSAAccept_...__failure._Failure_ignored._WSAGetLastError:
push esi
call fcn.100057d0
add esp, 0x10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, esi
call fcn.10003570
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x430], eax
mov ecx, dword [ebp - 0x41c]
push eax
call fcn.100078f0
mov ecx, dword [ebp - 0x418]
call fcn.10022750
lea ecx, [ebp - 0xc0]
call fcn.10024260
mov dword [ebp - 4], 0xffffffff
or esi, 0xffffffff
mov ecx, dword [ebp - 0x214]
test ecx, ecx
je 0x100165ad
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x100165ad
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x214]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x100165ad
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100165ad
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0x200
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push dword [ebp - 0x424]
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.WS2_32.dll_WSAAddressToStringW]
movzx eax, word [ebp - 0x242]
push 0x14
mov dword [ebp - 0x438], eax
call fcn.10025ad3
mov dword [ebp - 0x430], eax
lea ecx, [ebp - 0x418]
xorps xmm0, xmm0
mov dword [ebp - 0x418], eax
add esp, 4
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax], 1
mov dword [eax + 4], 0
mov dword [eax + 8], 0
lea eax, [ebp - 0x210]
push eax
call fcn.10017860
mov dword [ebp - 4], 0x3a
mov esi, dword [ebp - 0x418]
test esi, esi
je 0x10016318
mov eax, dword [esi + 4]
test eax, eax
je 0x100162d6
cmp byte [eax], 0
jne 0x10016313
test esi, esi
je 0x10016318
mov eax, dword [esi + 8]
test eax, eax
je 0x10016318
cmp word [eax], 0
je 0x10016318
cmp dword [esi + 4], 0
jne 0x1001630c
cmp dword [esi + 0x10], 0x4b8
mov eax, dword [esi + 0xc]
jne 0x100162fe
shl eax, 2
jmp 0x10016300
add eax, eax
push eax
call fcn.1002c463
add esp, 4
mov dword [esi + 4], eax
mov ecx, esi
call fcn.1001e470
mov eax, dword [esi + 4]
jmp 0x1001631d
mov eax, 0x1005151b
push dword [ebp - 0x438]
mov ecx, edi
push eax
push dword [ebp - 0x414]
call fcn.100140d0
test eax, eax
mov dword [ebp - 4], 0xffffffff
sete dl
mov byte [ebp - 0x401], dl
test esi, esi
je 0x10016383
or ecx, 0xffffffff
mov eax, ecx
lock xadd dword [esi], eax
jne 0x10016383
mov eax, dword [esi + 4]
test eax, eax
je 0x10016362
push eax
call fcn.1002ba5e
add esp, 4
mov eax, dword [esi + 8]
test eax, eax
je 0x10016372
push eax
call fcn.1002ba5e
add esp, 4
push 0x14
push esi
call fcn.10025ac5
mov dl, byte [ebp - 0x401]
add esp, 8
test dl, dl
je 0x100165aa
mov eax, dword [edi + 0x63c]
mov dword [ebp - 0x414], eax
test eax, eax
je 0x100163ab
lock inc dword [eax + 4]
mov eax, dword [edi + 0x63c]
mov dword [ebp - 0x414], eax
mov ecx, dword [edi + 0x638]
mov dword [ebp - 0x4a0], ecx
mov dword [ebp - 0x49c], eax
mov esi, dword [ebp - 0x408]
or esi, 0x4000000
mov dword [ebp - 0x408], esi
test ecx, ecx
je 0x1001642f
mov edx, eax
mov dword [ebp - 0x40c], edx
test eax, eax
je 0x100163f5
lock inc dword [eax + 4]
mov edx, dword [edi + 0x63c]
mov ecx, dword [edi + 0x638]
mov dword [ebp - 0x40c], edx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x428], edx
mov dword [ebp - 4], 0x3c
or esi, 0x8000000
push 0x40000000
mov dword [ebp - 0x408], esi
mov dword [ebp - 0x420], esi
call fcn.100222c0
mov byte [ebp - 0x401], 1
test al, al
jne 0x10016436
mov byte [ebp - 0x401], 0
test esi, 0x8000000
je 0x1001647a
mov ecx, dword [ebp - 0x40c]
and esi, 0xf7ffffff
mov dword [ebp - 0x408], esi
or esi, 0xffffffff
test ecx, ecx
je 0x1001647d
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x1001647d
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x40c]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x1001647d
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1001647d
or esi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x408]
test eax, 0x4000000
je 0x100164c7
mov ecx, dword [ebp - 0x414]
and eax, 0xfbffffff
mov dword [ebp - 0x408], eax
test ecx, ecx
je 0x100164c7
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x100164c7
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x414]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x100164c7
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x401], 0
je 0x100165ad
mov ecx, dword [edi + 0x63c]
mov dword [ebp - 0x414], ecx
test ecx, ecx
je 0x100164f4
lock inc dword [ecx + 4]
mov ecx, dword [edi + 0x63c]
mov dword [ebp - 0x414], ecx
mov eax, dword [edi + 0x638]
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], ecx
push str.WebServerBase::_AcceptThread
lea ecx, [ebp - 0x550]
mov dword [ebp - 4], 0x3d
call fcn.100241e0
mov dword [ebp - 0x418], eax
lea esi, [eax + 0x10]
mov byte [ebp - 4], 0x3e
push 0x10051518
push esi
call fcn.100057d0
push str.AddClient_...__failure._Failure_ignored.
push esi
call fcn.100057d0
sub esp, 8
mov eax, esp
mov dword [ebp - 0x430], eax
mov ecx, dword [ebp - 0x418]
push eax
call fcn.100078f0
mov ecx, dword [ebp - 0x438]
call fcn.10022750
lea ecx, [ebp - 0x550]
call fcn.10024260
mov dword [ebp - 4], 0xffffffff
or esi, 0xffffffff
mov ecx, dword [ebp - 0x414]
test ecx, ecx
je 0x100165ad
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x100165ad
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x414]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x100165ad
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100165ad
or esi, 0xffffffff
push 0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x460]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0xffffffff
jne 0x10015840
mov ecx, dword [edi + 0x63c]
mov dword [ebp - 0x414], ecx
test ecx, ecx
je 0x100165eb
lock inc dword [ecx + 4]
mov ecx, dword [edi + 0x63c]
mov dword [ebp - 0x414], ecx
mov edx, dword [edi + 0x638]
mov dword [ebp - 0x440], edx
mov dword [ebp - 0x43c], ecx
mov eax, dword [ebp - 0x408]
or eax, 0x10000
mov dword [ebp - 0x408], eax
test edx, edx
je 0x10016838
mov edx, ecx
mov dword [ebp - 0x40c], edx
test ecx, ecx
je 0x10016632
lock inc dword [ecx + 4]
mov edx, dword [edi + 0x63c]
mov dword [ebp - 0x40c], edx
mov ecx, dword [edi + 0x638]
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x428], edx
or eax, 0x20000
mov dword [ebp - 4], 0x22
push closesocket
mov dword [ebp - 0x408], eax
mov dword [ebp - 0x420], eax
call fcn.100222c0
test al, al
je 0x10016844
mov byte [ebp - 0x401], 1
jmp 0x1001684b
mov ecx, dword [edi + 0x63c]
mov dword [ebp - 0x414], ecx
test ecx, ecx
je 0x1001669a
lock inc dword [ecx + 4]
mov ecx, dword [edi + 0x63c]
mov dword [ebp - 0x414], ecx
mov edx, dword [edi + 0x638]
mov dword [ebp - 0x440], edx
mov dword [ebp - 0x43c], ecx
mov eax, dword [ebp - 0x408]
or eax, 0x40000
mov dword [ebp - 0x408], eax
test edx, edx
je 0x1001671e
mov edx, ecx
mov dword [ebp - 0x40c], edx
test ecx, ecx
je 0x100166dd
lock inc dword [ecx + 4]
mov edx, dword [edi + 0x63c]
mov dword [ebp - 0x40c], edx
mov ecx, dword [edi + 0x638]
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x428], edx
or eax, 0x80000
mov dword [ebp - 4], 0x26
push closesocket
mov dword [ebp - 0x408], eax
mov dword [ebp - 0x420], eax
call fcn.100222c0
test al, al
je 0x1001672a
mov byte [ebp - 0x401], 1
jmp 0x10016731
mov edx, dword [ebp - 0x428]
mov dword [ebp - 0x40c], edx
mov byte [ebp - 0x401], 0
mov ecx, dword [ebp - 0x408]
test ecx, 0x80000
je 0x10016780
mov edx, dword [ebp - 0x40c]
and ecx, 0xfff7ffff
mov dword [ebp - 0x408], ecx
test edx, edx
je 0x10016780
mov eax, esi
lock xadd dword [edx + 4], eax
jne 0x10016780
mov eax, dword [edx]
mov ecx, edx
call dword [eax]
mov edx, dword [ebp - 0x40c]
mov eax, esi
lock xadd dword [edx + 8], eax
jne 0x1001677a
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 4]
mov ecx, dword [ebp - 0x408]
mov dword [ebp - 4], 0xffffffff
test ecx, 0x40000
je 0x100167ba
mov ecx, dword [ebp - 0x414]
test ecx, ecx
je 0x100167ba
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x100167ba
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x414]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x100167ba
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x401], 0
je 0x100169be
mov ecx, dword [edi + 0x63c]
mov dword [ebp - 0x414], ecx
test ecx, ecx
je 0x100167e7
lock inc dword [ecx + 4]
mov ecx, dword [edi + 0x63c]
mov dword [ebp - 0x414], ecx
mov eax, dword [edi + 0x638]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], ecx
push str.WebServerBase::_AcceptThread
lea ecx, [ebp - 0x550]
mov dword [ebp - 4], 0x27
call fcn.100241e0
mov dword [ebp - 0x41c], eax
lea esi, [eax + 0x10]
mov byte [ebp - 4], 0x28
push 0x10051518
push esi
call fcn.100057d0
push str.WSAEnumNetworkEvents_...__failure._WSAGetLastError:
jmp 0x1001694d
mov edx, dword [ebp - 0x428]
mov dword [ebp - 0x40c], edx
mov byte [ebp - 0x401], 0
mov ecx, dword [ebp - 0x408]
test ecx, 0x20000
je 0x1001689a
mov edx, dword [ebp - 0x40c]
and ecx, 0xfffdffff
mov dword [ebp - 0x408], ecx
test edx, edx
je 0x1001689a
mov eax, esi
lock xadd dword [edx + 4], eax
jne 0x1001689a
mov eax, dword [edx]
mov ecx, edx
call dword [eax]
mov edx, dword [ebp - 0x40c]
mov eax, esi
lock xadd dword [edx + 8], eax
jne 0x10016894
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 4]
mov ecx, dword [ebp - 0x408]
mov dword [ebp - 4], 0xffffffff
test ecx, 0x10000
je 0x100168d4
mov ecx, dword [ebp - 0x414]
test ecx, ecx
je 0x100168d4
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x100168d4
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x414]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x100168d4
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x401], 0
je 0x100169be
mov ecx, dword [edi + 0x63c]
mov dword [ebp - 0x414], ecx
test ecx, ecx
je 0x10016901
lock inc dword [ecx + 4]
mov ecx, dword [edi + 0x63c]
mov dword [ebp - 0x414], ecx
mov eax, dword [edi + 0x638]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], ecx
push str.WebServerBase::_AcceptThread
lea ecx, [ebp - 0x550]
mov dword [ebp - 4], 0x23
call fcn.100241e0
mov dword [ebp - 0x41c], eax
lea esi, [eax + 0x10]
mov byte [ebp - 4], 0x24
push 0x10051518
push esi
call fcn.100057d0
push str.WSAWaitForMultipleObjects_...__failure._WSAGetLastError:
push esi
call fcn.100057d0
add esp, 0x10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, esi
call fcn.10003570
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x430], eax
mov ecx, dword [ebp - 0x41c]
push eax
call fcn.100078f0
mov ecx, dword [ebp - 0x424]
call fcn.10021b20
lea ecx, [ebp - 0x550]
call fcn.10024260
mov ecx, dword [ebp - 0x414]
test ecx, ecx
je 0x100169be
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x100169be
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x414]
lock xadd dword [ecx + 8], esi
dec esi
jne 0x100169be
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi + 0x14]
mov esi, dword [sym.imp.WS2_32.dll_WSACloseEvent]
test eax, eax
je 0x100169ce
push eax
call esi
mov eax, dword [edi + 0x18]
test eax, eax
je 0x100169d8
push eax
call esi
mov eax, dword [edi + 0x10]
test eax, eax
je 0x100169e6
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x10016c32
mov eax, dword [edi + 0x63c]
mov dword [ebp - 0x414], eax
test eax, eax
je 0x10016a11
lock inc dword [eax + 4]
mov eax, dword [edi + 0x63c]
mov dword [ebp - 0x414], eax
mov edx, dword [edi + 0x638]
mov dword [ebp - 0x440], edx
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x410], 4
test edx, edx
je 0x10016a90
mov ecx, eax
mov dword [ebp - 0x40c], ecx
test eax, eax
je 0x10016a53
lock inc dword [eax + 4]
mov ecx, dword [edi + 0x63c]
mov edx, dword [edi + 0x638]
mov dword [ebp - 0x40c], ecx
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x428], ecx
mov eax, 0xc
mov dword [ebp - 4], 5
push closesocket
mov ecx, edx
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x420], eax
call fcn.100222c0
test al, al
je 0x10016a9c
mov byte [ebp - 0x401], 1
jmp 0x10016aa3
mov ecx, dword [ebp - 0x428]
mov dword [ebp - 0x40c], ecx
mov byte [ebp - 0x401], 0
mov edx, dword [ebp - 0x410]
or esi, 0xffffffff
test dl, 8
je 0x10016aeb
mov ecx, dword [ebp - 0x40c]
and edx, 0xfffffff7
mov dword [ebp - 0x410], edx
test ecx, ecx
je 0x10016aeb
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x10016aeb
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x40c]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x10016ae5
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x410]
mov dword [ebp - 4], 0xffffffff
test dl, 4
je 0x10016b22
mov ecx, dword [ebp - 0x414]
test ecx, ecx
je 0x10016b22
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x10016b22
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x414]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x10016b22
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x401], 0
je 0x10016bfb
mov ecx, dword [edi + 0x63c]
mov dword [ebp - 0x414], ecx
test ecx, ecx
je 0x10016b4f
lock inc dword [ecx + 4]
mov ecx, dword [edi + 0x63c]
mov dword [ebp - 0x414], ecx
mov eax, dword [edi + 0x638]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], ecx
push str.WebServerBase::_AcceptThread
lea ecx, [ebp - 0x550]
mov dword [ebp - 4], 6
call fcn.100241e0
mov dword [ebp - 0x41c], eax
lea esi, [eax + 0x10]
mov byte [ebp - 4], 7
push 0x10051518
push esi
call fcn.100057d0
push str.Requested_Socket_version_does_not_exist
push esi
call fcn.100057d0
sub esp, 8
mov eax, esp
mov dword [ebp - 0x430], eax
mov ecx, dword [ebp - 0x41c]
push eax
call fcn.100078f0
mov ecx, dword [ebp - 0x424]
call fcn.10021b20
lea ecx, [ebp - 0x550]
call fcn.10024260
mov ecx, dword [ebp - 0x414]
test ecx, ecx
je 0x10016bfb
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x10016bfb
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x414]
lock xadd dword [ecx + 8], esi
dec esi
jne 0x10016bfb
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi + 0x14]
mov esi, dword [sym.imp.WS2_32.dll_WSACloseEvent]
test eax, eax
je 0x10016c0b
push eax
call esi
mov eax, dword [edi + 0x18]
test eax, eax
je 0x10016c15
push eax
call esi
mov eax, dword [edi + 0x10]
test eax, eax
je 0x10016c23
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 0x1234
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10025a94
mov esp, ebp
pop ebp
ret