Function at 0x413740
Capabilities:
Delete file

Disassembly:
mov eax, 0x168c
call fcn.00435100
mov eax, dword [0x457a00]
xor eax, esp
mov dword [esp + 0x1684], eax
push ebx
push ebp
push esi
push edi
push 0x103
lea eax, [esp + 0x85]
push 0
push eax
mov byte [esp + 0x8c], 0
call fcn.00433570
add esp, 0xc
push 0x3ff
lea ecx, [esp + 0x295]
push 0
push ecx
mov byte [esp + 0x29c], 0
call fcn.00433570
add esp, 0xc
push 0xfff
lea edx, [esp + 0x695]
push 0
push edx
mov byte [esp + 0x69c], 0
call fcn.00433570
add esp, 0xc
lea esi, [esp + 0x80]
mov dword [esp + 0x14], 0x450084
call fcn.00401520
mov eax, esi
push eax
push str.__s_adb.exe__devices
lea ecx, [esp + 0x298]
push 0x104
push ecx
call fcn.00430bb0
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x10
xor ebp, ebp
lea eax, [esp + 0x18]
call fcn.0040de60
lea ecx, [esp + 0x290]
lea esi, [esp + 0x18]
call fcn.0040dda0
push 0x1000
lea edx, [esp + 0x694]
push 0
push edx
call fcn.00433570
add esp, 0xc
lea eax, [esp + 0x690]
push eax
mov edi, esi
call fcn.0040dc60
mov eax, dword [esp + 0x78]
test eax, eax
je 0x41383c
push eax
call ebx
mov eax, dword [esp + 0x74]
test eax, eax
je 0x413847
push eax
call ebx
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x413852
push eax
call ebx
mov eax, dword [esp + 0x70]
test eax, eax
je 0x41385d
push eax
call ebx
lea ecx, [esp + 0x690]
push ecx
push 0x44c6f8
call fcn.00401000
lea edx, [esp + 0x6b0]
push str.device
push edx
call fcn.00430890
add esp, 0x10
test eax, eax
jne 0x41389f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
add ebp, 1
cmp ebp, 0x78
jl 0x4137f2
cmp ebp, 0x78
jne 0x4138cc
push str.Can_not_find_adb_device__please_try_again._n
call fcn.004301ca
add esp, 4
xor al, al
mov ecx, dword [esp + 0x1694]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042fb8f
add esp, 0x168c
ret
push str._nRestore_WiFi_parameters..._n
call fcn.004301ca
add esp, 4
push str.Restore_wifi_parameters_start..._n
call fcn.00401000
add esp, 4
push 0
push 0x45bf08
call fcn.0043ccd1
add esp, 8
test eax, eax
jne 0x4138b1
push 0x44c6fc
push 0x45bf08
xor edi, edi
call fcn.0042ff87
mov esi, eax
add esp, 8
test esi, esi
je 0x413930
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 0x4138b1
push 0x400
lea eax, [esp + 0x294]
push 0
push eax
call fcn.00433570
add esp, 0xc
push 0x45bf08
lea ecx, [esp + 0x84]
push ecx
push str.__s_adb.exe__push___s___lib_firmware_ath6k_AR6003_hw2.1.1_bdata.SD31.bin
lea edx, [esp + 0x29c]
push 0x400
push edx
call fcn.00430bb0
add esp, 0x14
lea eax, [esp + 0x290]
push eax
push 0x44c6f8
call fcn.00401000
add esp, 8
lea eax, [esp + 0x18]
call fcn.0040de60
lea ecx, [esp + 0x290]
lea esi, [esp + 0x18]
call fcn.0040dda0
push 0x1000
lea ecx, [esp + 0x694]
push 0
push ecx
call fcn.00433570
add esp, 0xc
lea edx, [esp + 0x690]
push edx
mov edi, esi
call fcn.0040db40
mov eax, dword [esp + 0x78]
test eax, eax
je 0x4139da
push eax
call ebx
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4139e5
push eax
call ebx
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4139f0
push eax
call ebx
mov eax, dword [esp + 0x70]
test eax, eax
je 0x4139fb
push eax
call ebx
lea eax, [esp + 0x690]
push eax
call fcn.004301ca
add esp, 4
lea ecx, [esp + 0x690]
push ecx
push 0x44c6f8
call fcn.00401000
push 0x44dbb0
call fcn.004301ca
lea eax, [esp + 0x69c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x413a34
sub eax, edx
je 0x4138b1
lea edx, [esp + 0x690]
push str.FAILED
push edx
call fcn.00430890
add esp, 8
test eax, eax
jne 0x4138b1
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x400
lea eax, [esp + 0x294]
push 0
push eax
call fcn.00433570
add esp, 0xc
push 0x45bf08
lea ecx, [esp + 0x84]
push ecx
push str.__s_adb.exe__push___s___etc_backup_bdata.SD31.bin
lea edx, [esp + 0x29c]
push 0x400
push edx
call fcn.00430bb0
add esp, 0x14
lea eax, [esp + 0x18]
call fcn.0040de60
lea eax, [esp + 0x290]
push eax
push 0x44c6f8
call fcn.00401000
add esp, 8
lea ecx, [esp + 0x290]
lea esi, [esp + 0x18]
call fcn.0040dda0
push 0x1000
lea ecx, [esp + 0x694]
push 0
push ecx
call fcn.00433570
add esp, 0xc
lea edx, [esp + 0x690]
push edx
mov edi, esi
call fcn.0040db40
mov eax, dword [esp + 0x78]
test eax, eax
je 0x413b0a
push eax
call ebx
mov eax, dword [esp + 0x74]
test eax, eax
je 0x413b15
push eax
call ebx
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x413b20
push eax
call ebx
mov eax, dword [esp + 0x70]
test eax, eax
je 0x413b2b
push eax
call ebx
lea eax, [esp + 0x690]
push eax
call fcn.004301ca
add esp, 4
lea ecx, [esp + 0x690]
push ecx
push 0x44c6f8
call fcn.00401000
push 0x44dbb0
call fcn.004301ca
lea eax, [esp + 0x69c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x413b64
sub eax, edx
je 0x4138b1
lea edx, [esp + 0x690]
push str.FAILED
push edx
call fcn.00430890
add esp, 8
test eax, eax
jne 0x4138b1
push str.Restore_wifi_parameters_end..._n
call fcn.00401000
add esp, 4
push 0x103
lea eax, [esp + 0x18d]
push 0
push eax
mov byte [esp + 0x194], 0
call fcn.00433570
add esp, 0xc
lea esi, [esp + 0x188]
call fcn.00401f20
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x413bd0
sub eax, edx
push eax
lea ecx, [esp + 0x18c]
push ecx
push 0x45bf08
call fcn.004317b3
add esp, 0xc
test eax, eax
jne 0x413c00
push 0x45bf08
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x14]
push 1
push edx
call fcn.00402e10
add esp, 8
mov al, 1
jmp 0x4138b3