Function at 0x47e3b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create thread
Create udp socket
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x51cca4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [esi + 0x3c], 0
cmp edi, 2
jne 0x47e3f2
mov eax, dword [esi + 0x8c]
mov dword [esi + 0x48], eax
mov eax, 0x2224
mov byte [esi + 0x44], 1
mov word [esi + 0x4c], ax
jmp 0x47e469
cmp edi, 1
jne 0x47e3fd
mov byte [esi + 0x44], 1
jmp 0x47e469
call fcn.0047e270
test al, al
je 0x47e465
mov ecx, esi
call fcn.00480b00
test eax, eax
jns 0x47e44f
push str.Your_computer_is_running_the_adb.exe_process_and_is_causing_compatibility_issue._Please_remove_it_and_try_to_connect_PdaNet_again.
lea ecx, [ebp - 0x9c]
call fcn.00460690
lea eax, [ebp - 0x9c]
mov ecx, ebx
push eax
call fcn.00460d30
lea ecx, [ebp - 0x9c]
call fcn.00460af0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489c7b
mov esp, ebp
pop ebp
ret 8
mov eax, 0x2223
mov byte [esi + 0x44], 1
mov dword [esi + 0x48], 0x100007f
mov word [esi + 0x4c], ax
jmp 0x47e469
mov byte [esi + 0x44], 0
cmp byte [esi + 0x44], 0
je 0x47e5cd
cmp edi, 1
jne 0x47e4b5
cmp dword [0x51f2d0], 0x10
mov eax, 0x51f2bc
push 0
cmovae eax, dword [0x51f2bc]
push eax
push ebx
call fcn.004664c0
add esp, 0xc
mov dword [esi + 0x2c], eax
test eax, eax
jne 0x47e707
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489c7b
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x48]
xorps xmm0, xmm0
movups xmmword [ebp - 0x94], xmm0
mov dword [ebp - 0x90], eax
mov eax, 2
mov word [ebp - 0x94], ax
movzx eax, word [esi + 0x4c]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
push 0
push 1
push 2
mov word [ebp - 0x92], ax
call dword [sym.imp.WS2_32.dll_socket]
push 0x10
lea ecx, [ebp - 0x94]
mov dword [esi + 0x2c], eax
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x47e553
lea ecx, [ebp - 0xb4]
test edi, edi
jne 0x47e51b
push str.Conflict_with_adb.exe._Please_make_sure_it_is_not_running_on_your_computer
jmp 0x47e520
push str.Unable_to_connect_to_PdaNet_on_your_phone._Please_retart_and_try_again.
call fcn.00460690
lea eax, [ebp - 0xb4]
mov ecx, ebx
push eax
call fcn.00460d30
lea ecx, [ebp - 0xb4]
call fcn.00460af0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489c7b
mov esp, ebp
pop ebp
ret 8
test edi, edi
jne 0x47e707
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
push 0xeeeeeeee
mov ecx, esi
call fcn.00480a10
push 0x3e8
call edi
push 0xeeeeeeee
mov ecx, esi
call fcn.00480a10
test al, al
jne 0x47e704
push dword [esi + 0x2c]
call dword [sym.imp.WS2_32.dll_closesocket]
push str.Please_start_PdaNet_on_your_phone_and_activate_USB_Mode.
lea ecx, [ebp - 0xb4]
mov dword [esi + 0x2c], 0
call fcn.00460690
lea eax, [ebp - 0xb4]
mov ecx, ebx
push eax
call fcn.00460d30
lea ecx, [ebp - 0xb4]
call fcn.00460af0
jmp 0x47e958
push ebx
mov ecx, esi
mov dword [esi + 0x9c], 1
call fcn.0047f870
mov ecx, esi
test al, al
je 0x47e67f
mov dword [esi + 0xa0], 0
call fcn.0047ebd0
test al, al
jne 0x47e699
cmp dword [esi + 0xa0], 0
lea ecx, [ebp - 0xb4]
je 0x47e65a
push str.Please_select_allow_USB_connection_on_your_phone
call fcn.00460690
lea eax, [ebp - 0xb4]
mov ecx, ebx
push eax
call fcn.00460d30
lea ecx, [ebp - 0xb4]
call fcn.00460af0
mov ecx, esi
call fcn.0047e310
push 0
push 0
call fcn.004653d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489c7b
mov esp, ebp
pop ebp
ret 8
push str.Fail_to_connect__please_reattach_your_phone
call fcn.00460690
lea eax, [ebp - 0xb4]
mov ecx, ebx
push eax
call fcn.00460d30
lea ecx, [ebp - 0xb4]
call fcn.00460af0
mov ecx, esi
call fcn.0047e310
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489c7b
mov esp, ebp
pop ebp
ret 8
cmp dword [esi + 0x38], 0
mov ecx, str.tcp:8739
mov eax, str.localabstract:pdanet
cmovne ecx, eax
mov dword [ebp - 0x94], ecx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47e6b3
inc dword [esi + 0x70]
sub ecx, edx
push 0
push 0
push 0
lea eax, [ecx + 1]
xorps xmm0, xmm0
mov dword [ebp - 0x90], eax
mov ecx, esi
lea eax, [ebp - 0x94]
movq qword [ebp - 0x8c], xmm0
push eax
push 0x4e45504f
call fcn.004805f0
test al, al
jne 0x47e707
cmp dword [esi + 0xa0], 0
je 0x47e707
lea ecx, [ebp - 0xb4]
jmp 0x47e60f
mov edi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0047f140
test al, al
je 0x47e915
mov ebx, 0x100
test edi, edi
jne 0x47e726
mov ebx, 0x102
jmp 0x47e731
cmp edi, 2
mov eax, 0x122
cmove ebx, eax
cmp dword [0x51f2e4], 0
je 0x47e73d
or ebx, 1
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
xorps xmm0, xmm0
push 0xf
movups xmmword [ebp - 0xbc], xmm0
movups xmmword [ebp - 0xac], xmm0
call edi
push 0x20b
mov dword [ebp - 0xbc], eax
call edi
push ebx
mov dword [ebp - 0xb8], eax
call edi
mov dword [ebp - 0xa0], eax
xorps xmm0, xmm0
lea eax, [ebp - 0xbc]
mov dword [ebp - 0x90], 0x20
mov dword [ebp - 0x94], eax
mov ecx, esi
lea eax, [ebp - 0x94]
movq qword [ebp - 0x8c], xmm0
push eax
call fcn.004809c0
movups xmm0, xmmword [0x4ebd28]
push 0x70
lea eax, [ebp - 0x74]
mov dword [ebp - 0xc0], 0x3f
push 0
push eax
movups xmmword [ebp - 0x84], xmm0
call fcn.0048e7f0
add esp, 0xc
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea ecx, [ebp - 0x84]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47e7f0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
mov dword [ebp - 0xc0], eax
add eax, 0x20
push eax
call fcn.00489827
mov edi, dword [sym.imp.WS2_32.dll_htonl]
mov ebx, eax
add esp, 4
xorps xmm0, xmm0
movups xmmword [ebx], xmm0
push 0x12e
movups xmmword [ebx + 0x10], xmm0
call edi
mov dword [ebx], eax
push dword [ebp - 0xc0]
call edi
mov dword [ebx + 0xc], eax
lea eax, [ebp - 0x84]
push dword [ebp - 0xc0]
push eax
lea eax, [ebx + 0x20]
push eax
call fcn.0048e270
mov eax, dword [ebp - 0xc0]
add esp, 0xc
add eax, 0x20
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x94]
movq qword [ebp - 0x8c], xmm0
push eax
mov ecx, esi
call fcn.004809c0
push ebx
call fcn.00489830
push 0x14
call fcn.004897e6
mov edi, eax
add esp, 8
mov dword [ebp - 0xc4], edi
test edi, edi
je 0x47e8b3
mov dword [edi + 8], 0
mov byte [edi + 0xc], 1
mov dword [edi], vtable.UsbReadThread.0
mov dword [edi + 0x10], esi
jmp 0x47e8b5
xor edi, edi
lea eax, [edi + 4]
mov byte [edi + 0xc], 1
push eax
push 0
push edi
push 0x464130
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [ebp + 0xc], 2
mov dword [edi + 8], eax
jne 0x47e8ea
push 0
push 0x3e8
push 0xb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
push 0xeeeeeeee
mov ecx, esi
call fcn.00480a10
pop edi
mov dword [esi + 0x34], 0
mov eax, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489c7b
mov esp, ebp
pop ebp
ret 8
push str.Please_start_PdaNet_on_your_phone_and_enable_USB_Tether_Mode.
lea ecx, [ebp - 0x9c]
call fcn.00460690
lea eax, [ebp - 0x9c]
mov ecx, ebx
push eax
call fcn.00460d30
mov eax, dword [ebp - 0x88]
cmp eax, 0x10
jb 0x47e951
inc eax
lea ecx, [ebp - 0x9c]
push eax
push dword [ebp - 0x9c]
call fcn.00464490
mov ecx, esi
call fcn.0047e310
mov ecx, dword [ebp - 4]
mov eax, 0xfffffff9
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00489c7b
mov esp, ebp
pop ebp
ret 8