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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2cf3
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x50c7c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
mov dword [edx], 0
mov dword [eax], 0
mov dword [ebp - 0x60], eax
mov eax, ebx
mov dword [ecx], 0
mov dword [esi], 0
mov dword [ebp - 0x74], esi
xor esi, esi
mov dword [eax], 0
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x6c], ebx
mov dword [edi], 0
mov dword [ebp - 0x78], esi
mov ebx, dword [ebp - 0x50]
mov dword [ebp - 4], esi
lea ecx, [ebx + 0xce0]
call fcn.0049af80
mov edi, eax
test edi, edi
jne 0x49a68f
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [ebx + 0xce8]
call edi
cmp eax, 0xffffffff
je 0x49a2ec
push 0xffffffffffffffff
push dword [ebx + 0xce0]
call edi
cmp eax, 0xffffffff
jne 0x49a2fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x49a306
jmp 0x49a68f
mov esi, dword [ebx + 0xce0]
mov dword [ebp - 0x78], esi
lea edi, [ebx + 8]
mov ecx, edi
mov dword [ebp - 0x54], edi
call fcn.0049ad60
cmp dword [edi], 0
jne 0x49a322
mov edi, 0x2749
jmp 0x49a68f
mov eax, dword [ebx + 0xce4]
lea ecx, [ebx + 0x10]
mov dword [ecx], eax
lea eax, [ebx + 4]
push dword [ebx + 0xcf8]
push ecx
push eax
mov eax, dword [edi]
inc eax
push eax
call fcn.0049a6c0
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x49a355
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
jmp 0x49a68f
cmp ecx, 0x102
jne 0x49a367
mov ebx, 0x5b4
jmp 0x49a671
test ecx, ecx
je 0x49a66f
dec ecx
lea edi, [ebx + 0x110]
mov dword [ebp - 0x58], ecx
lea eax, [ecx + ecx*2]
shl eax, 4
add edi, eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebx + ecx*4 + 0x14]
mov dword [ebp - 0x5c], edi
push dword [edi]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp eax, 0xffffffff
jne 0x49a3b1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
mov ebx, eax
call fcn.0049ae90
jmp 0x49a671
cmp dword [edi + 0x28], 0
mov ecx, dword [ebp - 0x3c]
je 0x49a3c0
and ecx, 0x20
mov dword [ebp - 0x3c], ecx
cmp dword [edi + 0x24], 0
je 0x49a3d4
test cl, 0x20
je 0x49a3d4
or ecx, 0x100000
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x60]
mov dword [eax], ecx
test cl, 8
je 0x49a4a5
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
jne 0x49a671
mov ebx, dword [ebp - 0x50]
lea eax, [ebp - 0x60]
push ebx
push 0x49a730
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x60], 0x10
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_WSAAccept]
mov edi, eax
cmp edi, 0xffffffff
jne 0x49a421
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
jmp 0x49a671
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [ebp - 0x5c], eax
test eax, eax
jne 0x49a442
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
mov ebx, eax
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x49a671
push 0x3ff
push eax
push edi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x49a471
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
mov ebx, eax
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [ebp - 0x5c]
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
jmp 0x49a671
push dword [ebp - 0x5c]
lea ecx, [ebx + 8]
push edi
call fcn.0049ac10
mov ecx, dword [ebp - 0x48]
mov edi, eax
mov dword [ebp - 0x5c], edi
mov dword [edi + 4], ecx
mov ecx, ebx
call fcn.0049abe0
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], edx
test byte [ebx + 0xc], 2
mov ecx, dword [ebp - 0x3c]
je 0x49a4a5
mov dword [ebx + 0xc], 3
mov edx, dword [ebp - 0x70]
mov eax, dword [edi]
mov dword [edx], eax
mov edx, dword [ebp - 0x64]
mov eax, dword [edi + 4]
mov dword [edx], eax
test cl, 0x10
je 0x49a4f0
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x49a4d0
push dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
call fcn.0049ae90
jmp 0x49a671
mov ebx, dword [ebp - 0x50]
mov ecx, ebx
call fcn.0049abe0
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], edx
test byte [ebx + 0xc], 4
mov ecx, dword [ebp - 0x3c]
je 0x49a4f0
mov dword [ebx + 0xc], 5
test cl, 1
je 0x49a5cc
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x49a510
push dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
call fcn.0049ae90
jmp 0x49a671
mov ebx, dword [ebp - 0x50]
push 0
push 0
mov dword [ebp - 0x64], 0
mov eax, dword [ebx + 0xcec]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0x10000
push 1
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x49a56f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
je 0x49a56c
test ebx, ebx
je 0x49a56c
push dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
call fcn.0049ae90
jmp 0x49a671
mov ebx, dword [ebp - 0x50]
cmp dword [edi + 0x2c], 0
jne 0x49a5a1
push 0xc
call fcn.004a7933
add esp, 4
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x49a598
push 0x10000
mov ecx, eax
call fcn.0049b090
jmp 0x49a59a
xor eax, eax
mov byte [ebp - 4], 0
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 0x74]
mov ecx, dword [edi + 0x2c]
push dword [eax]
push dword [ebx + 0xcec]
call fcn.0049b0c0
mov ecx, ebx
call fcn.0049abe0
mov ecx, dword [ebp - 0x68]
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x2c]
mov dword [edi + 0x1c], edx
mov dword [ecx], eax
mov ecx, dword [ebp - 0x3c]
test cl, 2
je 0x49a65c
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x49a5ec
push dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
call fcn.0049ae90
jmp 0x49a671
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x49a64b
mov eax, dword [ebp - 0x5c]
lea ebx, [edi + 0x10]
mov edi, dword [ebx]
push dword [eax + 0xc]
push ebx
push ecx
push dword [eax]
call fcn.0049a8b0
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebx]
sub eax, edi
mov edi, dword [ebp - 0x5c]
mov dword [ecx], eax
mov eax, dword [ebx]
cmp eax, dword [edi + 0xc]
jne 0x49a62f
push dword [edi + 8]
call fcn.004a78e3
add esp, 4
mov dword [edi + 8], 0
mov ebx, dword [ebp - 0x68]
cmp ebx, 0x2733
je 0x49a64b
test ebx, ebx
je 0x49a64b
push dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
call fcn.0049ae90
jmp 0x49a671
mov ecx, dword [ebp - 0x50]
call fcn.0049abe0
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], edx
mov ecx, dword [ebp - 0x3c]
test cl, 0x20
je 0x49a66f
mov dword [edi + 0x20], 1
mov ebx, dword [ebp - 0x24]
test ebx, ebx
jne 0x49a671
xor ebx, ebx
mov ecx, dword [ebp - 0x50]
mov eax, dword [ecx + 0xcf0]
or eax, dword [ecx + 0xcf4]
je 0x49a68d
call fcn.0049a750
mov edi, eax
test edi, edi
jne 0x49a68f
mov edi, ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret 0x18