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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x10415990]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], 0
test esi, esi
jne 0x1007a5a9
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x74], 0
je 0x1007aa48
or ebx, 0xffffffff
mov dword [ebp - 0x68], ebx
push 0x34
mov dword [ebp - 0x74], 0x1c
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x1007a5b9
push 0x2c
push 0
push edi
call sub.MSVCR100.dll_memset
lea eax, [edi + 0x20]
mov dword [edi], eax
mov dword [eax], 0x1006dda0
mov eax, dword [edi]
mov dword [eax + 4], 0x10060030
mov ecx, dword [edi]
add esp, 0xc
mov dword [ecx + 8], 0x10060070
push 0x408
mov dword [edi + 4], 1
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [edi + 8], eax
test eax, eax
je 0x1007a622
mov eax, 0x400
mov dword [edi + 0xc], eax
mov dword [edi + 0x14], eax
mov edx, dword [edi + 8]
mov dword [ebp - 0x70], 0
test edx, edx
je 0x1007a8cb
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x1c]
cmp eax, ecx
ja 0x1007a64d
jne 0x1007a64a
cmp dword [edi + 0x14], 0
ja 0x1007a64a
xor eax, eax
jmp 0x1007a658
mov eax, dword [edi + 0xc]
sub eax, ecx
test eax, eax
je 0x1007a658
add ecx, edx
mov dword [ebp - 0x70], ecx
lea edx, [ebp - 0x78]
test edx, edx
je 0x1007a662
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x70]
test ecx, ecx
je 0x1007a8cb
mov eax, dword [esi + 0x2c]
cmp eax, 2
jne 0x1007a74a
push 0x3f
lea eax, [ebp - 0x47]
push 0
push eax
mov byte [ebp - 0x48], 0
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 0x78]
add esp, 0xc
lea ecx, [ebp - 0x74]
push ecx
mov ecx, dword [ebp - 0x70]
lea edx, [ebp - 0x64]
push edx
mov edx, dword [esi]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [0x1045b910]
mov edx, dword [0x1045b8f0]
push esi
push eax
push ebx
mov dword [ebp - 0x68], eax
mov eax, dword [esi]
push eax
push str.recvfrom__x__ret_d__detail_d__hd_x
push 0x301
push 0x10441374
push ecx
push 6
push edx
call fcn.10062060
add esp, 0x28
test ebx, ebx
jle 0x1007a804
mov ax, word [ebp - 0x64]
cmp ax, 2
jne 0x1007a705
lea eax, [ebp - 0x60]
push 0x40
push eax
lea esi, [ebp - 0x48]
call fcn.10089b50
mov esi, dword [ebp - 0x80]
jmp 0x1007a718
cmp ax, 0x17
jne 0x1007a71b
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x5c]
push edx
call fcn.10089bc0
add esp, 8
mov eax, dword [ebp - 0x74]
mov edx, dword [0x1045b910]
push 0
push 0
push eax
mov eax, dword [0x1045b8f0]
lea ecx, [ebp - 0x48]
push ecx
push str.recvfrom__s__len_d
push 0x307
push 0x104413c4
push edx
push 6
push eax
jmp 0x1007a7fa
cmp eax, 6
jne 0x1007a7a1
mov ecx, dword [0x1045b914]
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x1045b914]
mov edx, dword [0x10458394]
push eax
mov dword [ebp - 0x6c], edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x6c], 0
je 0x1007a932
lea eax, [esi + 0x98]
test eax, eax
jne 0x1007a78f
or ebx, 0xffffffff
jmp 0x1007a7b3
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x70]
push ecx
push edx
call fcn.100aa520
add esp, 8
jmp 0x1007a7b1
mov edx, dword [ebp - 0x78]
mov eax, dword [esi]
push 0
push edx
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp dword [esi + 0x2c], 6
jne 0x1007a7cb
cmp ebx, 0xffffffff
je 0x1007a7cb
xor eax, eax
cmp ebx, 0xffffffff
setge al
dec eax
and eax, ebx
jmp 0x1007a7d1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esi]
push ecx
mov ecx, dword [0x1045b8f0]
mov edx, eax
push edx
push ebx
push esi
push str.recv__x_____ret_d__detail_d__hd_x
push 0x333
push 0x1044148c
mov dword [ebp - 0x68], eax
mov eax, dword [0x1045b910]
push eax
push 6
push ecx
call fcn.10062060
add esp, 0x28
test ebx, ebx
je 0x1007a983
cmp ebx, 0xffffffff
jle 0x1007a9d3
push 0x2c
call dword [sym.imp.MSVCR100.dll_malloc]
mov edx, dword [ebp - 0x70]
add esp, 4
push ebx
mov dword [ebp - 0x6c], eax
mov eax, dword [0x1045b8f0]
push edx
push eax
call fcn.10062360
mov eax, dword [ebp - 0x6c]
add dword [esi + 0x7c], ebx
add dword [ebp - 0x7c], ebx
add esp, 0xc
test eax, eax
je 0x1007a89e
push eax
lea ecx, [esi + 0x50]
push ecx
call fcn.1007e140
add esp, 8
test eax, eax
jne 0x1007a891
add dword [edi + 0x1c], ebx
mov eax, dword [edi + 0x1c]
add dword [edi + 0x10], ebx
sub dword [edi + 0x14], ebx
cmp eax, dword [edi + 0xc]
jb 0x1007a86a
mov dword [edi + 0x1c], 0
mov eax, dword [ebp - 0x6c]
mov dword [eax], edi
mov edx, dword [ebp - 0x74]
push edx
lea ecx, [ebp - 0x64]
push ecx
add eax, 4
push eax
call sub.MSVCR100.dll_memcpy
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x6c]
add esp, 0xc
mov dword [eax + 0x20], edx
jmp 0x1007a5b9
mov ecx, dword [ebp - 0x6c]
push ecx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
dec dword [edi + 4]
cmp dword [edi + 4], 0
jne 0x1007a5b9
mov eax, dword [edi + 8]
test eax, eax
je 0x1007a8bc
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
push edi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
jmp 0x1007a5b9
mov edx, dword [esi]
mov eax, dword [0x1045b910]
mov ecx, dword [0x1045b8f0]
push 0
push 0
push edx
push esi
push str.alloc_recving_buffer_failed___x__x
push 0x2f7
push 0x10441310
push eax
push 0
push ecx
call fcn.10062060
mov eax, dword [esi + 0x80]
add esp, 0x28
test eax, eax
je 0x1007aa48
mov edx, dword [ebp - 0x68]
mov ecx, dword [esi + 0x84]
push edx
push 0x2775
push 5
push ecx
call eax
mov eax, dword [ebp - 0x7c]
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x68]
mov edx, dword [esi]
mov eax, dword [0x1045b910]
mov ecx, dword [0x1045b8f0]
push edi
push ebx
push edx
push esi
push str.read___failed_ssl_not_init.__x__x__d__d
push 0x313
push 0x10441428
push eax
push 0
push ecx
call fcn.10062060
push 0x2794
mov edx, edi
mov eax, esi
call fcn.10079bc0
mov eax, dword [ebp - 0x7c]
add esp, 0x2c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
mov eax, dword [0x1045b910]
mov ecx, dword [0x1045b8f0]
push 0
push 0
push 0
push edx
push str.remote_closed__hd_x
push 0x338
push 0x104414e0
push eax
push 6
push ecx
call fcn.10062060
push edi
mov dword [esi + 0x34], 6
call fcn.10092f80
mov eax, dword [ebp - 0x7c]
add esp, 0x2c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
push edi
call fcn.10092f80
mov edi, dword [ebp - 0x68]
add esp, 4
cmp edi, 0x2733
je 0x1007aa41
cmp edi, 0x2747
je 0x1007aa41
test edi, edi
je 0x1007aa41
mov edx, dword [esi]
mov eax, dword [0x1045b910]
mov ecx, dword [0x1045b8f0]
push edi
push ebx
push edx
push esi
push str.recv_from__failed___x__x__d__d
push 0x348
push 0x1044153c
push eax
push 0
push ecx
call fcn.10062060
push 0x27dd
mov edx, edi
mov eax, esi
call fcn.10079bc0
mov eax, dword [ebp - 0x7c]
add esp, 0x2c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x74], 0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1015eea7
mov esp, ebp
pop ebp
ret