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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1684
call fcn.0056b140
mov eax, dword [0x61b000]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1684], ecx
lea eax, [ebp - 0x3d0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4471df
push str.WSAStartup_failed__
push 0x5f1364
call fcn.0040c230
add esp, 8
mov eax, 1
jmp 0x447594
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0x1684]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1684]
cmp dword [edx + 4], 0xffffffff
jne 0x447229
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.socket___failed__Error_Code:_d_n
push 0x5f13c4
call fcn.0040c230
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x447594
mov dword [ebp - 0x238], 0x10
push 0x5f13e0
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 0x228], eax
mov eax, 2
mov word [ebp - 0x22c], ax
push 0xea61
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22a], ax
mov byte [ebp - 0x231], 1
push 1
lea ecx, [ebp - 0x231]
push ecx
push 4
push 0xffff
mov edx, dword [ebp - 0x1684]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x10
lea ecx, [ebp - 0x22c]
push ecx
mov edx, dword [ebp - 0x1684]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_bind]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0xffffffff
jne 0x4472e0
push str.bind_failed__
push 0x5f1408
call fcn.0040c230
add esp, 8
mov ecx, dword [ebp - 0x1684]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
or eax, 0xffffffff
jmp 0x447594
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x5dc], 0
mov dword [ebp - 0x15ec], 0
mov byte [ebp - 0x1670], 0
push 0x7f
push 0
lea eax, [ebp - 0x166f]
push eax
call fcn.00568440
add esp, 0xc
mov byte [ebp - 0x208], 0
push 0x1ff
push 0
lea ecx, [ebp - 0x207]
push ecx
call fcn.00568440
add esp, 0xc
mov byte [ebp - 0x5d8], 0
push 0x1ff
push 0
lea edx, [ebp - 0x5d7]
push edx
call fcn.00568440
add esp, 0xc
mov byte [ebp - 0x15e0], 0
push 0xfff
push 0
lea eax, [ebp - 0x15df]
push eax
call fcn.00568440
add esp, 0xc
mov ecx, dword [ebp - 0x1684]
cmp dword [ecx], 0
jne 0x44757c
push 0x1000
push 0
lea edx, [ebp - 0x15e0]
push edx
call fcn.00568440
add esp, 0xc
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x218]
push ecx
push 0
push 0xfff
lea edx, [ebp - 0x15e0]
push edx
mov eax, dword [ebp - 0x1684]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0xffffffff
jne 0x4473f0
push str.recvfrom_failed__
push str.CCmdMonitor::UdpServerFunc
call fcn.0040c230
add esp, 8
jmp 0x44757c
push 0x80
push 0
lea edx, [ebp - 0x1670]
push edx
call fcn.00568440
add esp, 0xc
push 0x200
push 0
lea eax, [ebp - 0x208]
push eax
call fcn.00568440
add esp, 0xc
push 0x200
push 0
lea ecx, [ebp - 0x5d8]
push ecx
call fcn.00568440
add esp, 0xc
lea edx, [ebp - 0x5d8]
push edx
lea eax, [ebp - 0x15ec]
push eax
lea ecx, [ebp - 0x208]
push ecx
lea edx, [ebp - 0x5dc]
push edx
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x1670]
push ecx
lea edx, [ebp - 0x230]
push edx
push str._d_127___d_d_511___d_511__
lea eax, [ebp - 0x15e0]
push eax
call fcn.00562969
add esp, 0x24
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 7
je 0x44748b
jmp 0x447379
mov eax, dword [ebp - 0x230]
cdq
mov dword [ebp - 0x15e8], eax
mov dword [ebp - 0x15e4], edx
lea ecx, [ebp - 0x15e8]
push ecx
call fcn.00473c60
add esp, 4
mov dword [ebp - 0x3d4], eax
mov edx, dword [ebp - 0x3d4]
mov eax, dword [edx + 0x14]
add eax, 0x76c
mov word [ebp - 0x1680], ax
mov ecx, dword [ebp - 0x3d4]
mov edx, dword [ecx + 0x10]
add edx, 1
mov word [ebp - 0x167e], dx
mov eax, dword [ebp - 0x3d4]
mov cx, word [eax + 0x18]
mov word [ebp - 0x167c], cx
mov edx, dword [ebp - 0x3d4]
mov ax, word [edx + 0xc]
mov word [ebp - 0x167a], ax
mov ecx, dword [ebp - 0x3d4]
mov dx, word [ecx + 8]
mov word [ebp - 0x1678], dx
mov eax, dword [ebp - 0x3d4]
mov cx, word [eax + 4]
mov word [ebp - 0x1676], cx
mov edx, dword [ebp - 0x3d4]
mov ax, word [edx]
mov word [ebp - 0x1674], ax
xor ecx, ecx
mov word [ebp - 0x1672], cx
lea edx, [ebp - 0x5d8]
push edx
mov eax, dword [ebp - 0x15ec]
push eax
lea ecx, [ebp - 0x208]
push ecx
mov edx, dword [ebp - 0x5dc]
push edx
mov eax, dword [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x1670]
push ecx
lea edx, [ebp - 0x1680]
push edx
push 0
push 0
push 0
call fcn.00433690
add esp, 0x28
jmp 0x447379
mov eax, dword [ebp - 0x1684]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00560c61
mov esp, ebp
pop ebp
ret