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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b0
mov eax, dword [0x1007e570]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], 0xffffffff
mov byte [ebp - 0x38], 0
push 0x2f
push 0
lea eax, [ebp - 0x37]
push eax
call fcn.10043dc0
add esp, 0xc
mov dword [ebp - 0x48], 0xbb8
mov byte [ebp - 0x20c], 0
xor eax, eax
mov dword [ebp - 0x20b], eax
mov dword [ebp - 0x207], eax
mov dword [ebp - 0x203], eax
mov dword [ebp - 0x1ff], eax
mov dword [ebp - 0x1fb], eax
mov dword [ebp - 0x1f7], eax
mov dword [ebp - 0x1f3], eax
mov word [ebp - 0x1ef], ax
mov byte [ebp - 0x1ed], al
mov byte [ebp - 0x20d], 0
mov byte [ebp - 0x240], 0
push 0x2f
push 0
lea eax, [ebp - 0x23f]
push eax
call fcn.10043dc0
add esp, 0xc
cmp dword [ebp + 0x14], 0
jne 0x1001c70b
mov dword [ebp - 8], 0xd1010061
jmp 0x1001cac1
cmp dword [ebp + 8], 0
jne 0x1001c72c
push str.203.248.240.140
push 0x1005fd88
lea eax, [ebp - 0x20c]
push eax
call fcn.10042902
add esp, 0xc
jmp 0x1001c744
mov eax, dword [ebp + 8]
push eax
push 0x1005fd88
lea ecx, [ebp - 0x20c]
push ecx
call fcn.10042902
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x1001c753
mov byte [ebp - 0x20d], 0x7b
jmp 0x1001c75c
mov al, byte [ebp + 0xc]
mov byte [ebp - 0x20d], al
mov byte [ebp - 0x240], 0x1b
mov dword [ebp - 0x44], 1
jmp 0x1001c775
mov eax, dword [ebp - 0x44]
add eax, 1
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0x30
jge 0x1001c788
mov eax, dword [ebp - 0x44]
mov byte [ebp + eax - 0x240], 0
jmp 0x1001c76c
lea eax, [ebp - 0x1d8]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x1001c7a9
mov dword [ebp - 8], 0xd10e6185
jmp 0x1001cac1
push 0
push 2
push 2
call sub.WS2_32.dll_socket
mov dword [ebp - 0x1dc], eax
cmp dword [ebp - 0x1dc], 0xffffffff
jne 0x1001c7cf
mov dword [ebp - 8], 0xd10e6185
jmp 0x1001cac1
push 0x10
push 0
lea eax, [ebp - 0x1ec]
push eax
call fcn.10043dc0
add esp, 0xc
mov eax, 2
mov word [ebp - 0x1ec], ax
lea eax, [ebp - 0x20c]
push eax
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 0x1e8], eax
movsx ax, byte [ebp - 0x20d]
movzx ecx, ax
push ecx
call sub.WS2_32.dll_htons
mov word [ebp - 0x1ea], ax
push 4
lea eax, [ebp - 0x48]
push eax
push 0x1006
push 0xffff
mov ecx, dword [ebp - 0x1dc]
push ecx
call sub.WS2_32.dll_setsockopt
push 0x10
lea eax, [ebp - 0x1ec]
push eax
push 0
push 0x30
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [ebp - 0x1dc]
push edx
call sub.WS2_32.dll_sendto
mov dword [ebp - 0x40], 0x10
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x1ec]
push ecx
push 0
push 0x30
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x1dc]
push eax
call sub.WS2_32.dll_recvfrom
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jge 0x1001c88d
mov eax, 0xd101011a
jmp 0x1001cae9
mov eax, dword [ebp - 0x1dc]
push eax
call sub.WS2_32.dll_closesocket
call sub.WS2_32.dll_WSACleanup
mov eax, dword [ebp - 0x3c]
mov byte [ebp + eax - 0x38], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 0
push 0x28
lea eax, [ebp - 0x38]
push eax
call fcn.1001c400
add esp, 8
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], edx
push 0
push 0x3e8
mov eax, dword [ebp - 0x244]
push eax
mov ecx, dword [ebp - 0x248]
push ecx
call fcn.10049840
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], edx
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x258], eax
mov ecx, dword [ebp - 0x24c]
mov dword [ebp - 0x254], ecx
cmp dword [ebp + 0x10], 1
jne 0x1001c960
mov eax, dword [ebp - 0x258]
add eax, 0x7e90
mov ecx, dword [ebp - 0x254]
adc ecx, 0
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], ecx
push 0
push 0x3c
mov eax, dword [ebp - 0x254]
push eax
mov ecx, dword [ebp - 0x258]
push ecx
call fcn.100498f0
mov dword [ebp - 0x270], eax
push 0
push 0x3c
mov eax, dword [ebp - 0x254]
push eax
mov ecx, dword [ebp - 0x258]
push ecx
call fcn.10049840
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], edx
push 0
push 0x3c
mov eax, dword [ebp - 0x254]
push eax
mov ecx, dword [ebp - 0x258]
push ecx
call fcn.100498f0
mov dword [ebp - 0x26c], eax
push 0
push 0x3c
mov eax, dword [ebp - 0x254]
push eax
mov ecx, dword [ebp - 0x258]
push ecx
call fcn.10049840
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], edx
push 0
push 0x18
mov eax, dword [ebp - 0x254]
push eax
mov ecx, dword [ebp - 0x258]
push ecx
call fcn.100498f0
mov dword [ebp - 0x268], eax
push 0
push 0x18
mov eax, dword [ebp - 0x254]
push eax
mov ecx, dword [ebp - 0x258]
push ecx
call fcn.10049840
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], edx
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x260]
push ecx
lea edx, [ebp - 0x25c]
push edx
mov eax, dword [ebp - 0x254]
push eax
mov ecx, dword [ebp - 0x258]
push ecx
call fcn.1001c520
add esp, 0x14
push 0x10
call fcn.10041dd4
add esp, 4
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
jne 0x1001ca6b
mov dword [ebp - 8], 0xd1010001
jmp 0x1001cac1
push 0x10
push 0
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
call fcn.10043dc0
add esp, 0xc
mov eax, dword [ebp - 0x270]
push eax
mov ecx, dword [ebp - 0x26c]
push ecx
mov edx, dword [ebp - 0x268]
push edx
mov eax, dword [ebp - 0x264]
push eax
mov ecx, dword [ebp - 0x260]
push ecx
mov edx, dword [ebp - 0x25c]
push edx
push str._4d_02d_02d_02d_02d_02d
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
call fcn.10042902
add esp, 0x20
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
je 0x1001cae6
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
je 0x1001cae6
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
call fcn.10041c7d
add esp, 4
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10042b46
mov esp, ebp
pop ebp
ret