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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x464], eax
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x468], edx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x46c], ecx
mov dword [ebp - 0x3e4], 0x80c9e4
mov dword [ebp - 0x3e0], 0x98d520
lea eax, [ebp - 0x18]
mov dword [ebp - 0x3dc], eax
mov dword [ebp - 0x3d8], 0x8a394d
mov dword [ebp - 0x3d4], esp
lea eax, [ebp - 0x3fc]
mov dword [esp], eax
call fcn.0080f6e4
mov edx, dword [ebp - 0x468]
cmp dword [edx], 0xffffffff
jne 0x8a1ed1
mov dword [ebp - 0x400], 0
lea eax, [ebp - 0x400]
mov dword [esp + 0xc], eax
mov dword [ebp - 0x404], 0x2719
lea eax, [ebp - 0x404]
mov dword [esp + 8], eax
mov ecx, dword [ebp + 0x18]
mov dword [esp + 4], ecx
lea eax, [ebp - 0x58]
mov dword [esp], eax
mov dword [ebp - 0x3f8], 0xffffffff
call fcn.0087d494
sub esp, 4
mov edx, dword [ebp - 0x464]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x58]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [ebp - 0x3f8], 0x23
call fcn.0086c8a8
jmp 0x8a1e84
cmp dword [ebp - 0x24], 0
je 0x8a3ba0
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x480], edx
mov eax, 0xffffffff
lock xadd dword [edx + 4], eax
cmp eax, 1
jne 0x8a3ba0
mov eax, dword [edx]
mov dword [esp], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x3f8], 0xffffffff
call eax
mov ecx, dword [ebp - 0x480]
mov dword [esp], ecx
call fcn.008b126c
jmp 0x8a3ba0
mov eax, dword [ebp - 0x468]
cmp dword [eax + 0x9c], 0
jne 0x8a1efd
mov dword [ebp - 0x3f8], 0xffffffff
call sub.KERNEL32.dll_GetCurrentThreadId
mov edx, dword [ebp - 0x468]
mov dword [edx + 0x9c], eax
jmp 0x8a1f24
mov dword [ebp - 0x3f8], 0xffffffff
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [ebp - 0x468]
cmp dword [ecx + 0x9c], eax
je 0x8a1f24
mov dword [ecx + 0x9c], 0xffffffff
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], eax
lea edx, [ebp - 0x68]
mov dword [esp], edx
mov dword [ebp - 0x3f8], 0xffffffff
call fcn.00880034
mov dword [ebp - 0x408], 1
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x18], ecx
mov eax, dword [ebp - 0x46c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x468]
add eax, 0x8c
mov dword [esp + 0x10], eax
mov edx, dword [ebp - 0x464]
mov eax, dword [edx + 0x14]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x408]
mov dword [esp + 8], eax
lea ecx, [ebp - 0x68]
mov dword [esp + 4], ecx
lea eax, [ebp - 0x78]
mov dword [esp], eax
mov dword [ebp - 0x3f8], 0x22
call fcn.00874c00
lea ebx, [ebp - 0x2b8]
mov edx, dword [ebp - 0x46c]
movzx eax, byte [edx + 8]
mov esi, edx
add esi, 0xc
mov ecx, dword [edx + 0x14]
mov dword [ebp - 0x484], ecx
add edx, 8
mov dword [ebp - 0x488], edx
mov edx, dword [ebp - 0x46c]
mov ecx, dword [edx + 0x18]
test ecx, ecx
jne 0x8a1fd3
mov al, 1
mov byte [ebx], al
mov edx, dword [esi]
mov eax, dword [esi + 4]
cmp eax, ecx
jb 0x8a1fe0
mov eax, ecx
mov dword [ebp - 0x418], edx
mov dword [ebp - 0x414], eax
mov eax, dword [ebp - 0x418]
mov edx, dword [ebp - 0x414]
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x40c], edx
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov eax, dword [ebp - 0x484]
mov dword [ebx + 0xc], eax
mov edx, dword [ebp - 0x488]
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], ecx
mov eax, dword [ebp - 0x2b8]
mov dword [ebp - 0x298], eax
mov eax, dword [ebp - 0x2b4]
mov dword [ebp - 0x294], eax
mov eax, dword [ebp - 0x2b0]
mov dword [ebp - 0x290], eax
mov eax, dword [ebp - 0x2ac]
mov dword [ebp - 0x28c], eax
mov eax, dword [ebp - 0x2a8]
mov dword [ebp - 0x288], eax
mov eax, dword [ebp - 0x2a4]
mov dword [ebp - 0x284], eax
mov eax, dword [ebp - 0x2a0]
mov dword [ebp - 0x280], eax
mov byte [ebp - 0x2d8], 1
mov dword [ebp - 0x2d4], 0
mov dword [ebp - 0x2d0], 0
mov eax, dword [ebp - 0x2d8]
mov dword [ebp - 0x2b8], eax
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 0
mov eax, dword [ebp - 0x2cc]
mov dword [ebp - 0x2ac], eax
mov eax, dword [ebp - 0x2c8]
mov dword [ebp - 0x2a8], eax
mov eax, dword [ebp - 0x2c4]
mov dword [ebp - 0x2a4], eax
mov eax, dword [ebp - 0x2c0]
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x48c], 0
mov dword [ebp - 0x490], 0
jmp 0x8a2164
lea ecx, [ebp - 0x298]
mov dword [esp], ecx
mov dword [ebp - 0x3f8], 0x21
call fcn.0090015c
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x41c], edx
mov eax, dword [ebp - 0x41c]
mov edx, dword [ebp - 0x48c]
mov dword [ebp + edx*8 - 0x278], eax
mov eax, dword [ebp - 0x420]
mov dword [ebp + edx*8 - 0x274], eax
mov ecx, dword [ebp - 0x41c]
add dword [ebp - 0x490], ecx
lea eax, [ebp - 0x298]
mov dword [esp], eax
call fcn.00859d90
inc dword [ebp - 0x48c]
lea eax, [ebp - 0x2b8]
mov dword [esp + 4], eax
lea edx, [ebp - 0x298]
mov dword [esp], edx
mov dword [ebp - 0x3f8], 0x21
call fcn.008ead50
test al, al
je 0x8a2197
cmp dword [ebp - 0x48c], 0x3f
jbe 0x8a20fb
cmp dword [ebp - 0x490], 0
jne 0x8a2d7e
mov ecx, dword [ebp - 0x464]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x2e8], eax
mov eax, dword [eax + 0x10]
add eax, 0x18
mov dword [esp], eax
mov dword [ebp - 0x3f8], 0x21
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
lea eax, [ebp - 0x78]
mov dword [esp], eax
mov dword [ebp - 0x3f8], 0x20
call fcn.00874ba8
mov dword [ebp - 0x428], 0
call fcn.007b0de4
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x42c], 0
lea eax, [ebp - 0x42c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x428]
mov dword [esp + 8], eax
mov edx, dword [ebp + 0x18]
mov dword [esp + 4], edx
lea ecx, [ebp - 0x338]
mov dword [esp], ecx
call fcn.0087d534
sub esp, 4
lea eax, [ebp - 0x338]
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x464]
mov eax, dword [edx + 0x14]
mov dword [esp], eax
mov dword [ebp - 0x3f8], 0x1f
call fcn.00896b8c
jmp 0x8a22be
cmp dword [ebp - 0x304], 0
je 0x8a2304
mov edx, dword [ebp - 0x304]
mov dword [ebp - 0x49c], edx
mov eax, 0xffffffff
lock xadd dword [edx + 4], eax
cmp eax, 1
jne 0x8a2304
mov eax, dword [edx]
mov dword [esp], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x3f8], 0x20
call eax
mov ecx, dword [ebp - 0x49c]
mov dword [esp], ecx
call fcn.008b126c
mov eax, dword [ebp - 0x2e8]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x4d4], eax
add eax, 0x18
mov dword [esp], eax
mov dword [ebp - 0x3f8], 0x21
call sub.KERNEL32.dll_InterlockedDecrement
sub esp, 4
test eax, eax
jne 0x8a281b
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x4d4]
add eax, 0x20
mov dword [esp], eax
call sub.KERNEL32.dll_InterlockedExchange
sub esp, 8
test eax, eax
jne 0x8a281b
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov edx, dword [ebp - 0x4d4]
mov eax, dword [edx + 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_PostQueuedCompletionStatus
sub esp, 0x10
test eax, eax
jne 0x8a281b
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x4d8], eax
call fcn.007b0de4
mov ecx, dword [ebp - 0x4d8]
mov dword [ebp - 0x438], ecx
lea edx, [ebp - 0x438]
mov dword [edx + 4], eax
lea eax, [ebp - 0x358]
mov dword [esp], eax
call fcn.00922308
lea edx, [ebp - 0x358]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x9b0abb
lea ecx, [ebp - 0x368]
mov dword [esp], ecx
mov dword [ebp - 0x3f8], 0x17
call fcn.0092bb18
lea eax, [ebp - 0x368]
mov dword [esp + 4], eax
lea edx, [ebp - 0x2d8]
mov dword [esp], edx
mov dword [ebp - 0x3f8], 0x16
call fcn.00810f24
jmp 0x8a24e3
mov ecx, dword [ebp - 0x368]
mov dword [ebp - 0x4ec], ecx
sub ecx, 0xc
mov dword [ebp - 0x4e8], ecx
lea eax, [ebp - 0x368]
mov dword [esp + 4], eax
lea edx, [ebp - 0x348]
mov dword [esp], edx
call fcn.009222f8
cmp dword [ebp - 0x4e8], 0x9aba1c
je 0x8a258c
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x4ec]
sub eax, 4
mov dword [esp], eax
mov dword [ebp - 0x3f8], 0x14
call fcn.00815de4
test eax, eax
jg 0x8a258c
lea ecx, [ebp - 0x348]
mov dword [esp + 4], ecx
mov eax, dword [ebp - 0x4e8]
mov dword [esp], eax
call fcn.00929958
jmp 0x8a258c
lea eax, [ebp - 0x348]
mov dword [esp], eax
call fcn.00922338
lea ecx, [ebp - 0x368]
mov dword [esp], ecx
call fcn.00922348
lea eax, [ebp - 0x358]
mov dword [esp], eax
call fcn.00922338
mov dword [ebp - 0x2d8], 0x9efcb8
mov eax, dword [ebp - 0x438]
mov edx, dword [ebp - 0x434]
mov dword [ebp - 0x2d0], eax
mov dword [ebp - 0x2cc], edx
lea eax, [ebp - 0x2d8]
add eax, 0x10
mov dword [esp], eax
call fcn.0092be78
lea eax, [ebp - 0x2d8]
mov dword [esp], eax
mov dword [ebp - 0x3f8], 0x13
call fcn.0085a120
jmp 0x8a271e
mov dword [ebp - 0x2d8], 0x9efcb8
mov eax, dword [ebp - 0x2c8]
mov dword [ebp - 0x500], eax
sub eax, 0xc
mov dword [ebp - 0x4fc], eax
lea edx, [ebp - 0x2c8]
mov dword [esp + 4], edx
lea ecx, [ebp - 0x368]
mov dword [esp], ecx
call fcn.009222f8
cmp dword [ebp - 0x4fc], 0x9aba1c
je 0x8a27a0
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x500]
sub eax, 4
mov dword [esp], eax
mov dword [ebp - 0x3f8], 0x11
call fcn.00815de4
test eax, eax
jg 0x8a27a0
lea eax, [ebp - 0x368]
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x4fc]
mov dword [esp], edx
call fcn.00929958
lea eax, [ebp - 0x368]
mov dword [esp], eax
call fcn.00922338
lea ecx, [ebp - 0x2c8]
mov dword [esp], ecx
call fcn.00922348
lea eax, [ebp - 0x2d8]
mov dword [esp], eax
call fcn.00810d74
jmp 0x8a281b
lea eax, [ebp - 0x78]
mov dword [esp], eax
mov dword [ebp - 0x3f8], 0x22
call fcn.00874ebc
lea eax, [ebp - 0x68]
mov dword [esp], eax
mov dword [ebp - 0x3f8], 0xffffffff
call fcn.008800d0
jmp 0x8a3ba0
mov dword [ebp - 0x448], 0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x444], eax
lea edx, [ebp - 0x78]
mov dword [esp], edx
mov dword [ebp - 0x3f8], 0x21
call fcn.009036b4
mov ecx, dword [ebp - 0x468]
mov edx, dword [ecx]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x444]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x448]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x48c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x278]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.WS2_32.DLL_WSARecv
sub esp, 0x1c
mov dword [ebp - 0x504], eax
call sub.WSOCK32.DLL_WSAGetLastError
mov dword [ebp - 0x508], eax
cmp dword [ebp - 0x504], 0
setne dl
cmp eax, 0x3e5
setne al
test dl, al
je 0x8a3b19
mov edx, dword [ebp - 0x464]
mov eax, dword [edx + 4]
mov dword [ebp - 0x378], eax
mov eax, dword [eax + 0x10]
add eax, 0x18
mov dword [esp], eax
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
lea ecx, [ebp - 0x78]
mov dword [esp], ecx
mov dword [ebp - 0x3f8], 0x10
call fcn.00874ba8
call fcn.007b0de4
mov edx, dword [ebp - 0x508]
mov dword [ebp - 0x450], edx
mov dword [ebp - 0x44c], eax
lea eax, [ebp - 0x448]
mov dword [esp + 0xc], eax
lea ecx, [ebp - 0x450]
mov dword [esp + 8], ecx
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], eax
lea edx, [ebp - 0x3c8]
mov dword [esp], edx
call fcn.0087d684
sub esp, 4
lea ecx, [ebp - 0x3c8]
mov dword [esp + 4], ecx
mov edx, dword [ebp - 0x464]
mov eax, dword [edx + 0x14]
mov dword [esp], eax
mov dword [ebp - 0x3f8], 0xf
call fcn.008971d0
jmp 0x8a2f1d
cmp dword [ebp - 0x394], 0
je 0x8a34a4
mov edx, dword [ebp - 0x394]
mov dword [ebp - 0x514], edx
mov eax, 0xffffffff
lock xadd dword [edx + 4], eax
cmp eax, 1
jne 0x8a34a4
mov eax, dword [edx]
mov dword [esp], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x3f8], 0x10
call eax
mov ecx, dword [ebp - 0x514]
mov dword [esp], ecx
call fcn.008b126c
jmp 0x8a34a4
mov eax, dword [ebp - 0x378]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x54c], eax
add eax, 0x18
mov dword [esp], eax
mov dword [ebp - 0x3f8], 0x21
call sub.KERNEL32.dll_InterlockedDecrement
sub esp, 4
test eax, eax
jne 0x8a3b47
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x54c]
add eax, 0x20
mov dword [esp], eax
call sub.KERNEL32.dll_InterlockedExchange
sub esp, 8
test eax, eax
jne 0x8a3b47
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov ecx, dword [ebp - 0x54c]
mov eax, dword [ecx + 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_PostQueuedCompletionStatus
sub esp, 0x10
test eax, eax
jne 0x8a3b47
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x550], eax
call fcn.007b0de4
mov edx, dword [ebp - 0x550]
mov dword [ebp - 0x460], edx
lea edx, [ebp - 0x460]
mov dword [edx + 4], eax
lea ecx, [ebp - 0x338]
mov dword [esp], ecx
call fcn.00922308
lea eax, [ebp - 0x338]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x9b0abb
lea edx, [ebp - 0x348]
mov dword [esp], edx
mov dword [ebp - 0x3f8], 7
call fcn.0092bb18
lea ecx, [ebp - 0x348]
mov dword [esp + 4], ecx
lea eax, [ebp - 0x368]
mov dword [esp], eax
mov dword [ebp - 0x3f8], 6
call fcn.00810f24
jmp 0x8a3683
mov edx, dword [ebp - 0x348]
mov dword [ebp - 0x564], edx
sub edx, 0xc
mov dword [ebp - 0x560], edx
lea ecx, [ebp - 0x348]
mov dword [esp + 4], ecx
lea eax, [ebp - 0x328]
mov dword [esp], eax
call fcn.009222f8
cmp dword [ebp - 0x560], 0x9aba1c
je 0x8a372c
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x564]
sub eax, 4
mov dword [esp], eax
mov dword [ebp - 0x3f8], 4
call fcn.00815de4
test eax, eax
jg 0x8a372c
lea edx, [ebp - 0x328]
mov dword [esp + 4], edx
mov ecx, dword [ebp - 0x560]
mov dword [esp], ecx
call fcn.00929958
jmp 0x8a372c
lea eax, [ebp - 0x328]
mov dword [esp], eax
call fcn.00922338
lea edx, [ebp - 0x348]
mov dword [esp], edx
call fcn.00922348
lea eax, [ebp - 0x338]
mov dword [esp], eax
call fcn.00922338
mov dword [ebp - 0x368], 0x9efcb8
mov eax, dword [ebp - 0x460]
mov edx, dword [ebp - 0x45c]
mov dword [ebp - 0x360], eax
mov dword [ebp - 0x35c], edx
lea eax, [ebp - 0x368]
add eax, 0x10
mov dword [esp], eax
call fcn.0092be78
lea eax, [ebp - 0x368]
mov dword [esp], eax
mov dword [ebp - 0x3f8], 3
call fcn.0085a120
jmp 0x8a38be
mov dword [ebp - 0x368], 0x9efcb8
mov ecx, dword [ebp - 0x358]
mov dword [ebp - 0x578], ecx
sub ecx, 0xc
mov dword [ebp - 0x574], ecx
lea eax, [ebp - 0x358]
mov dword [esp + 4], eax
lea edx, [ebp - 0x348]
mov dword [esp], edx
call fcn.009222f8
cmp dword [ebp - 0x574], 0x9aba1c
je 0x8a3aa2
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x578]
sub eax, 4
mov dword [esp], eax
mov dword [ebp - 0x3f8], 1
call fcn.00815de4
test eax, eax
jg 0x8a3aa2
lea ecx, [ebp - 0x348]
mov dword [esp + 4], ecx
mov eax, dword [ebp - 0x574]
mov dword [esp], eax
call fcn.00929958
jmp 0x8a3aa2
lea eax, [ebp - 0x348]
mov dword [esp], eax
call fcn.00922338
lea eax, [ebp - 0x358]
mov dword [esp], eax
call fcn.00922348
lea edx, [ebp - 0x368]
mov dword [esp], edx
call fcn.00810d74
jmp 0x8a3b47
lea eax, [ebp - 0x78]
mov dword [esp], eax
mov dword [ebp - 0x3f8], 0x21
call fcn.00874bec
jmp 0x8a3b47
lea eax, [ebp - 0x78]
mov dword [esp], eax
mov dword [ebp - 0x3f8], 0x22
call fcn.00874ebc
jmp 0x8a3b8b
lea eax, [ebp - 0x68]
mov dword [esp], eax
mov dword [ebp - 0x3f8], 0xffffffff
call fcn.008800d0
lea eax, [ebp - 0x3fc]
mov dword [esp], eax
call fcn.0080f7c4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret