Function at 0x4132a0
Capabilities:
Copy file

Disassembly:
mov eax, 0x16ac
call fcn.00435100
mov eax, dword [0x457a00]
xor eax, esp
mov dword [esp + 0x16a4], eax
push ebx
push ebp
push esi
push edi
push 0x103
lea eax, [esp + 0xa5]
push 0
push eax
mov byte [esp + 0xac], 0
call fcn.00433570
add esp, 0xc
push 0x3ff
lea ecx, [esp + 0x2b5]
push 0
push ecx
mov byte [esp + 0x2bc], 0
call fcn.00433570
add esp, 0xc
push 0xfff
lea edx, [esp + 0x6b5]
push 0
push edx
mov byte [esp + 0x6bc], 0
call fcn.00433570
add esp, 0xc
lea esi, [esp + 0xa0]
mov dword [esp + 0x14], 0x450084
call fcn.00401520
push str.check_adb_devices..._n
call fcn.00401000
add esp, 4
mov eax, esi
push eax
push str.__s_adb.exe__devices
lea ecx, [esp + 0x2b8]
push 0x104
push ecx
call fcn.00430bb0
lea edx, [esp + 0x2c0]
push edx
push 0x44c6f8
call fcn.00401000
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x18
xor ebp, ebp
lea eax, [esp + 0x18]
call fcn.0040de60
lea ecx, [esp + 0x2b0]
lea esi, [esp + 0x18]
call fcn.0040dda0
push 0x1000
lea eax, [esp + 0x6b4]
push 0
push eax
call fcn.00433570
add esp, 0xc
lea ecx, [esp + 0x6b0]
push ecx
mov edi, esi
call fcn.0040dc60
mov eax, dword [esp + 0x78]
test eax, eax
je 0x4133bb
push eax
call ebx
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4133c6
push eax
call ebx
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4133d1
push eax
call ebx
mov eax, dword [esp + 0x70]
test eax, eax
je 0x4133dc
push eax
call ebx
lea edx, [esp + 0x6b0]
push edx
push 0x44c6f8
call fcn.00401000
lea eax, [esp + 0x6d0]
push str.device
push eax
call fcn.00430890
add esp, 0x10
test eax, eax
jne 0x41342d
lea ecx, [esp + 0x14]
push 1
push ecx
call fcn.00402e10
add esp, 8
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
add ebp, 1
cmp ebp, 0x14
jl 0x413371
cmp ebp, 0x14
jne 0x41345a
push str.Can_not_find_adb_device__please_try_again._n
call fcn.004301ca
add esp, 4
xor al, al
mov ecx, dword [esp + 0x16b4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042fb8f
add esp, 0x16ac
ret
push str._nBackup_WiFi_parameters..._n
call fcn.004301ca
add esp, 4
push str.Backup_WiFi_parameters_n
call fcn.00401000
add esp, 4
push 0x400
lea edx, [esp + 0x2b4]
push 0
push edx
call fcn.00433570
add esp, 0xc
push 0x45bf08
lea eax, [esp + 0xa4]
push eax
push str.__s_adb.exe__pull__lib_firmware_ath6k_AR6003_hw2.1.1_bdata.SD31.bin___s_
lea ecx, [esp + 0x2bc]
push 0x400
push ecx
call fcn.00430bb0
add esp, 0x14
lea edx, [esp + 0x2b0]
push edx
push 0x44c6f8
call fcn.00401000
add esp, 8
lea eax, [esp + 0x18]
call fcn.0040de60
lea ecx, [esp + 0x2b0]
lea esi, [esp + 0x18]
call fcn.0040dda0
push 0x1000
lea eax, [esp + 0x6b4]
push 0
push eax
call fcn.00433570
add esp, 0xc
lea ecx, [esp + 0x6b0]
push ecx
mov edi, esi
call fcn.0040db40
mov eax, dword [esp + 0x78]
test eax, eax
je 0x413511
push eax
call ebx
mov eax, dword [esp + 0x74]
test eax, eax
je 0x41351c
push eax
call ebx
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x413527
push eax
call ebx
mov eax, dword [esp + 0x70]
test eax, eax
je 0x413532
push eax
call ebx
lea edx, [esp + 0x6b0]
push edx
call fcn.004301ca
add esp, 4
lea eax, [esp + 0x6b0]
push eax
push 0x44c6f8
call fcn.00401000
push 0x44dbb0
call fcn.004301ca
add esp, 0xc
lea ecx, [esp + 0x14]
push 1
push ecx
call fcn.00402e10
lea eax, [esp + 0x6b8]
add esp, 8
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x413580
sub eax, edx
je 0x41343f
lea edx, [esp + 0x6b0]
push str.FAILED
push edx
call fcn.00430890
add esp, 8
test eax, eax
jne 0x41343f
push eax
push 0x45bf08
call fcn.0043ccd1
add esp, 8
test eax, eax
jne 0x41343f
push 0x44c6fc
push 0x45bf08
xor edi, edi
call fcn.0042ff87
mov esi, eax
add esp, 8
test esi, esi
je 0x4135fb
push esi
call fcn.00431cb3
add esp, 4
push eax
call fcn.00431aa8
add esp, 4
push esi
mov edi, eax
call fcn.0043014e
add esp, 4
test edi, edi
setne al
test al, al
je 0x41343f
push str.Backup_WiFi_parameters_end_n
call fcn.00401000
add esp, 4
push 0x103
lea eax, [esp + 0x1ad]
push 0
push eax
mov byte [esp + 0x1b4], 0
call fcn.00433570
add esp, 0xc
xor eax, eax
mov dword [esp + 0x81], eax
mov dword [esp + 0x85], eax
mov dword [esp + 0x89], eax
mov dword [esp + 0x8d], eax
mov dword [esp + 0x91], eax
mov dword [esp + 0x95], eax
mov dword [esp + 0x99], eax
mov word [esp + 0x9d], ax
mov byte [esp + 0x9f], al
mov eax, 0x45bf08
mov byte [esp + 0x80], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x413686
sub eax, edx
push eax
lea ecx, [esp + 0x1ac]
push 0x45bf08
push ecx
call fcn.0043dca0
add esp, 0xc
lea edx, [esp + 0x1a8]
push 0x5c
push edx
call fcn.00431a10
lea edi, [eax + 1]
lea esi, [esp + 0x88]
add esp, 8
mov ecx, edi
sub esi, edi
mov dl, byte [ecx]
mov byte [esi + ecx], dl
add ecx, 1
test dl, dl
jne 0x4136c7
mov ecx, dword [str.restore_]
mov dword [edi], ecx
mov edx, dword [0x44e394]
lea ecx, [esp + 0x85]
mov dword [edi + 4], edx
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x4136f0
sub ecx, esi
push ecx
lea ecx, [esp + 0x89]
push ecx
push 0x5f
push eax
call fcn.00430be0
add eax, 1
add esp, 8
push eax
call fcn.0043dca0
add esp, 0xc
push 0
lea edx, [esp + 0x1ac]
push edx
push 0x45bf08
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov al, 1
jmp 0x413441