Function at 0x1001fb90
Capabilities:
Check for time delay via gettickcount
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Get socket status
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004e687
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x41a8
call fcn.10036fa0
mov eax, dword [0x1005d330]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], esp
mov ebx, ecx
push eax
mov dword [ebp - 0x4054], ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x100208b8
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x4074], eax
xor eax, eax
mov byte [ebp - 0x1028], 0
mov ecx, 0x400
lea edi, [ebp - 0x1027]
rep stosd dword es:[edi], eax
push eax
lea ecx, [ebp + 0x14]
push ecx
lea edx, [ebp - 0x1028]
push edx
push esi
mov ecx, ebx
mov dword [ebp + 0x14], 0x1000
call fcn.10017520
test eax, eax
je 0x100208b8
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov edx, dword [edi]
push eax
lea ecx, [ebp - 0x1028]
push ecx
push edx
mov ecx, ebx
call fcn.10017640
test eax, eax
je 0x100208b8
mov edx, dword [edi]
push 0
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x1028]
push ecx
push edx
mov ecx, ebx
mov dword [ebp + 0x14], 0x1000
call fcn.10017520
test eax, eax
je 0x100208b8
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x1028]
push ecx
push esi
mov ecx, ebx
call fcn.10017640
test eax, eax
je 0x100208b8
xor eax, eax
lea edx, [ebp - 0x1028]
push edx
mov byte [ebp - 0x3030], 0
mov ecx, 0x400
lea edi, [ebp - 0x302f]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3030]
push 0x100506fc
push eax
call fcn.10036e11
lea ecx, [ebp - 0x3030]
push 0x100506d0
push ecx
call fcn.10036fe0
add esp, 0x14
test eax, eax
je 0x100208b8
push ecx
lea edx, [ebp - 0x3030]
mov ecx, esp
mov dword [ebp - 0x4060], esp
push edx
mov byte [eax], 0
call fcn.100047c0
push ecx
mov ecx, esp
mov dword [ebp - 0x404c], esp
push str.REAL
mov dword [ebp - 4], 0
call fcn.100047c0
push ecx
mov ecx, esp
mov dword [ebp - 0x405c], esp
push 0x10050713
mov byte [ebp - 4], 1
call fcn.100047c0
mov edi, dword [ebp + 8]
push edi
mov ecx, 0x1005ed60
mov dword [ebp - 4], 0xffffffff
call fcn.1000cbb0
push 0
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x1028]
push ecx
push esi
mov ecx, ebx
mov dword [ebp + 0x14], 0x1000
call fcn.10017520
test eax, eax
je 0x100208b8
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ecx]
lea eax, [ebp - 0x1028]
push eax
push edx
mov ecx, ebx
call fcn.10017640
test eax, eax
je 0x100208b8
lea eax, [ebp - 0x1028]
push str.Content_length:
push eax
call fcn.10036fe0
add esp, 8
test eax, eax
jne 0x1001fd9d
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
push esi
push edi
mov ecx, ebx
call fcn.100176b0
jmp 0x100208ba
lea ecx, [ebp - 0x4064]
push ecx
push str.Content_length:__d
push eax
mov dword [ebp - 0x4064], 0
call fcn.10039290
lea edx, [ebp - 0x1028]
push str._r_n_r_n
push edx
call fcn.10036fe0
add esp, 0x14
test eax, eax
je 0x100208b8
mov ecx, dword [ebp - 0x4064]
lea edx, [ebp - 0x1028]
sub ecx, edx
lea esi, [ecx + eax + 4]
mov ecx, dword [ebp + 0x14]
mov eax, dword [edi]
sub esi, ecx
cmp eax, 2
jne 0x1001fe50
mov eax, dword [ebx + 0x110]
test eax, eax
je 0x1001fe50
test esi, esi
je 0x1001fe50
mov edx, dword [ebp + 0x10]
push 8
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x1028]
push ecx
push edx
mov ecx, ebx
mov dword [ebp + 0x14], esi
call fcn.10017520
test eax, eax
je 0x100208b8
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [edx]
lea ecx, [ebp - 0x1028]
push ecx
push eax
mov ecx, ebx
call fcn.10017640
test eax, eax
je 0x100208b8
mov ecx, dword [ebp + 0x14]
mov eax, dword [edi]
sub esi, ecx
cmp eax, 2
je 0x1001fdf3
xor eax, eax
push eax
mov byte [ebp - 0x202c], 0
mov ecx, 0x400
lea edi, [ebp - 0x202b]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
lea ecx, [ebp + 0x14]
push ecx
lea edx, [ebp - 0x202c]
push edx
push eax
mov ecx, ebx
mov dword [ebp + 0x14], 0x1000
call fcn.10017520
test eax, eax
je 0x100208b8
lea ecx, [ebp - 0x202c]
push str.Transport:
push ecx
call fcn.10036fe0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1001febc
mov edx, dword [edi]
push str.RTSP_1.0_200_OK_r_nCSeq:_5_r_n_r_n
push edx
mov ecx, ebx
call fcn.10017670
jmp 0x100208b8
push 0x100506d0
push esi
call fcn.10036fe0
add esp, 8
test eax, eax
je 0x100208b8
push 0x100506d0
push esi
call fcn.10036fe0
add eax, 2
mov dword [ebp - 0x403c], eax
add esp, 8
lea eax, [esi + 0xb]
push eax
lea ecx, [ebp - 0x4044]
call fcn.100047c0
lea ecx, [ebp - 0x4040]
push ecx
push 0x100506d0
lea edx, [ebp - 0x404c]
xor ebx, ebx
push edx
lea ecx, [ebp - 0x4044]
mov dword [ebp - 4], 2
mov dword [ebp - 0x4040], ebx
call fcn.1000d300
push eax
lea ecx, [ebp - 0x4044]
mov byte [ebp - 4], 3
call fcn.10008ec0
lea ecx, [ebp - 0x404c]
mov byte [ebp - 4], 2
call fcn.10002590
mov dword [ebp - 0x4050], ebx
mov dword [ebp - 0x4058], ebx
mov dword [ebp - 0x4040], ebx
jmp 0x1001ff60
lea eax, [ebp - 0x4040]
push eax
push 0x100523c0
lea ecx, [ebp - 0x4038]
push ecx
lea ecx, [ebp - 0x4044]
call fcn.1000d300
mov edi, dword [ebp - 0x4038]
mov eax, dword [edi - 0xc]
test eax, eax
je 0x100200b8
push 0xe
push str.x_real_rdt_udp
push edi
call fcn.10040b84
add esp, 0xc
test eax, eax
je 0x100200ce
push 0xe
push str.x_real_rdt_tcp
push edi
call fcn.10040b84
add esp, 0xc
test eax, eax
jne 0x1001ffc0
mov ebx, 2
lea ecx, [ebp - 0x4038]
call fcn.10002590
cmp dword [ebp - 0x4040], 0xffffffff
jne 0x1001ff60
mov dword [ebp - 0x4050], ebx
test ebx, ebx
je 0x100208ad
push 0
push 2
push 2
mov byte [ebp - 4], 4
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
push 0
mov dword [ebp - 0x404c], edi
mov dword [ebp - 0x4038], 0x10
mov word [ebp - 0x24], 2
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [ebp - 0x24]
push edx
push edi
mov word [ebp - 0x22], ax
mov dword [ebp - 0x20], 0
call dword [sym.imp.WS2_32.dll_bind]
lea eax, [ebp - 0x4038]
push eax
lea ecx, [ebp - 0x24]
push ecx
push edi
mov edi, dword [sym.imp.WS2_32.dll_getsockname]
call edi
mov edx, dword [ebp - 0x22]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
lea ecx, [ebp - 0x4038]
push ecx
mov dword [ebp - 0x4048], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
push ecx
call edi
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
lea ecx, [ebp - 0x202c]
sub esi, ecx
push esi
mov edx, ecx
mov dword [ebp - 0x405c], eax
push edx
lea eax, [ebp - 0x1028]
push eax
call fcn.10037b30
mov ecx, dword [ebp - 0x403c]
add esp, 0xc
cmp ebx, 1
lea eax, [ebp + esi - 0x1028]
mov byte [eax], 0
push ecx
jne 0x100200fb
mov edx, dword [ebp - 0x4048]
push edx
push str.Transport:_x_real_rdt_udp_client_port_d_modeplay_r_n_s
push eax
call fcn.10036e11
add esp, 0x10
jmp 0x10020109
lea ecx, [ebp - 0x4038]
mov dword [ebp - 0x4050], ebx
call fcn.10002590
jmp 0x1001ffda
add edi, 0x1b
mov ebx, 1
push edi
mov dword [ebp - 0x4050], ebx
call fcn.10036ef1
add esp, 4
lea ecx, [ebp - 0x4038]
mov dword [ebp - 0x4058], eax
call fcn.10002590
jmp 0x1001ffe2
push str.Transport:_x_real_rdt_tcp_modeplay_r_n_s
push eax
call fcn.10036e11
add esp, 0xc
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x4054]
lea edx, [ebp - 0x1028]
push edx
push esi
mov ecx, ebx
call fcn.10017670
test eax, eax
jne 0x10020140
push 0x10058824
lea eax, [ebp - 0x4094]
push eax
mov dword [ebp - 0x4094], 0xffffffff
call fcn.100374b2
push 0
lea ecx, [ebp + 0x14]
push ecx
lea edx, [ebp - 0x202c]
push edx
push esi
mov ecx, ebx
mov dword [ebp + 0x14], 0x1000
call fcn.10017520
test eax, eax
jne 0x1002017b
push 0x10058824
lea eax, [ebp - 0x4088]
push eax
mov dword [ebp - 0x4088], 0xffffffff
call fcn.100374b2
xor eax, eax
mov byte [ebp - 0x4034], 0
mov ecx, 0x400
lea edi, [ebp - 0x4033]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x202c]
xor edi, edi
push ecx
lea ecx, [ebp - 0x4060]
mov dword [ebp - 0x4068], edi
mov dword [ebp - 0x4040], edi
call fcn.100047c0
lea edx, [ebp - 0x4040]
push edx
push 0x100506d0
lea ecx, [ebp - 0x403c]
push ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.1000d300
mov ecx, dword [eax]
lea edx, [ebp - 0x1028]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x100201d7
lea ecx, [ebp - 0x403c]
call fcn.10002590
lea ecx, [ebp - 0x4060]
mov byte [ebp - 4], 4
call fcn.10002590
lea edx, [ebp - 0x1028]
push str.RTSP_1.0_200_OK
push edx
call fcn.1003ebdf
add esp, 8
test eax, eax
je 0x10020242
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
lea eax, [ebp - 0x1028]
push eax
push edx
mov ecx, ebx
call fcn.10017670
push 0x10058824
lea eax, [ebp - 0x409c]
push eax
mov dword [ebp - 0x409c], 0xffffffff
call fcn.100374b2
lea ecx, [ebp - 0x202c]
push str.Session:
push ecx
call fcn.10036fe0
mov esi, eax
add esp, 8
cmp esi, edi
jne 0x10020277
push 0x10058824
lea edx, [ebp - 0x40a4]
push edx
mov dword [ebp - 0x40a4], 0xffffffff
call fcn.100374b2
push 0x100506d0
push esi
call fcn.10036fe0
mov edi, eax
lea eax, [ebp - 0x4034]
push eax
push str.Session:__s
push esi
add edi, 2
call fcn.10039290
push str.Transport:
push edi
call fcn.10036fe0
mov ebx, eax
add esp, 0x1c
test ebx, ebx
jne 0x100202c8
push 0x10058824
lea ecx, [ebp - 0x40ac]
push ecx
mov dword [ebp - 0x40ac], 0xffffffff
call fcn.100374b2
push 0x100506d0
push ebx
call fcn.10036fe0
add esp, 8
add eax, 2
mov dword [ebp - 0x403c], eax
jne 0x100202fc
push 0x10058824
lea edx, [ebp - 0x406c]
push edx
mov dword [ebp - 0x406c], 0xffffffff
call fcn.100374b2
cmp dword [ebp - 0x4050], 1
jne 0x10020355
push str.server_port
push ebx
call fcn.10036fe0
add esp, 8
test eax, eax
jne 0x10020332
push 0x10058824
lea eax, [ebp - 0x40a0]
push eax
mov dword [ebp - 0x40a0], 0xffffffff
call fcn.100374b2
lea ecx, [ebp - 0x4068]
push ecx
push str.server_port_d
push str.server_port
push ebx
call fcn.10036fe0
add esp, 8
push eax
call fcn.10039290
add esp, 0xc
lea edx, [ebp - 0x202c]
sub esi, edx
push esi
mov eax, edx
push eax
lea ecx, [ebp - 0x1028]
push ecx
call fcn.10037b30
lea edx, [ebp - 0x4034]
push edx
lea eax, [ebp + esi - 0x1028]
push str.Session:__s_r_n
push eax
mov byte [eax], 0
call fcn.10036e11
lea esi, [ebp - 0x1028]
add esp, 0x18
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10020395
mov eax, ebx
sub eax, edi
push eax
sub esi, ecx
lea ecx, [ebp + esi - 0x1028]
push edi
push ecx
call fcn.10037b30
mov eax, dword [ebp - 0x4050]
sub esi, edi
add esi, ebx
add esp, 0xc
cmp eax, 1
lea eax, [ebp - 0x1028]
mov byte [ebp + esi - 0x1028], 0
lea edx, [eax + 1]
jne 0x10020410
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100203d4
mov ecx, dword [ebp - 0x4048]
sub eax, edx
mov edx, dword [ebp - 0x403c]
push edx
mov edx, dword [ebp - 0x4058]
push ecx
push edx
lea eax, [ebp + eax - 0x1028]
push str.Transport:_x_real_rdt_udp_client_port_d_server_port_d_r_n_s
push eax
call fcn.10036e11
add esp, 0x14
jmp 0x10020435
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10020410
mov ecx, dword [ebp - 0x403c]
push ecx
sub eax, edx
lea edx, [ebp + eax - 0x1028]
push str.Transport:_x_real_rdt_tcp_interleaved0_r_n_s
push edx
call fcn.10036e11
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x4054]
lea eax, [ebp - 0x1028]
push eax
push edx
call fcn.10017670
xor ebx, ebx
cmp eax, ebx
jne 0x1002046e
push 0x10058824
lea eax, [ebp - 0x4078]
push eax
mov dword [ebp - 0x4078], 0xffffffff
call fcn.100374b2
mov dword [ebp - 0x40b4], 1
mov dword [ebp - 0x40b0], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [ebp - 0x404c]
mov dword [ebp - 0x4048], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx], 2
jne 0x1002087e
mov edx, dword [ebp - 0x4054]
cmp dword [edx + 0x110], ebx
je 0x1002087e
mov edx, dword [ebp + 0x10]
xor eax, eax
mov dword [ebp - 0x41b8], eax
xor ecx, ecx
jmp 0x100204c0
cmp ecx, eax
jae 0x100204d2
cmp dword [ebp + ecx*4 - 0x41b4], edx
je 0x100204d0
inc ecx
jmp 0x100204c0
cmp ecx, eax
jne 0x100204ed
cmp eax, 0x40
jae 0x100204ed
mov dword [ebp + ecx*4 - 0x41b4], edx
mov eax, dword [ebp - 0x41b8]
inc eax
mov dword [ebp - 0x41b8], eax
mov edx, dword [ebp + 0xc]
xor ecx, ecx
cmp ecx, eax
jae 0x10020506
mov esi, dword [ebp + ecx*4 - 0x41b4]
cmp esi, dword [edx]
je 0x10020504
inc ecx
jmp 0x100204f2
cmp ecx, eax
jne 0x10020523
cmp eax, 0x40
jae 0x10020523
mov eax, dword [edx]
mov dword [ebp + ecx*4 - 0x41b4], eax
mov eax, dword [ebp - 0x41b8]
inc eax
mov dword [ebp - 0x41b8], eax
xor ecx, ecx
cmp ecx, eax
jae 0x10020537
cmp dword [ebp + ecx*4 - 0x41b4], edi
je 0x10020535
inc ecx
jmp 0x10020525
cmp ecx, eax
jne 0x1002054b
cmp eax, 0x40
jae 0x1002054b
mov dword [ebp + ecx*4 - 0x41b4], edi
inc dword [ebp - 0x41b8]
lea ecx, [ebp - 0x40b4]
push ecx
push ebx
push ebx
lea edx, [ebp - 0x41b8]
push edx
push 0xffffffffffffffff
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
cmp esi, ebx
jne 0x100205b2
cmp dword [0x1005c168], ebx
jle 0x10020490
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x1005c168]
mov esi, dword [ebp - 0x4048]
imul ecx, ecx, 0x3e8
sub eax, esi
cmp eax, ecx
jle 0x10020490
push 0x10058824
lea edx, [ebp - 0x4098]
push edx
mov dword [ebp - 0x4098], 0xffffffff
call fcn.100374b2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp esi, ebx
mov dword [ebp - 0x4048], eax
jge 0x100205d7
lea ecx, [ebp - 0x4044]
call fcn.10002590
mov eax, 0xa
jmp 0x100208ba
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x41b8]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100206a3
push ebx
lea ecx, [ebp + 0x14]
push ecx
lea edx, [ebp - 0x1028]
push edx
push esi
mov esi, dword [ebp - 0x4054]
mov ecx, esi
mov dword [ebp + 0x14], 0x1000
mov byte [ebp - 0x1028], 0
call fcn.10017520
cmp eax, ebx
jne 0x10020651
cmp dword [ebp + 0x14], ebx
push 0x10058824
jne 0x1002063b
lea eax, [ebp - 0x4080]
push eax
mov dword [ebp - 0x4080], 0xffffffff
call fcn.100374b2
lea ecx, [ebp - 0x4084]
push ecx
mov dword [ebp - 0x4084], 0xffffffff
call fcn.100374b2
mov eax, dword [ebp + 0x14]
cmp eax, ebx
jbe 0x1002068f
push eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
lea edx, [ebp - 0x1028]
push edx
push ecx
mov ecx, esi
call fcn.10017640
cmp eax, ebx
jne 0x1002068c
push 0x10058824
lea edx, [ebp - 0x408c]
push edx
mov dword [ebp - 0x408c], 0xffffffff
call fcn.100374b2
mov eax, dword [ebp + 0x14]
push 1
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.1000b5f0
add esp, 0xc
jmp 0x10020490
mov esi, dword [ebp + 0xc]
mov edx, dword [esi]
lea ecx, [ebp - 0x41b8]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10020770
mov edx, dword [esi]
mov esi, dword [ebp - 0x4054]
push ebx
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x1028]
push ecx
push edx
mov ecx, esi
mov dword [ebp + 0x14], 0x1000
mov byte [ebp - 0x1028], 0
call fcn.10017520
cmp eax, ebx
jne 0x10020721
cmp dword [ebp + 0x14], ebx
push 0x10058824
jne 0x1002070b
lea eax, [ebp - 0x40a8]
push eax
mov dword [ebp - 0x40a8], 0xffffffff
call fcn.100374b2
lea ecx, [ebp - 0x4090]
push ecx
mov dword [ebp - 0x4090], 0xffffffff
call fcn.100374b2
mov eax, dword [ebp + 0x14]
cmp eax, ebx
jbe 0x1002075d
push eax
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x1028]
push edx
push eax
mov ecx, esi
call fcn.10017640
cmp eax, ebx
jne 0x1002075a
push 0x10058824
lea ecx, [ebp - 0x4070]
push ecx
mov dword [ebp - 0x4070], 0xffffffff
call fcn.100374b2
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
push ebx
push eax
push edx
call fcn.1000b5f0
add esp, 0xc
jmp 0x10020490
lea eax, [ebp - 0x41b8]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10020490
lea ecx, [ebp - 0x4038]
push ecx
lea edx, [ebp - 0x24]
push edx
push ebx
push 0x1000
lea eax, [ebp - 0x1028]
push eax
push edi
mov dword [ebp + 0x14], 0x1000
mov byte [ebp - 0x1028], 0
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, ebx
mov dword [ebp + 0x14], eax
jbe 0x10020490
mov ecx, dword [ebp - 0x4058]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push ecx
call esi
cmp word [ebp - 0x22], ax
jne 0x1002082d
mov edx, dword [ebp - 0x405c]
cmp dword [ebp - 0x20], edx
jne 0x1002082d
mov eax, dword [ebp - 0x4068]
push eax
mov word [ebp - 0x24], 2
call esi
mov edx, dword [ebp - 0x4038]
mov ecx, dword [ebp - 0x4074]
push edx
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x24]
push eax
push ebx
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x1028]
push edx
push edi
call dword [sym.imp.WS2_32.dll_sendto]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
push ebx
push eax
push ecx
call fcn.1000b5f0
add esp, 0xc
jmp 0x10020490
mov edx, dword [ebp - 0x4058]
push edx
mov word [ebp - 0x24], 2
call esi
mov ecx, dword [ebp - 0x4038]
push ecx
mov word [ebp - 0x22], ax
mov eax, dword [ebp - 0x405c]
lea edx, [ebp - 0x24]
push edx
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x1028]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_sendto]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push 1
push edx
push eax
call fcn.1000b5f0
add esp, 0xc
jmp 0x10020490
push 0x10058824
lea ecx, [ebp - 0x407c]
push ecx
mov dword [ebp - 0x407c], ebx
call fcn.100374b2
mov eax, dword [ebp - 0x404c]
cmp eax, 0xffffffff
je 0x100208a7
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x100208ad
ret
lea ecx, [ebp - 0x4044]
call fcn.10002590
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.10036c09
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10