Function at 0x1001c520
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 [0x10085580]
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.1004b220
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.1004b220
add esp, 0xc
cmp dword [ebp + 0x14], 0
jne 0x1001c5cb
mov dword [ebp - 8], 0xd1010061
jmp 0x1001c981
cmp dword [ebp + 8], 0
jne 0x1001c5ec
push str.203.248.240.140
push 0x10066e18
lea eax, [ebp - 0x20c]
push eax
call fcn.10049d62
add esp, 0xc
jmp 0x1001c604
mov eax, dword [ebp + 8]
push eax
push 0x10066e18
lea ecx, [ebp - 0x20c]
push ecx
call fcn.10049d62
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x1001c613
mov byte [ebp - 0x20d], 0x7b
jmp 0x1001c61c
mov al, byte [ebp + 0xc]
mov byte [ebp - 0x20d], al
mov byte [ebp - 0x240], 0x1b
mov dword [ebp - 0x44], 1
jmp 0x1001c635
mov eax, dword [ebp - 0x44]
add eax, 1
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0x30
jge 0x1001c648
mov eax, dword [ebp - 0x44]
mov byte [ebp + eax - 0x240], 0
jmp 0x1001c62c
lea eax, [ebp - 0x1d8]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x1001c669
mov dword [ebp - 8], 0xd10e6185
jmp 0x1001c981
push 0
push 2
push 2
call sub.WS2_32.dll_socket
mov dword [ebp - 0x1dc], eax
cmp dword [ebp - 0x1dc], 0xffffffff
jne 0x1001c68f
mov dword [ebp - 8], 0xd10e6185
jmp 0x1001c981
push 0x10
push 0
lea eax, [ebp - 0x1ec]
push eax
call fcn.1004b220
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 0x1001c74d
mov eax, 0xd101011a
jmp 0x1001c9a9
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.1001c2c0
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.10050ca0
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 0x1001c820
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.10050d50
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.10050ca0
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.10050d50
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.10050ca0
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.10050d50
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.10050ca0
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.1001c3e0
add esp, 0x14
push 0x10
call fcn.10049234
add esp, 4
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
jne 0x1001c92b
mov dword [ebp - 8], 0xd1010001
jmp 0x1001c981
push 0x10
push 0
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
call fcn.1004b220
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.10049d62
add esp, 0x20
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
je 0x1001c9a6
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
je 0x1001c9a6
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
call fcn.100490dd
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.10049fa6
mov esp, ebp
pop ebp
ret