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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x41f4
call fcn.0056b140
mov eax, dword [0x61b000]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x41dc], ecx
lea eax, [ebp - 0x1c0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x48127f
push 0x5e2a60
push 0x5e2a88
call fcn.0040c230
add esp, 8
mov eax, 1
jmp 0x481631
mov dword [ebp - 0x30], 0x10
mov dword [ebp - 0x41c4], 0xffffffff
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x41c4], eax
cmp dword [ebp - 0x41c4], 0xffffffff
jne 0x4812d4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x5e2ab0
push 0x5e2af4
call fcn.0040c230
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x481631
push 0x4000
push 0
lea ecx, [ebp - 0x41c0]
push ecx
call fcn.00568440
add esp, 0xc
push 0x5e2b18
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 0x24], eax
mov edx, 2
mov word [ebp - 0x28], dx
push 0x1770
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x26], ax
mov byte [ebp - 0x29], 1
push 1
lea eax, [ebp - 0x29]
push eax
push 4
push 0xffff
mov ecx, dword [ebp - 0x41c4]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x10
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x41c4]
push eax
call dword [sym.imp.WS2_32.dll_bind]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x481380
push 0x5e2b24
push 0x5e2b40
call fcn.0040c230
add esp, 8
mov ecx, dword [ebp - 0x41c4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [ebp - 0x41c4], 0xffffffff
or eax, 0xffffffff
jmp 0x481631
mov edx, dword [ebp - 0x41dc]
cmp dword [edx], 0
jne 0x481612
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0x4000
lea edx, [ebp - 0x41c0]
push edx
mov eax, dword [ebp - 0x41c4]
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4813f2
push 0x5e2b64
push 0x5e2b88
call fcn.0040c230
add esp, 8
mov ecx, dword [ebp - 0x41c4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [ebp - 0x41c4], 0xffffffff
or eax, 0xffffffff
jmp 0x481631
mov dword [ebp - 0x41e0], 0x5e2bac
lea edx, [ebp - 0x41c0]
mov dword [ebp - 0x41e4], edx
mov eax, dword [ebp - 0x41e4]
mov cl, byte [eax]
mov byte [ebp - 0x41e5], cl
mov edx, dword [ebp - 0x41e0]
cmp cl, byte [edx]
jne 0x481466
cmp byte [ebp - 0x41e5], 0
je 0x48145a
mov eax, dword [ebp - 0x41e4]
mov cl, byte [eax + 1]
mov byte [ebp - 0x41e6], cl
mov edx, dword [ebp - 0x41e0]
cmp cl, byte [edx + 1]
jne 0x481466
add dword [ebp - 0x41e4], 2
add dword [ebp - 0x41e0], 2
cmp byte [ebp - 0x41e6], 0
jne 0x481408
mov dword [ebp - 0x41ec], 0
jmp 0x481471
sbb eax, eax
sbb eax, 0xffffffff
mov dword [ebp - 0x41ec], eax
mov ecx, dword [ebp - 0x41ec]
mov dword [ebp - 0x41f0], ecx
cmp dword [ebp - 0x41f0], 0
jne 0x48149d
push str.recvfrom_stop_
push 0x5e2bd4
call fcn.0040c230
add esp, 8
jmp 0x481612
mov edx, dword [ebp - 0x41dc]
cmp dword [edx + 0xc], 0
jne 0x4814b6
push 0
mov ecx, dword [ebp - 0x41dc]
call fcn.004836d0
lea eax, [ebp - 0x41c0]
mov dword [ebp - 0x41c8], eax
mov ecx, dword [ebp - 0x41c8]
mov edx, dword [ecx]
mov dword [ebp - 0x41f4], edx
cmp dword [ebp - 0x41f4], 1
je 0x4814f8
cmp dword [ebp - 0x41f4], 2
je 0x4815a8
cmp dword [ebp - 0x41f4], 3
je 0x4815d2
jmp 0x4815f2
lea eax, [ebp - 0x41c0]
mov dword [ebp - 0x41cc], eax
mov ecx, dword [ebp - 0x41cc]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x41cc]
add eax, 0x320
push eax
mov ecx, dword [ebp - 0x41cc]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x41cc]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x41cc]
add edx, 0x21c
push edx
mov eax, dword [ebp - 0x41cc]
add eax, 0x118
push eax
mov ecx, dword [ebp - 0x41cc]
add ecx, 0x14
push ecx
mov edx, dword [ebp - 0x41cc]
mov eax, dword [edx + 4]
push eax
call fcn.004329c0
add esp, 0x20
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00482de0
mov dword [ebp - 0x41d0], eax
cmp dword [ebp - 0x41d0], 0
je 0x4815a6
push 5
mov ecx, dword [ebp - 0x41d0]
push ecx
push 0x6e
push 5
call fcn.00434820
add esp, 0x10
mov edx, dword [ebp - 0x41d0]
push edx
call fcn.005619d3
add esp, 4
jmp 0x48160d
lea eax, [ebp - 0x41c0]
mov dword [ebp - 0x41d4], eax
mov ecx, dword [ebp - 0x41d4]
add ecx, 8
push ecx
mov edx, dword [ebp - 0x41d4]
mov eax, dword [edx + 4]
push eax
call fcn.00432bd0
add esp, 8
jmp 0x48160d
lea ecx, [ebp - 0x41c0]
mov dword [ebp - 0x41d8], ecx
mov edx, dword [ebp - 0x41d8]
add edx, 8
push edx
call fcn.00432cd0
add esp, 4
jmp 0x48160d
mov eax, dword [ebp - 0x41c8]
mov ecx, dword [eax]
push ecx
push str.USB_REPORT_TYPE_error__d
push str.CUSBMonitor::UsbUdpDerverFunction
call fcn.0040c230
add esp, 0xc
jmp 0x481380
mov edx, dword [ebp - 0x41c4]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [ebp - 0x41c4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00560c61
mov esp, ebp
pop ebp
ret