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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x51cca4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x20], 0
mov dword [edi + 4], 0
cmp byte [esi + 0x44], 0
je 0x480063
push 0
push 0x1000
push dword [edi]
push dword [esi + 0x2c]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x20], eax
test eax, eax
jg 0x48018e
cmp dword [0x51f2dc], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x47fff8
cmp dword [0x51f2e0], 2
jne 0x47fff8
call edi
cmp eax, 0x2745
jne 0x47fff8
mov eax, dword [0x51f2d4]
test eax, eax
je 0x47ff9c
cmp dword [eax + 8], 0
je 0x47ffac
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x30]
cmp eax, 0x3e8
jae 0x47fff8
mov eax, dword [0x51f4d4]
test eax, eax
je 0x47ffd2
push 1
push str.Waiting_for_WiFi...
push 0x8066
push eax
mov dword [0x51f550], 0
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0x3e8
push 0xa
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489c7b
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x3c], 0
jne 0x48003d
cmp dword [esi + 0x84], 0
jbe 0x48003d
cmp dword [esi + 0x8c], 0
je 0x48003d
push 0
push 1
push 0x87f8
push dword [esi + 0x28]
mov dword [esi + 0x34], 1
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489c7b
mov esp, ebp
pop ebp
ret 4
call edi
push eax
push str.PdaNet_Disconnected
mov ecx, 0x51f1d8
call fcn.00480ab0
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489c7b
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x20]
push eax
push 0x18
lea eax, [ebp - 0x1c]
push eax
call fcn.00480c40
test eax, eax
jne 0x4800b3
cmp dword [0x51f2dc], eax
je 0x48009f
cmp byte [0x51f31c], al
jne 0x48009f
push 1
push str.USB_connection_dropped
push str._s__code_d_
push 0x51f31c
call fcn.004646a0
add esp, 0x10
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489c7b
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4801a5
lea ecx, [ebp - 0x20]
push ecx
push eax
push dword [edi]
mov ecx, esi
call fcn.00480c40
test eax, eax
jne 0x480181
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x51f2dc], 0
mov dword [ebp - 0x24], eax
je 0x48010b
cmp byte [0x51f31c], 0
jne 0x48010b
push 2
push str.USB_dropped._Check_cable.
push str._s__code_d_
push 0x51f31c
call fcn.004646a0
mov eax, dword [ebp - 0x24]
add esp, 0x10
cmp dword [esi + 0x9c], 0
jne 0x48004f
cmp eax, 0x1f
jne 0x48004f
mov ecx, esi
call fcn.0047f140
test al, al
je 0x48004f
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
push dword [ebp - 0x10]
push dword [edi]
call fcn.00480c40
test eax, eax
jne 0x48016e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Read_data_retry_failed_error
mov ecx, 0x51f1d8
call fcn.00480ab0
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489c7b
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x10]
je 0x480191
push eax
push str.Read_incorrect_length
jmp 0x480045
mov eax, dword [ebp - 0x1c]
cmp eax, 0x45545257
jne 0x4801a8
mov eax, dword [ebp - 0x20]
mov dword [edi + 4], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489c7b
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x1c]
cmp eax, 0x45534c43
jne 0x480191
cmp dword [esi + 0x34], 0
mov dword [esi + 0x24], 0
jne 0x48004f
cmp dword [0x51f2dc], 0
je 0x480191
push 0
push 1
push 0x87f8
push dword [esi + 0x28]
mov dword [esi + 0x34], 1
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.00489c7b
mov esp, ebp
pop ebp
ret 4