Function at 0x420cf0
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 0x45bf8a
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x4714d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7b8], ecx
xor esi, esi
mov dword [ebp - 0x7b4], esi
mov dword [ebp - 0x7d8], esi
push 0x74
lea eax, [ebp - 0x514]
mov dword [ebp - 4], 1
push esi
push eax
call fcn.00443760
add esp, 0xc
lea ecx, [ebp - 0x514]
call fcn.00424760
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x454], xmm0
mov dword [ebp - 0x448], esi
movq qword [ebp - 0x444], xmm0
psrldq xmm0, 8
movd eax, xmm0
mov dword [ebp - 0x444], esi
mov dword [ebp - 0x440], esi
and eax, 0xfffffe00
mov dword [ebp - 0x44c], eax
lea eax, [ebp - 0x7ac]
mov byte [ebp - 4], 4
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x42132b
mov eax, dword [ebp - 0x7ac]
cmp al, 2
jne 0x421325
shr eax, 8
cmp al, 2
jne 0x421325
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
mov dword [ebp - 0x7bc], edi
cmp edi, 0xffffffff
jne 0x420e13
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [ebp - 0x454]
mov byte [ebp - 4], 2
call fcn.0042b620
lea ecx, [ebp - 0x514]
call fcn.004108d0
lea ecx, [ebp + 0xc]
call fcn.00402c00
lea ecx, [ebp + 0x24]
call fcn.00402c00
jmp 0x421379
mov eax, 2
push 0
mov word [ebp - 0x488], ax
call dword [sym.imp.WS2_32.dll_htons]
sub esp, 8
mov word [ebp - 0x486], ax
lea eax, [ebp - 0x434]
push eax
call fcn.00420b60
test al, al
je 0x420e4a
lea eax, [ebp - 0x434]
push eax
jmp 0x420e4c
push 0
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 8]
mov dword [ebp - 0x484], eax
mov eax, 2
mov word [ebp - 0x498], ax
call dword [sym.imp.WS2_32.dll_htons]
push 1
mov word [ebp - 0x496], ax
lea eax, [ebp - 0x435]
push eax
push 0x20
push 0xffff
push edi
mov dword [ebp - 0x494], 0xffffffff
mov byte [ebp - 0x435], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x10
lea eax, [ebp - 0x488]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x420dde
push 0x468e18
call fcn.0043f3d8
add esp, 4
mov dword [ebp - 0x470], 0x10
lea eax, [ebp - 0x413]
mov byte [ebp - 0x414], 0
push 0x3ff
push 0
push eax
call fcn.00443760
add esp, 0xc
lea eax, [ebp + 0xc]
mov edx, str._cmd_:_getip___ver_:_
lea ecx, [ebp - 0x838]
push eax
call fcn.00405ce0
add esp, 4
push str.___vertype_:_
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x820]
call fcn.00407f60
add esp, 4
lea ecx, [ebp + 0x24]
mov byte [ebp - 4], 6
push ecx
mov edx, eax
lea ecx, [ebp - 0x808]
call fcn.00405c60
add esp, 4
push 0x4689e8
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x46c]
call fcn.00407f60
add esp, 4
lea ecx, [ebp - 0x808]
call fcn.00402c00
lea ecx, [ebp - 0x820]
call fcn.00402c00
lea ecx, [ebp - 0x838]
mov byte [ebp - 4], 0xb
call fcn.00402c00
cmp dword [ebp - 0x458], 0x10
lea ecx, [ebp - 0x498]
push 0x10
push ecx
push 0
push dword [ebp - 0x45c]
lea eax, [ebp - 0x46c]
cmovae eax, dword [ebp - 0x46c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x420fdb
lea ecx, [ebp - 0x46c]
call fcn.00402c00
lea ecx, [ebp - 0x454]
mov byte [ebp - 4], 2
call fcn.0042b620
lea ecx, [ebp - 0x514]
call fcn.004108d0
lea ecx, [ebp + 0xc]
call fcn.00402c00
lea ecx, [ebp + 0x24]
call fcn.00402c00
jmp 0x421379
mov eax, dword [ebp - 0x7b8]
add eax, 0x1c
mov ecx, eax
mov dword [ebp - 0x7b8], eax
call fcn.004040d0
mov esi, dword [ebp - 0x7bc]
mov dword [ebp - 0x618], esi
mov dword [ebp - 0x61c], 1
mov dword [ebp - 0x478], 2
mov dword [ebp - 0x474], 0
jmp 0x421020
lea eax, [ebp - 0x478]
push eax
push 0
push 0
lea eax, [ebp - 0x61c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
test edi, edi
jns 0x42104e
call fcn.00443447
cmp dword [eax], 0x2714
je 0x421020
test edi, edi
mov esi, dword [ebp - 0x7b4]
mov edi, dword [ebp - 0x7bc]
je 0x4212e4
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x498]
push eax
push 0
push 0x400
lea eax, [ebp - 0x414]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
je 0x4212de
cmp eax, 0x400
jae 0x4212d9
mov byte [ebp + eax - 0x414], 0
cmp byte [ebp - 0x414], 0
mov dword [ebp - 0x7c0], 0xf
mov dword [ebp - 0x7c4], 0
mov byte [ebp - 0x7d4], 0
jne 0x4210c7
xor ecx, ecx
jmp 0x4210d9
lea ecx, [ebp - 0x414]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4210d0
sub ecx, edx
push ecx
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x7d4]
call fcn.004037a0
push ecx
lea eax, [ebp - 0x454]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x7d4]
push eax
lea ecx, [ebp - 0x514]
call fcn.00424890
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x7c0], 0x10
mov byte [ebp - 0x7ad], al
jb 0x421131
push dword [ebp - 0x7d4]
call fcn.0043e223
mov al, byte [ebp - 0x7ad]
add esp, 4
test al, al
je 0x420ff1
push 0x468b63
push 0x468b60
lea ecx, [ebp - 0x454]
call fcn.0042cbd0
cmp byte [eax + 8], 0
je 0x4211f6
push 0x468b63
push 0x468b60
lea ecx, [ebp - 0x454]
call fcn.0042cbd0
lea ecx, [ebp - 0x7f0]
push ecx
mov ecx, eax
call fcn.0042b8b0
mov byte [ebp - 4], 0xd
or esi, 1
mov edx, str.getip
mov dword [ebp - 0x7b4], esi
mov ecx, eax
mov dword [ebp - 0x7d8], esi
call fcn.004080b0
test al, al
je 0x4211f6
push 0x468de6
push 0x468de4
lea ecx, [ebp - 0x454]
call fcn.0042cbd0
cmp byte [eax + 8], 0
je 0x4211f6
push 0x468de6
push 0x468de4
lea ecx, [ebp - 0x454]
call fcn.0042cbd0
lea ecx, [ebp - 0x7d4]
push ecx
mov ecx, eax
call fcn.0042b8b0
mov ecx, esi
or ecx, 2
mov dword [ebp - 0x7b4], ecx
cmp dword [eax + 0x10], 0
jbe 0x4211fc
mov byte [ebp - 0x7ad], 1
jmp 0x421203
mov ecx, dword [ebp - 0x7b4]
mov byte [ebp - 0x7ad], 0
test cl, 2
je 0x421249
and ecx, 0xfffffffd
cmp dword [ebp - 0x7c0], 0x10
mov dword [ebp - 0x7b4], ecx
jb 0x42122e
push dword [ebp - 0x7d4]
call fcn.0043e223
mov ecx, dword [ebp - 0x7b4]
add esp, 4
mov dword [ebp - 0x7c0], 0xf
mov dword [ebp - 0x7c4], 0
mov byte [ebp - 0x7d4], 0
mov dword [ebp - 4], 0xb
test cl, 1
je 0x421275
and ecx, 0xfffffffe
cmp dword [ebp - 0x7dc], 0x10
mov dword [ebp - 0x7b4], ecx
jb 0x421275
push dword [ebp - 0x7f0]
call fcn.0043e223
add esp, 4
cmp byte [ebp - 0x7ad], 0
je 0x420ff1
push 0x468de6
push 0x468de4
lea ecx, [ebp - 0x454]
call fcn.0042cbd0
lea ecx, [ebp - 0x7f0]
push ecx
mov ecx, eax
call fcn.0042b8b0
mov ecx, dword [ebp - 0x7b8]
push eax
mov byte [ebp - 4], 0xe
call fcn.00419af0
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x7dc], 0x10
jb 0x420ff1
push dword [ebp - 0x7f0]
call fcn.0043e223
add esp, 4
jmp 0x420ff1
call fcn.00440b88
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 - 0x458], 0x10
jb 0x421308
push dword [ebp - 0x46c]
call fcn.0043e223
add esp, 4
mov dword [ebp - 0x458], 0xf
mov dword [ebp - 0x45c], 0
mov byte [ebp - 0x46c], 0
jmp 0x42132b
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea ecx, [ebp - 0x454]
mov byte [ebp - 4], 2
call fcn.0042b620
lea ecx, [ebp - 0x514]
call fcn.004108d0
cmp dword [ebp + 0x20], 0x10
jb 0x421356
push dword [ebp + 0xc]
call fcn.0043e223
add esp, 4
cmp dword [ebp + 0x38], 0x10
mov byte [ebp + 0xc], 0
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0xf
jb 0x421379
push dword [ebp + 0x24]
call fcn.0043e223
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 - 0x14]
xor ecx, ebp
call fcn.0043d8bb
mov esp, ebp
pop ebp
ret 0x34