Function at 0x1005a6e0
Capabilities:
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e379b
mov eax, dword fs:[0]
push eax
sub esp, 0x6b0
mov eax, dword [0x1013dd8c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6ac], ecx
mov ecx, dword [ebp + 8]
call fcn.10039400
movzx eax, al
test eax, eax
jne 0x1005a72f
mov ecx, dword [ebp + 8]
call fcn.10016df0
cmp eax, 0x200
jbe 0x1005a736
xor al, al
jmp 0x1005abaf
lea ecx, [ebp - 0x634]
call fcn.100125c0
mov dword [ebp - 4], 0
mov byte [ebp - 0x410], 0
push 0x3ff
push 0
lea ecx, [ebp - 0x40f]
push ecx
call fcn.100a57f0
add esp, 0xc
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x690], eax
cmp dword [ebp - 0x690], 0xffffffff
jne 0x1005a7a4
mov byte [ebp - 0x691], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x634]
call fcn.10012470
mov al, byte [ebp - 0x691]
jmp 0x1005abaf
mov dword [ebp - 0x6a8], 1
push 4
lea edx, [ebp - 0x6a8]
push edx
push 0x20
push 0xffff
mov eax, dword [ebp - 0x690]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0x6a8], 0x7d0
push 4
lea ecx, [ebp - 0x6a8]
push ecx
push 0x1006
push 0xffff
mov edx, dword [ebp - 0x690]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x410]
mov dword [ebp - 0x6a4], eax
mov ecx, dword [ebp - 0x6a4]
mov dword [ecx], 0x4c444d53
mov ecx, dword [ebp + 8]
call fcn.10016df0
mov edx, dword [ebp - 0x6a4]
mov word [edx + 4], ax
mov ecx, dword [ebp + 8]
call fcn.10016df0
push eax
mov ecx, dword [ebp + 8]
call fcn.10012400
push eax
mov eax, dword [ebp - 0x6a4]
add eax, 6
push eax
call fcn.100a5270
add esp, 0xc
push 1
mov ecx, dword [ebp + 8]
call fcn.10016df0
add eax, 7
push eax
mov ecx, dword [ebp - 0x6a4]
push ecx
lea edx, [ebp - 0x64c]
push edx
mov ecx, dword [ebp - 0x6ac]
call fcn.100597e0
mov dword [ebp - 0x6b0], eax
mov eax, dword [ebp - 0x6b0]
push eax
lea ecx, [ebp - 0x634]
call fcn.1001a8d0
lea ecx, [ebp - 0x64c]
call fcn.10012470
xor ecx, ecx
mov word [ebp - 0x68c], cx
xor edx, edx
mov dword [ebp - 0x68a], edx
mov dword [ebp - 0x686], edx
mov dword [ebp - 0x682], edx
mov word [ebp - 0x67e], dx
mov eax, 2
mov word [ebp - 0x68c], ax
mov ecx, dword [ebp - 0x6ac]
movzx edx, word [ecx + 0x38]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x68a], ax
push str.255.255.255.255
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x688], eax
push 0x10
lea eax, [ebp - 0x68c]
push eax
push 0
lea ecx, [ebp - 0x634]
call fcn.10016df0
push eax
lea ecx, [ebp - 0x634]
call fcn.10012400
push eax
mov ecx, dword [ebp - 0x690]
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebp - 0x69c], eax
cmp dword [ebp - 0x69c], 0
jg 0x1005a96a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.broadcast_request_fail__err0x_08x
call fcn.1005b550
add esp, 8
mov edx, dword [ebp - 0x690]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov byte [ebp - 0x692], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x634]
call fcn.10012470
mov al, byte [ebp - 0x692]
jmp 0x1005abaf
mov dword [ebp - 0x6b4], 0x10
lea eax, [ebp - 0x6b4]
push eax
lea ecx, [ebp - 0x68c]
push ecx
push 0
push 0x400
lea edx, [ebp - 0x410]
push edx
mov eax, dword [ebp - 0x690]
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp - 0x69c], eax
cmp dword [ebp - 0x69c], 0
jg 0x1005a9f1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.not_response_from_LAN__err__0x_08x
call fcn.1005b550
add esp, 8
mov ecx, dword [ebp - 0x690]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov byte [ebp - 0x693], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x634]
call fcn.10012470
mov al, byte [ebp - 0x693]
jmp 0x1005abaf
push 0
mov edx, dword [ebp - 0x69c]
push edx
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x664]
push ecx
mov ecx, dword [ebp - 0x6ac]
call fcn.100597e0
mov dword [ebp - 0x6b8], eax
mov edx, dword [ebp - 0x6b8]
push edx
lea ecx, [ebp - 0x634]
call fcn.1001a8d0
lea ecx, [ebp - 0x664]
call fcn.10012470
lea ecx, [ebp - 0x634]
call fcn.10016df0
cmp eax, 9
jae 0x1005aa84
push str.unmatched_size
call fcn.1005b550
add esp, 4
mov eax, dword [ebp - 0x690]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov byte [ebp - 0x694], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x634]
call fcn.10012470
mov al, byte [ebp - 0x694]
jmp 0x1005abaf
lea ecx, [ebp - 0x634]
call fcn.10012400
mov dword [ebp - 0x6a0], eax
mov ecx, dword [ebp - 0x6a0]
cmp dword [ecx], 0x4c444d53
jne 0x1005aabf
lea ecx, [ebp - 0x634]
call fcn.10016df0
mov edx, dword [ebp - 0x6a0]
movzx ecx, word [edx + 6]
add ecx, 9
cmp eax, ecx
je 0x1005aafd
push str.unmatched_magic_or_packet
call fcn.1005b550
add esp, 4
mov edx, dword [ebp - 0x690]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov byte [ebp - 0x695], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x634]
call fcn.10012470
mov al, byte [ebp - 0x695]
jmp 0x1005abaf
mov eax, dword [ebp - 0x6a0]
add eax, 8
push eax
mov ecx, dword [ebp - 0x6a0]
movzx edx, word [ecx + 6]
push edx
mov eax, dword [ebp - 0x6a0]
movzx ecx, word [eax + 4]
push ecx
mov edx, dword [ebp - 0x688]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.http:___s:_d_.s
push 0x209
lea eax, [ebp - 0x61c]
push eax
call fcn.1004db60
add esp, 0x1c
mov dword [ebp - 0x69c], eax
mov ecx, dword [ebp - 0x69c]
push ecx
lea edx, [ebp - 0x61c]
push edx
lea ecx, [ebp - 0x67c]
call fcn.10053370
mov dword [ebp - 0x6bc], eax
mov eax, dword [ebp - 0x6bc]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.1001a8d0
lea ecx, [ebp - 0x67c]
call fcn.10012470
mov ecx, dword [ebp - 0x690]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov byte [ebp - 0x696], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x634]
call fcn.10012470
mov al, byte [ebp - 0x696]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10065961
mov esp, ebp
pop ebp
ret 8