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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e6d80
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x10144930]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, ecx
mov dword [ebp - 0x24], edx
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], eax
xor bl, bl
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
cmp edi, eax
je 0x10063548
mov ecx, dword [ebp + 0xc]
cmp ecx, eax
je 0x10063548
cmp dword [edx + 0x2998], eax
je 0x10063548
mov ecx, dword [ecx]
mov dword [ebp + 8], ecx
cmp ecx, 0x200
jle 0x100632d2
mov dword [ebp - 0x34], edi
xor esi, esi
mov dword [ebp - 0x30], esi
mov eax, ecx
sub eax, esi
je 0x100632c0
cmp eax, 0x200
mov dword [ebp - 0x20], 0x200
jge 0x10063258
mov dword [ebp - 0x20], eax
mov eax, dword [edx]
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push edi
mov ecx, edx
mov edx, dword [eax + 4]
call edx
mov ebx, eax
test ebx, ebx
jne 0x1006329b
add esi, dword [ebp - 0x20]
mov dword [ebp - 0x30], esi
push esi
mov eax, dword [ebp + 8]
push eax
push str.Rquest_Count___d____Read_Count__d_
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 0xc
add edi, dword [ebp - 0x20]
mov dword [ebp - 0x34], edi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x24]
jmp 0x10063241
push str.Read_Data_Fail__
mov ecx, ebx
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
mov dword [ebp - 0x38], ebx
push 0x1012ac78
lea ecx, [ebp - 0x38]
push ecx
call fcn.100c80ad
test esi, esi
je 0x10063507
mov edx, dword [ebp + 0xc]
mov dword [edx], esi
jmp 0x10063507
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
xor eax, eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], ecx
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [ebp - 0x5c], eax
push 0
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 1
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x2998]
push edx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x1006334b
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push str.WSARecv_success_____d__bytes____Target___d__bytes
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 0xc
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
jmp 0x10063367
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, 0x3e5
jne 0x10063525
mov bl, 1
mov byte [ebp - 0x11], bl
mov edi, dword [ebp + 0x10]
lea ebx, [ebx]
test bl, bl
je 0x100634f9
xor bl, bl
mov byte [ebp - 0x11], bl
push edi
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
ja 0x100633d7
je 0x100633b0
test eax, eax
je 0x1006339c
cmp eax, 0x80
jne 0x100633e0
push str.WSARecv_wait_Event_Finished__
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 4
jmp 0x100633e0
push str.WSARecv_wait_Event_TIME_OUT_
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 4
mov dword [ebp - 0x3c], 0x102
push 0x1012ac78
lea edx, [ebp - 0x3c]
push edx
call fcn.100c80ad
cmp eax, 0xffffffff
je 0x100634c9
lea eax, [ebp - 0x28]
push eax
push 0
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x2998]
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
jne 0x1006349b
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov esi, eax
mov dword [ebp - 0x18], esi
push str.WSAGetOverlappedResult_failed__
mov ecx, esi
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
mov eax, esi
sub eax, 0x3e4
je 0x10063467
sub eax, 0x235e
je 0x10063370
sub eax, 0x2b
je 0x10063370
push 0x10120ec0
mov ecx, esi
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
mov dword [ebp - 0x40], esi
push 0x1012ac78
lea edx, [ebp - 0x40]
push edx
call fcn.100c80ad
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x2c]
add eax, 0x64
mov dword [ebp - 0x2c], eax
cmp eax, edi
jae 0x10063486
mov bl, 1
mov byte [ebp - 0x11], bl
jmp 0x10063370
mov dword [ebp - 0x44], 0x3e4
push 0x1012ac78
lea eax, [ebp - 0x44]
push eax
call fcn.100c80ad
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push str.WSAGetOverlappedResult_success_____d__bytes____Target___d__bytes
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 0xc
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x10063370
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x18], esi
push str.WSARecv_wait_Event_ERROR___
mov ecx, esi
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
mov dword [ebp - 0x48], esi
push 0x1012ac78
lea edx, [ebp - 0x48]
push edx
call fcn.100c80ad
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x10063507
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push str.WSARecv_Fail__
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 4
mov dword [ebp - 0x4c], esi
push 0x1012ac78
lea eax, [ebp - 0x4c]
push eax
call fcn.100c80ad
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc