Function at 0x454680
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x15c
mov dword [ebp - 0x128], 0
mov dword [esp], str.127.0.0.1
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
call sub.ws2_32.dll_inet_addr
lea edx, [ebp - 0x138]
mov dword [ebp - 0x138], 0x10
mov dword [ebp - 0x124], eax
mov eax, 2
sub esp, 4
mov word [ebp - 0x128], ax
lea eax, [ebp - 0x128]
call fcn.00451fa0
mov edx, dword [ebp - 0x138]
xor ecx, ecx
mov ebx, eax
lea eax, [ebp - 0x128]
call fcn.00422de0
cmp eax, 0xffffffff
je 0x454f5e
mov dword [esp + 0x10], 0
mov esi, eax
mov dword [esp + 0xc], 0x420760
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.ws2_32.dll_WSAAccept
sub esp, 0x14
mov edi, eax
mov dword [esp + 4], 0xe2d
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov edx, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x454fa0
mov dword [esp + 8], edx
mov dword [esp + 4], str.Failed_to_defer_connection___d_n
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call sub.ws2_32.dll_accept
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], 0xe30
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], str.Failed_to_accept_deferred_connection__error__d_n
mov dword [esp + 8], eax
xor eax, eax
cmp edi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventA]
mov dword [ebp - 0x130], ebx
sub esp, 0x10
mov dword [0x47846c], eax
lea eax, [ebp - 0x134]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x130]
mov dword [ebp - 0x12c], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x420bc0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov edx, dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov dword [ebp - 0x13c], eax
mov eax, dword [0x47846c]
sub esp, 0x18
mov dword [ebp - 0x140], edx
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call edx
sub esp, 8
mov dword [esp], 0xc8
call dword [sym.imp.kernel32.dll_Sleep]
sub esp, 4
mov dword [esp], ebx
call sub.ws2_32.dll_closesocket
sub esp, 4
mov ebx, eax
mov dword [esp + 4], 0xe3b
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], str.failed_to_close_socket__error__u_n
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
sete al
mov dword [esp], eax
call fcn.00465cf0
mov eax, dword [ebp - 0x13c]
mov edx, dword [ebp - 0x140]
mov dword [esp + 4], 0x3e8
mov dword [esp], eax
call edx
sub esp, 8
mov dword [esp + 4], 0xe3e
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x12c]
mov dword [esp + 4], str.closesocket_did_not_wake_up_accept_n
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], edi
call sub.ws2_32.dll_closesocket
sub esp, 4
mov dword [esp], esi
call sub.ws2_32.dll_closesocket
lea edx, [ebp - 0x138]
lea eax, [ebp - 0x128]
mov dword [ebp - 0x138], 0x10
sub esp, 4
call fcn.00451fa0
mov edx, dword [ebp - 0x138]
xor ecx, ecx
mov ebx, eax
lea eax, [ebp - 0x128]
call fcn.00422de0
mov esi, eax
cmp eax, 0xffffffff
je 0x454f48
lea eax, [ebp - 0x138]
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x118]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [ebp - 0x138], 0
call sub.ws2_32.dll_WSAAccept
sub esp, 0x14
mov edi, eax
mov dword [esp + 4], 0xe4c
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
cmp edi, 0xffffffff
je 0x454fc1
mov dword [esp + 8], eax
mov dword [esp + 4], str.got__d_n
mov dword [esp], 0
call fcn.00465cf0
mov dword [esp + 4], 0xe4d
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x138]
mov dword [esp + 4], str.got__d_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], esi
call sub.ws2_32.dll_closesocket
mov edx, 0x10
xor ecx, ecx
lea eax, [ebp - 0x128]
mov dword [ebp - 0x138], 0x10
sub esp, 4
call fcn.00422de0
mov edx, eax
cmp eax, 0xffffffff
je 0x454f90
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [ebp - 0x140], edx
call sub.ws2_32.dll_WSAAccept
sub esp, 0x14
mov esi, eax
mov dword [esp + 4], 0xe56
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], str.Failed_to_accept_connection___d_n
mov dword [esp + 8], eax
xor eax, eax
cmp esi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], esi
call sub.ws2_32.dll_closesocket
mov edx, dword [ebp - 0x140]
sub esp, 4
mov dword [esp], edx
call sub.ws2_32.dll_closesocket
xor ecx, ecx
mov edx, 0x10
lea eax, [ebp - 0x128]
mov dword [ebp - 0x138], 0x10
sub esp, 4
call fcn.00422de0
cmp eax, 0xffffffff
mov dword [ebp - 0x140], eax
je 0x454f48
xor eax, eax
mov ecx, 0x20
lea edi, [ebp - 0x118]
mov dword [ebp - 0x138], pe_nt_image_headers32
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x138]
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x118]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.ws2_32.dll_WSAAccept
sub esp, 0x14
mov esi, eax
mov dword [esp + 4], 0xe62
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], str.Failed_to_accept_connection___d_n
mov dword [esp + 8], eax
xor eax, eax
cmp esi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0xe63
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
mov dword [esp + 4], str.unexpected_length_n
cmp dword [ebp - 0x138], 0x80
setne al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0xe64
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
movsx eax, word [ebp - 0x118]
mov dword [esp + 4], str.family_not_set_n
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], esi
call sub.ws2_32.dll_closesocket
mov edx, dword [ebp - 0x140]
sub esp, 4
mov dword [esp], edx
call sub.ws2_32.dll_closesocket
xor ecx, ecx
mov edx, 0x10
lea eax, [ebp - 0x128]
mov dword [ebp - 0x138], 0x10
sub esp, 4
call fcn.00422de0
mov esi, eax
cmp eax, 0xffffffff
je 0x454f48
lea eax, [ebp - 0x138]
mov dword [esp], ebx
mov dword [esp + 8], eax
lea eax, [ebp - 0x118]
mov dword [esp + 4], eax
mov dword [ebp - 0x138], 0
call sub.ws2_32.dll_accept
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], 0xe6f
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov edx, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x455060
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.got__d_n
call fcn.00465cf0
mov dword [esp + 4], 0xe70
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x138]
mov dword [esp + 4], str.got__d_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], esi
call sub.ws2_32.dll_closesocket
xor ecx, ecx
mov edx, 0x10
lea eax, [ebp - 0x128]
mov dword [ebp - 0x138], 0x10
sub esp, 4
call fcn.00422de0
mov edi, eax
cmp eax, 0xffffffff
je 0x454f48
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.ws2_32.dll_accept
sub esp, 0xc
mov esi, eax
mov dword [esp + 4], 0xe79
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], str.Failed_to_accept_connection___d_n
mov dword [esp + 8], eax
xor eax, eax
cmp esi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], esi
call sub.ws2_32.dll_closesocket
sub esp, 4
mov dword [esp], edi
call sub.ws2_32.dll_closesocket
xor ecx, ecx
mov edx, 0x10
lea eax, [ebp - 0x128]
mov dword [ebp - 0x138], 0x10
sub esp, 4
call fcn.00422de0
cmp eax, 0xffffffff
mov dword [ebp - 0x140], eax
je 0x454f48
xor eax, eax
mov ecx, 0x20
lea edi, [ebp - 0x118]
mov dword [ebp - 0x138], pe_nt_image_headers32
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x138]
mov dword [esp], ebx
lea edi, [ebp - 0x128]
mov dword [esp + 8], ecx
lea ecx, [ebp - 0x118]
mov dword [esp + 4], ecx
call sub.ws2_32.dll_accept
sub esp, 0xc
mov esi, eax
mov dword [esp + 4], 0xe85
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], str.Failed_to_accept_connection___d_n
mov dword [esp + 8], eax
xor eax, eax
cmp esi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0xe86
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
xor eax, eax
mov dword [esp + 4], str.unexpected_length_n
cmp dword [ebp - 0x138], 0x80
setne al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0xe87
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
movsx eax, word [ebp - 0x118]
mov dword [esp + 4], str.family_not_set_n
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], esi
call sub.ws2_32.dll_closesocket
mov edx, dword [ebp - 0x140]
sub esp, 4
mov dword [esp], edx
call sub.ws2_32.dll_closesocket
xor ecx, ecx
mov edx, 0x10
mov eax, edi
mov dword [ebp - 0x138], 0x10
sub esp, 4
call fcn.00422de0
mov esi, eax
cmp eax, 0xffffffff
je 0x454f48
lea edx, [ebp - 0x98]
xor eax, eax
mov ecx, 0x20
lea edi, [ebp - 0x118]
rep stosd dword es:[edi], eax
mov edi, edx
mov ecx, 0x20
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x118]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.ws2_32.dll_accept
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], 0xe93
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], str.Failed_to_accept_connection___d_n
mov dword [esp + 8], eax
xor eax, eax
cmp edi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0xe94
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
lea edx, [ebp - 0x98]
lea eax, [ebp - 0x118]
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
mov dword [esp + 4], str.structure_is_different_n
test eax, eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
cmp edi, 0xffffffff
je 0x454f3d
mov dword [esp], edi
call sub.ws2_32.dll_closesocket
sub esp, 4
mov dword [esp], esi
call sub.ws2_32.dll_closesocket
sub esp, 4
mov eax, dword [ebp - 0x13c]
test eax, eax
je 0x454f5e
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov eax, dword [0x47846c]
cmp eax, 0xffffffff
je 0x454f74
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
cmp ebx, 0xffffffff
je 0x454f84
mov dword [esp], ebx
call sub.ws2_32.dll_closesocket
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
call sub.ws2_32.dll_closesocket
sub esp, 4
jmp 0x454f48
mov dword [ebp - 0x13c], edx
call sub.ws2_32.dll_WSAGetLastError
mov edx, dword [ebp - 0x13c]
cmp eax, 0x2afa
sete al
movzx eax, al
jmp 0x454763
mov dword [ebp - 0x140], eax
call sub.ws2_32.dll_WSAGetLastError
mov edx, dword [ebp - 0x140]
mov dword [esp + 4], str.got__d_n
cmp eax, 0x271e
sete al
mov dword [esp + 8], edx
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp + 4], 0xe4d
mov dword [esp], str..._wine_dlls_ws2_32_tests_sock.c
call fcn.00465a80
mov eax, dword [ebp - 0x138]
mov dword [esp + 4], str.got__d_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00465cf0
mov dword [esp], esi
call sub.ws2_32.dll_closesocket
mov edx, 0x10
xor ecx, ecx
lea eax, [ebp - 0x128]
mov dword [ebp - 0x138], 0x10
sub esp, 4
call fcn.00422de0
mov edx, eax
cmp eax, 0xffffffff
jne 0x454a2e
jmp 0x454f48
mov dword [ebp - 0x140], edx
call sub.ws2_32.dll_WSAGetLastError
mov edx, dword [ebp - 0x140]
cmp eax, 0x271e
sete al
movzx eax, al
jmp 0x454c4e