Function at 0x472600
Capabilities:
Create udp socket
Get socket status
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 0x487e6a
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x4a3350]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7a4], ecx
xor esi, esi
mov dword [ebp - 0x7a0], esi
mov dword [ebp - 0x7ac], esi
push 0x74
lea eax, [ebp - 0x504]
mov dword [ebp - 4], 1
push esi
push eax
call fcn.00424c50
add esp, 0xc
lea ecx, [ebp - 0x504]
call fcn.00408af0
xorps xmm0, xmm0
mov byte [ebp - 4], 2
push esi
lea ecx, [ebp - 0x464]
movq qword [ebp - 0x454], xmm0
movdqu xmmword [ebp - 0x464], xmm0
call fcn.00402bf0
lea eax, [ebp - 0x798]
mov byte [ebp - 4], 3
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x472c17
mov eax, dword [ebp - 0x798]
cmp al, 2
jne 0x472c17
shr eax, 8
cmp al, 2
jne 0x472c17
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
mov dword [ebp - 0x7a8], edi
cmp edi, 0xffffffff
jne 0x47270d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [ebp - 0x464]
mov byte [ebp - 4], 2
call fcn.00402ea0
lea ecx, [ebp - 0x504]
call fcn.0041dcf0
lea ecx, [ebp + 0xc]
call fcn.00405270
lea ecx, [ebp + 0x24]
call fcn.00405270
jmp 0x472c65
mov eax, 2
push 0
mov word [ebp - 0x480], ax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x7a4]
mov word [ebp - 0x47e], ax
lea eax, [ebp - 0x7ac]
push eax
push 1
lea eax, [ebp - 0x430]
push eax
call fcn.00471120
test al, al
je 0x472750
lea eax, [ebp - 0x430]
push eax
jmp 0x472752
push 0
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 8]
mov dword [ebp - 0x47c], eax
mov eax, 2
mov word [ebp - 0x490], ax
call dword [sym.imp.WS2_32.dll_htons]
push 1
mov word [ebp - 0x48e], ax
lea eax, [ebp - 0x431]
push eax
push 0x20
push 0xffff
push edi
mov dword [ebp - 0x48c], 0xffffffff
mov byte [ebp - 0x431], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x10
lea eax, [ebp - 0x480]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4726d8
push 0x498928
call fcn.004262a8
push 0x3ff
lea eax, [ebp - 0x40f]
mov dword [ebp - 0x468], 0x10
push 0
push eax
mov byte [ebp - 0x410], 0
call fcn.00424c50
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x80c]
push str._cmd_:_getip___ver_:_
push eax
call fcn.0040f8b0
push str.___vertype_:_
push eax
lea eax, [ebp - 0x7f4]
mov byte [ebp - 4], 4
push eax
call fcn.0040f810
lea ecx, [ebp + 0x24]
mov byte [ebp - 4], 5
push ecx
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.00414550
push 0x498660
push eax
lea eax, [ebp - 0x44c]
mov byte [ebp - 4], 6
push eax
call fcn.0040f810
add esp, 0x40
lea ecx, [ebp - 0x824]
call fcn.00405270
lea ecx, [ebp - 0x7f4]
call fcn.00405270
lea ecx, [ebp - 0x80c]
mov byte [ebp - 4], 0xa
call fcn.00405270
cmp dword [ebp - 0x438], 0x10
lea ecx, [ebp - 0x490]
push 0x10
push ecx
push 0
push dword [ebp - 0x43c]
lea eax, [ebp - 0x44c]
cmovae eax, dword [ebp - 0x44c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x4728d3
lea ecx, [ebp - 0x44c]
call fcn.00405270
lea ecx, [ebp - 0x464]
mov byte [ebp - 4], 2
call fcn.00402ea0
lea ecx, [ebp - 0x504]
call fcn.0041dcf0
lea ecx, [ebp + 0xc]
call fcn.00405270
lea ecx, [ebp + 0x24]
call fcn.00405270
jmp 0x472c65
mov edi, dword [ebp - 0x7a4]
add edi, 0x1c
mov ecx, edi
mov dword [ebp - 0x7a4], edi
push dword [edi + 4]
push dword [edi]
call fcn.00407510
mov eax, dword [edi]
mov dword [edi + 4], eax
mov esi, dword [ebp - 0x7a8]
mov dword [ebp - 0x604], esi
mov dword [ebp - 0x608], 1
mov dword [ebp - 0x470], 5
mov dword [ebp - 0x46c], 0
lea ecx, [ecx]
lea eax, [ebp - 0x470]
push eax
push 0
push 0
lea eax, [ebp - 0x608]
push eax
push esi
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
test edi, edi
jns 0x47294e
call fcn.00429668
cmp dword [eax], 0x2714
je 0x472920
test edi, edi
mov esi, dword [ebp - 0x7a0]
mov edi, dword [ebp - 0x7a8]
je 0x472bd8
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x490]
push eax
push 0
push 0x400
lea eax, [ebp - 0x410]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
je 0x472bd2
cmp eax, 0x400
jae 0x472bcd
mov byte [ebp + eax - 0x410], 0
cmp byte [ebp - 0x410], 0
mov dword [ebp - 0x7b0], 0xf
mov dword [ebp - 0x7b4], 0
mov byte [ebp - 0x7c4], 0
jne 0x4729c7
xor eax, eax
jmp 0x4729d9
lea eax, [ebp - 0x410]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4729d0
sub eax, edx
push eax
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x7c4]
call fcn.00406980
push 1
lea eax, [ebp - 0x464]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x7c4]
push eax
lea ecx, [ebp - 0x504]
call fcn.00408c40
cmp dword [ebp - 0x7b0], 0x10
mov byte [ebp - 0x799], al
mov byte [ebp - 4], 0xa
jb 0x472a32
push dword [ebp - 0x7c4]
call fcn.004235a4
mov al, byte [ebp - 0x799]
add esp, 4
test al, al
je 0x4728f3
push 0x498834
lea ecx, [ebp - 0x464]
call fcn.00404870
mov ecx, eax
call fcn.00404c80
test al, al
jne 0x472aef
lea eax, [ebp - 0x7dc]
push eax
push 0x498834
lea ecx, [ebp - 0x464]
call fcn.00404870
mov ecx, eax
call fcn.00403130
or esi, 1
mov byte [ebp - 4], 0xc
push str.getip
push eax
mov dword [ebp - 0x7a0], esi
mov dword [ebp - 0x7ac], esi
call fcn.00413110
add esp, 8
test al, al
je 0x472aef
push 0x49884c
lea ecx, [ebp - 0x464]
call fcn.00404870
mov ecx, eax
call fcn.00404c80
test al, al
jne 0x472aef
lea eax, [ebp - 0x7c4]
push eax
push 0x49884c
lea ecx, [ebp - 0x464]
call fcn.00404870
mov ecx, eax
call fcn.00403130
mov ecx, esi
or ecx, 2
mov dword [ebp - 0x7a0], ecx
cmp dword [eax + 0x10], 0
jbe 0x472af5
mov byte [ebp - 0x799], 1
jmp 0x472afc
mov ecx, dword [ebp - 0x7a0]
mov byte [ebp - 0x799], 0
test cl, 2
je 0x472b42
and ecx, 0xfffffffd
cmp dword [ebp - 0x7b0], 0x10
mov dword [ebp - 0x7a0], ecx
jb 0x472b27
push dword [ebp - 0x7c4]
call fcn.004235a4
mov ecx, dword [ebp - 0x7a0]
add esp, 4
mov dword [ebp - 0x7b0], 0xf
mov dword [ebp - 0x7b4], 0
mov byte [ebp - 0x7c4], 0
mov dword [ebp - 4], 0xa
test cl, 1
je 0x472b6e
and ecx, 0xfffffffe
cmp dword [ebp - 0x7c8], 0x10
mov dword [ebp - 0x7a0], ecx
jb 0x472b6e
push dword [ebp - 0x7dc]
call fcn.004235a4
add esp, 4
cmp byte [ebp - 0x799], 0
je 0x4728f3
lea eax, [ebp - 0x7dc]
push eax
push 0x49884c
lea ecx, [ebp - 0x464]
call fcn.00404870
mov ecx, eax
call fcn.00403130
mov ecx, dword [ebp - 0x7a4]
push eax
mov byte [ebp - 4], 0xd
call fcn.00405b50
cmp dword [ebp - 0x7c8], 0x10
mov byte [ebp - 4], 0xa
jb 0x4728f3
push dword [ebp - 0x7dc]
call fcn.004235a4
add esp, 4
jmp 0x4728f3
call fcn.0042de11
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp dword [ebp - 0x438], 0x10
jb 0x472bfc
push dword [ebp - 0x44c]
call fcn.004235a4
add esp, 4
mov byte [ebp - 0x44c], 0
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x438], 0xf
lea ecx, [ebp - 0x464]
mov byte [ebp - 4], 2
call fcn.00402ea0
lea ecx, [ebp - 0x504]
call fcn.0041dcf0
cmp dword [ebp + 0x20], 0x10
jb 0x472c42
push dword [ebp + 0xc]
call fcn.004235a4
add esp, 4
cmp dword [ebp + 0x38], 0x10
mov byte [ebp + 0xc], 0
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0xf
jb 0x472c65
push dword [ebp + 0x24]
call fcn.004235a4
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042419e
mov esp, ebp
pop ebp
ret 0x34