Function at 0x10001c11
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push dword [esi + 0xa0]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edx, dword [esi + 0x18]
cmp edx, ebx
jle 0x10001cf6
mov eax, dword [esi + 0x1c]
cmp eax, ebx
jl 0x10001cf4
cmp edx, eax
jle 0x10001cdd
cmp dword [ebp + 0x10], ebx
je 0x10001c72
cmp dword [esi + 0x24], 3
jne 0x10001cf4
mov eax, dword [esi + 0x8c]
test al, 1
jne 0x10001c85
inc eax
jmp 0x10001c7f
mov eax, dword [esi + 0x8c]
test al, 2
jne 0x10001c85
add eax, 2
mov dword [esi + 0x8c], eax
cmp dword [ebp - 4], ebx
jne 0x10001d42
test byte [esi + 0x8c], 4
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
je 0x10001cb5
push 2
push dword [esi]
push 0x401
push dword [0x1005b218]
call edi
add dword [esi + 0x8c], 0xfffffffc
test byte [esi + 0x8c], 8
je 0x10001d42
push 2
push dword [esi + 4]
push 0x402
push dword [0x1005b218]
call edi
add dword [esi + 0x8c], 0xfffffff8
jmp 0x10001d42
push dword [esi + 0x14]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
push ebx
push dword [esi + 0x10]
call fcn.10017bc0
add esp, 0xc
jmp 0x10001d42
cmp edx, ebx
jl 0x10001d3a
mov eax, dword [esi + 0x14]
cmp edx, eax
jge 0x10001d3a
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
je 0x10001d3a
add ecx, edx
sub eax, edx
mov dword [esi + 0x7c], ecx
lea ecx, [esi + 0x78]
push ebx
push ebx
mov dword [ecx], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 1
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x10001d49
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10001d42
push dword [esi]
call fcn.10003950
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 8]
cmp eax, ebx
jbe 0x10001d53
mov dword [esi + 0x18], eax
mov edi, 0x1005b1e8
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x24]
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp + 8], 5
jne 0x10001e08
mov eax, dword [esi + 0x10]
cmp byte [eax], 5
je 0x10001d8a
cmp byte [eax + 1], 3
je 0x10001d8a
cmp byte [eax + 3], 1
jne 0x10001d3a
mov ecx, dword [eax + 4]
lea edi, [ebp - 0x17]
mov dword [esi + 0x4c], ecx
mov ax, word [eax + 8]
mov word [esi + 0x4a], ax
xor eax, eax
mov byte [ebp - 0x18], bl
push 0xb
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.10017bc0
push dword [esi + 0x14]
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x14], eax
mov ax, word [esi + 0x5a]
push ebx
mov byte [ebp - 0x18], 5
push dword [esi + 0x10]
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], 1
mov word [ebp - 0x10], ax
call fcn.10017bc0
push 0xa
lea eax, [ebp - 0x18]
pop edi
push edi
push eax
push dword [esi + 0x10]
call fcn.10018130
mov eax, dword [esi + 0x10]
push 0x12c
push esi
mov byte [eax + 0xa], bl
mov dword [esi + 0x18], edi
mov dword [esi + 0x24], 3
call fcn.100037a3
add esp, 0x2c
jmp 0x10001e1b
cmp dword [ebp + 8], 3
jne 0x10001e1b
push 0x12c
push esi
call fcn.100037a3
pop ecx
pop ecx
push 1
pop eax
jmp 0x10001d44