Function at 0x47ca00
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.00565240
mov eax, dword [0x615000]
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 0x47ca4f
push 0x5dc968
push 0x5dc990
call fcn.0040c050
add esp, 8
mov eax, 1
jmp 0x47cde8
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 0x47caa4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x5dc9b8
push 0x5dc9fc
call fcn.0040c050
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x47cde8
push 0x4000
push 0
lea ecx, [ebp - 0x41c0]
push ecx
call fcn.00562540
add esp, 0xc
push 0x5dca20
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 0x47cb50
push 0x5dca2c
push 0x5dca48
call fcn.0040c050
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 0x47cde8
mov edx, dword [ebp - 0x41dc]
cmp dword [edx], 0
jne 0x47cdc9
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 0x47cbc2
push 0x5dca6c
push 0x5dca90
call fcn.0040c050
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 0x47cde8
mov dword [ebp - 0x41e0], 0x5dcab4
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 0x47cc36
cmp byte [ebp - 0x41e5], 0
je 0x47cc2a
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 0x47cc36
add dword [ebp - 0x41e4], 2
add dword [ebp - 0x41e0], 2
cmp byte [ebp - 0x41e6], 0
jne 0x47cbd8
mov dword [ebp - 0x41ec], 0
jmp 0x47cc41
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 0x47cc6d
push str.recvfrom_stop_
push 0x5dcadc
call fcn.0040c050
add esp, 8
jmp 0x47cdc9
lea edx, [ebp - 0x41c0]
mov dword [ebp - 0x41c8], edx
mov eax, dword [ebp - 0x41c8]
mov ecx, dword [eax]
mov dword [ebp - 0x41f4], ecx
cmp dword [ebp - 0x41f4], 1
je 0x47ccaf
cmp dword [ebp - 0x41f4], 2
je 0x47cd5f
cmp dword [ebp - 0x41f4], 3
je 0x47cd89
jmp 0x47cda9
lea edx, [ebp - 0x41c0]
mov dword [ebp - 0x41cc], edx
mov eax, dword [ebp - 0x41cc]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x41cc]
add edx, 0x320
push edx
mov eax, dword [ebp - 0x41cc]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x41cc]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x41cc]
add ecx, 0x21c
push ecx
mov edx, dword [ebp - 0x41cc]
add edx, 0x118
push edx
mov eax, dword [ebp - 0x41cc]
add eax, 0x14
push eax
mov ecx, dword [ebp - 0x41cc]
mov edx, dword [ecx + 4]
push edx
call fcn.004319d0
add esp, 0x20
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0047e4d0
mov dword [ebp - 0x41d0], eax
cmp dword [ebp - 0x41d0], 0
je 0x47cd5d
mov eax, dword [ebp - 0x41d0]
push eax
push 0x6e
push 5
call fcn.00433830
add esp, 0xc
mov ecx, dword [ebp - 0x41d0]
push ecx
call fcn.0055b95c
add esp, 4
jmp 0x47cdc4
lea edx, [ebp - 0x41c0]
mov dword [ebp - 0x41d4], edx
mov eax, dword [ebp - 0x41d4]
add eax, 8
push eax
mov ecx, dword [ebp - 0x41d4]
mov edx, dword [ecx + 4]
push edx
call fcn.00431be0
add esp, 8
jmp 0x47cdc4
lea eax, [ebp - 0x41c0]
mov dword [ebp - 0x41d8], eax
mov ecx, dword [ebp - 0x41d8]
add ecx, 8
push ecx
call fcn.00431ce0
add esp, 4
jmp 0x47cdc4
mov edx, dword [ebp - 0x41c8]
mov eax, dword [edx]
push eax
push str.USB_REPORT_TYPE_error__d
push str.CUSBMonitor::UsbUdpDerverFunction
call fcn.0040c050
add esp, 0xc
jmp 0x47cb50
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
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret