Function at 0x445060
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c1d6e
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x639490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x6c]
call fcn.00410520
mov dword [ebp - 4], 0
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0xffffffff
jne 0x445169
mov byte [ebp - 0x6c], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0xf0]
push ecx
call fcn.00408800
add esp, 8
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x88], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x88]
push eax
push str.create_udp_socket_error:
lea ecx, [ebp - 0xa8]
push ecx
call fcn.00408be0
add esp, 0xc
mov dword [ebp - 0x84], eax
mov edx, dword [ebp - 0x84]
push edx
lea ecx, [ebp - 0x68]
call fcn.0040f660
lea ecx, [ebp - 0xa8]
call fcn.00406730
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xf0]
call fcn.00406730
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041b560
mov ecx, dword [ebp - 0x70]
or ecx, 1
mov dword [ebp - 0x70], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00409aa0
mov eax, dword [ebp + 8]
jmp 0x4452db
mov dword [ebp - 0x14], 0x40000
push 4
lea edx, [ebp - 0x14]
push edx
push 0x1002
push 0xffff
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp - 0x14]
push ecx
push 0x1001
push 0xffff
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, 2
mov word [ebp - 0x24], ax
mov ecx, dword [ebp - 0x78]
movzx edx, word [ecx + 0xa4]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
mov ecx, dword [ebp - 0x78]
add ecx, 0x8c
call fcn.004067b0
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x20], eax
push 0x10
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x44529a
mov byte [ebp - 0x6c], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
push edx
lea eax, [ebp - 0xc0]
push eax
call fcn.00408800
add esp, 8
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x8c], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x8c]
push edx
push str.bind_error:
lea eax, [ebp - 0xd8]
push eax
call fcn.00408be0
add esp, 0xc
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x68]
call fcn.0040f660
lea ecx, [ebp - 0xd8]
call fcn.00406730
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc0]
call fcn.00406730
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041b560
mov ecx, dword [ebp - 0x70]
or ecx, 1
mov dword [ebp - 0x70], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00409aa0
mov eax, dword [ebp + 8]
jmp 0x4452db
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x74]
mov dword [edx + 0x28], eax
mov byte [ebp - 0x6c], 1
push 0x60d0eb
lea ecx, [ebp - 0x68]
call fcn.00408bc0
lea ecx, [ebp - 0x6c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041b560
mov edx, dword [ebp - 0x70]
or edx, 1
mov dword [ebp - 0x70], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00409aa0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00581c71
mov esp, ebp
pop ebp
ret 4