Function at 0x404500
Capabilities:
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4443c1
mov eax, dword fs:[0]
push eax
mov eax, 0x1270
call fcn.00431d30
mov eax, dword [0x45563c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x11d8], ecx
mov byte [ebp - 0x11d1], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
mov edx, dword [ebp + 0xc]
sub edx, 0x14
cmp edx, 0x500
jbe 0x404579
mov eax, dword [ebp + 0xc]
push eax
push 0x44e388
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 0xc
jmp 0x404ba8
mov ecx, dword [ebp - 0x11d8]
add ecx, 0x18
call fcn.004064c0
movzx ecx, al
test ecx, ecx
je 0x4045a6
push 0x44e3b8
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 8
jmp 0x404ba8
lea edx, [ebp - 0x11d0]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x11f8], eax
cmp dword [ebp - 0x11f8], 0
je 0x4045e6
mov eax, dword [ebp - 0x11f8]
push eax
push str._SocketUdp_:WSAStartup_failed_with_error:__d_n
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 0xc
jmp 0x404ba8
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x11dc], eax
cmp dword [ebp - 0x11dc], 0xffffffff
jne 0x40462f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x11d8]
add ecx, 0x18
call fcn.00406480
push eax
push str._SocketUdp_:Socket
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 0x10
jmp 0x404ba2
mov byte [ebp - 0x11f1], 0
mov dword [ebp - 0x102c], 1
push 4
mov ecx, dword [ebp - 0x11d8]
add ecx, 0x890
push ecx
push 0x1005
push 0xffff
mov edx, dword [ebp - 0x11dc]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
mov eax, dword [ebp - 0x11d8]
add eax, 0x890
push eax
push 0x1006
push 0xffff
mov ecx, dword [ebp - 0x11dc]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea edx, [ebp - 0x102c]
push edx
push 4
push 0xffff
mov eax, dword [ebp - 0x11dc]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, 2
mov word [ebp - 0x1040], cx
mov edx, dword [ebp - 0x11d8]
movzx eax, word [edx + 0x898]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x103e], ax
mov ecx, dword [ebp - 0x11d8]
add ecx, 0x18
call fcn.00406480
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x103c], eax
mov dword [ebp - 0x11e4], 0
push 0
call fcn.00401000
add esp, 4
mov dword [ebp - 0x121c], eax
mov dword [ebp - 0x1218], edx
cmp dword [ebp + 0xc], 0
jle 0x40485b
push 0x10
lea ecx, [ebp - 0x1040]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x11dc]
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebp - 0x11e4], eax
cmp dword [ebp - 0x11e4], 0xffffffff
jne 0x4047a8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea edx, [ebp - 0x124c]
push edx
call fcn.004033e0
add esp, 8
mov dword [ebp - 0x1200], eax
mov eax, dword [ebp - 0x1200]
mov dword [ebp - 0x1208], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1208]
call fcn.00406480
push eax
push 0x44e440
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x124c]
call fcn.004063e0
jmp 0x404b1f
push 0
call fcn.00401000
add esp, 4
mov dword [ebp - 0x1210], eax
mov dword [ebp - 0x120c], edx
mov ecx, dword [ebp - 0x1210]
sub ecx, dword [ebp - 0x121c]
mov esi, dword [ebp - 0x120c]
sbb esi, dword [ebp - 0x1218]
mov edx, dword [ebp - 0x11d8]
mov eax, dword [edx + 0x894]
cdq
mov dword [ebp - 0x122c], ecx
mov dword [ebp - 0x1228], esi
mov dword [ebp - 0x1224], eax
mov dword [ebp - 0x1220], edx
mov eax, dword [ebp - 0x1228]
cmp eax, dword [ebp - 0x1220]
jl 0x40483e
jg 0x404819
mov ecx, dword [ebp - 0x122c]
cmp ecx, dword [ebp - 0x1224]
jbe 0x40483e
mov edx, dword [ebp - 0x11d8]
mov eax, dword [edx + 0x894]
push eax
push str._SocketUdp_:sendto
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 0xc
jmp 0x404b1f
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0x11e4]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x11e4]
mov dword [ebp + 8], edx
jmp 0x40470a
mov eax, dword [ebp - 0x11e4]
push eax
push 0x44e484
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 0xc
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
je 0x404885
mov edx, dword [ebp + 0x14]
cmp dword [edx], 0
jne 0x40489d
push str._SocketUdp_:UDP
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 8
jmp 0x404b1f
mov dword [ebp - 0x11ec], 0
mov dword [ebp - 0x1030], 0x10
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x11f0], eax
push 0x1000
push 0
lea ecx, [ebp - 0x1010]
push ecx
call fcn.00417850
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x1028], edx
mov dword [ebp - 0x1024], edx
mov dword [ebp - 0x1020], edx
mov dword [ebp - 0x101c], edx
mov dword [ebp - 0x1018], edx
lea eax, [ebp - 0x1030]
push eax
lea ecx, [ebp - 0x1040]
push ecx
push 0
push 0x1000
lea edx, [ebp - 0x1010]
push edx
mov eax, dword [ebp - 0x11dc]
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp - 0x11ec], eax
cmp dword [ebp - 0x11ec], 0xffffffff
jne 0x404990
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [ebp - 0x1264]
push ecx
call fcn.004033e0
add esp, 8
mov dword [ebp - 0x11fc], eax
mov edx, dword [ebp - 0x11fc]
mov dword [ebp - 0x1234], edx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x1234]
call fcn.00406480
push eax
push 0x44e4e8
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1264]
call fcn.004063e0
jmp 0x404b1f
mov eax, dword [ebp - 0x11ec]
push eax
push 0x44e518
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 0xc
mov ecx, dword [ebp - 0x11f0]
mov edx, dword [ecx]
mov dword [ebp - 0x1028], edx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x1024], eax
mov edx, dword [ecx + 8]
mov dword [ebp - 0x1020], edx
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x101c], eax
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 0x1018], ecx
mov edx, dword [ebp - 0x11f0]
add edx, 0x14
mov dword [ebp - 0x11f0], edx
mov dword [ebp - 0x1014], 0
lea eax, [ebp - 0x1014]
push eax
lea ecx, [ebp - 0x1028]
push ecx
mov ecx, dword [ebp - 0x11d8]
call fcn.00404400
movzx edx, al
test edx, edx
jne 0x404a36
push 0x44e548
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 8
mov byte [ebp - 0x11d1], 0
jmp 0x404b1f
push 0x44e57c
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 8
mov eax, dword [ebp - 0x1014]
sub eax, 0x14
mov dword [ebp - 0x11e0], eax
mov dword [ebp - 0x11e8], 0
mov ecx, dword [ebp - 0x11e0]
push ecx
push 0x44e5a8
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 0xc
cmp dword [ebp - 0x11e0], 0
jbe 0x404ae1
mov edx, dword [ebp - 0x11e0]
push edx
push 1
call fcn.0041295c
add esp, 8
mov dword [ebp - 0x11e8], eax
cmp dword [ebp - 0x11e8], 0
jne 0x404aac
xor al, al
jmp 0x404bae
mov eax, dword [ebp - 0x11e0]
push eax
push 0
mov ecx, dword [ebp - 0x11e8]
push ecx
call fcn.00417850
add esp, 0xc
mov edx, dword [ebp - 0x11e0]
push edx
mov eax, dword [ebp - 0x11f0]
push eax
mov ecx, dword [ebp - 0x11e8]
push ecx
call fcn.00413e30
add esp, 0xc
mov byte [ebp - 0x11d1], 1
mov edx, dword [ebp - 0x11e0]
push edx
mov eax, dword [ebp - 0x11ec]
push eax
push str._SocketUdp_:
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 0x10
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x11e8]
mov dword [ecx], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x11e0]
mov dword [eax], ecx
mov edx, dword [ebp - 0x11dc]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0x1230], eax
cmp dword [ebp - 0x1230], 0xffffffff
jne 0x404ba2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0x127c]
push eax
call fcn.004033e0
add esp, 8
mov dword [ebp - 0x1204], eax
mov ecx, dword [ebp - 0x1204]
mov dword [ebp - 0x1214], ecx
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x1214]
call fcn.00406480
push eax
push str.closesocket_failed_with_error__d_n
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x127c]
call fcn.004063e0
mov byte [ebp - 0x11d1], 0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov al, byte [ebp - 0x11d1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411455
mov esp, ebp
pop ebp
ret 0x14