Function at 0x46bfa0
Capabilities:
Check if file exists
Initialize winsock library
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c47e6
mov eax, dword fs:[0]
push eax
sub esp, 0x8b0
mov eax, dword [0x4f67c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x8bc]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x46bff3
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x46c39c
push 0x400
lea eax, [ebp - 0x510]
push 0
push eax
call fcn.004768d0
add esp, 0xc
lea eax, [ebp - 0x510]
push 0
push 0
push eax
lea eax, [ebp - 0x110]
push eax
push str.host:version
call fcn.0046dcb0
add esp, 8
mov ecx, esi
push eax
call fcn.0046c500
push 4
lea eax, [ebp - 0x510]
push str.OKAY
push eax
call fcn.0049fe00
add esp, 0xc
test eax, eax
je 0x46c0ce
push str.Fail_to_detect_HTC_device.
lea ecx, [ebp - 0x72c]
call fcn.00463020
add esi, 0x6c
lea eax, [ebp - 0x72c]
cmp esi, eax
je 0x46c0a9
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x46c07e
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.0046a990
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x46c096
mov eax, dword [esi]
jmp 0x46c098
mov eax, esi
mov byte [eax], 0
mov ecx, esi
lea eax, [ebp - 0x72c]
push eax
call fcn.0046a4c0
mov eax, dword [ebp - 0x718]
cmp eax, 0x10
jb 0x46c0c7
inc eax
lea ecx, [ebp - 0x72c]
push eax
push dword [ebp - 0x72c]
call fcn.0046a990
xor al, al
jmp 0x46c39c
push 0x400
lea eax, [ebp - 0x510]
push 0
push eax
call fcn.004768d0
add esp, 0xc
lea eax, [ebp - 0x510]
push 0
push 1
push eax
lea eax, [ebp - 0x110]
push eax
push str.host:transport_any
call fcn.0046dcb0
add esp, 8
mov ecx, esi
push eax
call fcn.0046c500
push 0x400
lea eax, [ebp - 0x510]
push 0
push eax
call fcn.004768d0
lea eax, [esi + 0x54]
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x46c12c
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x610]
push str.shell:pm_uninstall__s
push eax
call fcn.00462bb0
add esp, 0xc
lea eax, [ebp - 0x510]
push 0x3e8
push 0
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x610]
push eax
call fcn.0046dcb0
add esp, 8
mov ecx, esi
push eax
call fcn.0046c500
push 0x104
lea eax, [ebp - 0x714]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x714]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
cmp dword [esi + 0x50], 0x10
lea edi, [esi + 0x3c]
jb 0x46c19b
mov eax, dword [edi]
jmp 0x46c19d
mov eax, edi
push eax
lea eax, [ebp - 0x714]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x714]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x46c384
push 0x400
lea eax, [ebp - 0x510]
push 0
push eax
call fcn.004768d0
add esp, 0xc
lea eax, [ebp - 0x510]
push 0
push 1
push eax
lea eax, [ebp - 0x110]
push eax
push str.host:transport_any
call fcn.0046dcb0
add esp, 8
mov ecx, esi
push eax
call fcn.0046c500
push 0x400
lea eax, [ebp - 0x510]
push 0
push eax
call fcn.004768d0
add esp, 0xc
lea eax, [ebp - 0x510]
push 0
push 1
push eax
lea eax, [ebp - 0x110]
push eax
push str.sync:
call fcn.0046dcb0
add esp, 8
mov ecx, esi
push eax
call fcn.0046c500
push 0x400
lea eax, [ebp - 0x510]
push 0
push eax
call fcn.004768d0
add esp, 0xc
mov ecx, esi
call fcn.0046c620
push 0
push 0
lea eax, [ebp - 0x510]
mov ecx, esi
push eax
push str.DONE
call fcn.0046c500
push 0x400
lea eax, [ebp - 0x510]
push 0
push eax
call fcn.004768d0
add esp, 0xc
lea eax, [ebp - 0x510]
push 0
push 1
push eax
lea eax, [ebp - 0x110]
push eax
push str.host:transport_any
call fcn.0046dcb0
add esp, 8
mov ecx, esi
push eax
call fcn.0046c500
push 0x400
lea eax, [ebp - 0x510]
push 0
push eax
call fcn.004768d0
add esp, 0xc
cmp dword [edi + 0x14], 0x10
jb 0x46c2c9
mov edi, dword [edi]
push edi
lea eax, [ebp - 0x610]
push str.shell:pm_install__r__data_local_tmp__s
push eax
call fcn.00462bb0
add esp, 0xc
lea eax, [ebp - 0x510]
push 0
push 1
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x610]
push eax
call fcn.0046dcb0
add esp, 8
mov ecx, esi
push eax
call fcn.0046c500
mov ecx, str.OKAY
lea eax, [ebp - 0x510]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x46c332
test dl, dl
je 0x46c32e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x46c332
add eax, 2
add ecx, 2
test dl, dl
jne 0x46c312
xor eax, eax
jmp 0x46c337
sbb eax, eax
or eax, 1
test eax, eax
jne 0x46c376
push 0xfa0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x400
lea eax, [ebp - 0x510]
push eax
push dword [esi + 0x94]
call dword [sym.imp.WS2_32.dll_recv]
push dword [esi + 0x94]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x94], 0
push 0x13a6
mov ecx, esi
call fcn.0046c3c0
jmp 0x46c39a
push dword [esi + 0x94]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x94], 0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472286
mov esp, ebp
pop ebp
ret