Function at 0x413ef0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fcd1
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x54a0
call fcn.0043ec10
mov eax, dword [0x45115c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x5348], ecx
cmp byte [ecx + 0xf78], bl
je 0x414463
push 0xfff
lea eax, [ebp - 0x117b]
push ebx
mov dword [ebp - 4], ebx
push eax
mov byte [ebp - 0x117c], bl
call fcn.0043e300
push 0xff
lea ecx, [ebp - 0x17b]
push ebx
push ecx
mov byte [ebp - 0x17c], bl
call fcn.0043e300
mov eax, dword [edi]
xor esi, esi
add esp, 0x18
mov dword [ebp - 0x534c], esi
cmp eax, 0x1a
je 0x413fe4
cmp eax, 0xd
je 0x413fe4
cmp eax, 0x53
je 0x413fca
cmp eax, 0x55
je 0x413fca
cmp eax, 0x54
jne 0x413fb0
lea edx, [ebp - 0x17c]
push str.am_start__n_com.longcheer.runin_.framework.MainActivity
push edx
call dword [0x4422dc]
add esp, 8
jmp 0x414351
lea eax, [ebp - 0x17c]
push str.am_start__n_com.xiaomi.runin_.framework.MainActivity
push eax
call dword [0x4422dc]
add esp, 8
jmp 0x414351
lea ecx, [ebp - 0x17c]
push str.am_start__n_com.factory.runintestii_.RunInTestII__e_type_6dh
push ecx
call dword [0x4422dc]
add esp, 8
jmp 0x414351
lea edx, [ebp - 0x17c]
push str.am_start__n_com.longcheertel.runin_.framework.MainActivity
push edx
call dword [0x4422dc]
add esp, 8
push ebx
push 1
lea ebx, [ebp - 0x117c]
mov ecx, str.mkdir__sdcard_RuninTest_
call fcn.00418700
xor ebx, ebx
push 0x31
lea eax, [ebp - 0x7b]
push ebx
push eax
mov byte [ebp - 0x7c], bl
call fcn.0043e300
lea ecx, [edi + 0x5d]
lea edi, [ebp - 0x7c]
call fcn.004067e0
push 0x31
lea ecx, [ebp - 0x47]
push ebx
push ecx
mov byte [ebp - 0x48], bl
call fcn.0043e300
add esp, 0x18
lea edi, [ebp - 0x48]
mov ecx, 0x447034
call fcn.004067e0
lea edx, [ebp - 0x7c]
push edx
lea ecx, [ebp - 0x5340]
call dword [sym.imp.mfc100.dll_Ordinal_310]
lea ecx, [ebp - 0x5340]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc100.dll_Ordinal_7832]
mov eax, edi
push eax
lea ecx, [ebp - 0x5344]
call dword [sym.imp.mfc100.dll_Ordinal_310]
lea ecx, [ebp - 0x5344]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc100.dll_Ordinal_7832]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push str.._runT.txt
call edi
test eax, eax
je 0x414114
push str.._runT.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.._runT.txt
call edi
test eax, eax
je 0x414114
push 0x1000
lea ecx, [ebp - 0x2328]
push ebx
push ecx
call fcn.0043e300
push 0xfff
lea edx, [ebp - 0x2328]
push str.Delete_runT_file_fail
push edx
mov dword [ebp - 0x232c], 0xa8
call dword [sym.imp.MSVCR100.dll_strncpy]
push 0x1004
lea eax, [ebp - 0x232c]
push eax
lea ecx, [ebp - 0x3330]
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0x24
push 0x44aba0
lea edx, [ebp - 0x3330]
push edx
call fcn.0043ebfc
push 0x104
lea eax, [ebp - 0x1280]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x1280]
push 0x5c
push ecx
call dword [sym.imp.MSVCR100.dll_strrchr]
add esp, 8
lea edx, [ebp - 0x1280]
push edx
lea ecx, [ebp - 0x5350]
mov byte [eax], bl
call dword [sym.imp.mfc100.dll_Ordinal_310]
lea eax, [ebp - 0x5354]
push eax
mov edi, 0x444ab8
lea ebx, [ebp - 0x5350]
mov byte [ebp - 4], 3
call fcn.00401730
add esp, 4
lea ecx, [ebp - 0x533c]
push ecx
mov edi, str.runT.txt
mov ebx, eax
mov byte [ebp - 4], 4
call fcn.00401730
add esp, 4
mov bl, 6
lea ecx, [ebp - 0x5354]
mov byte [ebp - 4], bl
call dword [0x44293c]
mov edx, dword [ebp - 0x533c]
push 1
push edx
lea eax, [ebp - 0x54b0]
push eax
call fcn.0041ee00
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x54b0]
mov edx, dword [ecx + 4]
test byte [ebp + edx - 0x54a4], bl
je 0x4142a7
lea eax, [ebp - 0x5400]
push eax
call fcn.00402d70
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x533c]
push ecx
lea esi, [ebp - 0x53fc]
call fcn.00403a20
push 0
test eax, eax
jne 0x414208
mov edx, dword [ebp - 0x5400]
mov ecx, dword [edx + 4]
push 2
lea ecx, [ebp + ecx - 0x5400]
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool_]
jmp 0x414220
mov eax, dword [ebp - 0x5400]
mov ecx, dword [eax + 4]
push 0
lea ecx, [ebp + ecx - 0x5400]
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::clear_int__bool_]
invalid
mov ecx, dword [ebp - 0x5340]
push ecx
lea edx, [ebp - 0x5400]
push edx
call fcn.004040e0
add esp, 8
push 0x445a88
push eax
call fcn.004040e0
mov ecx, dword [0x442180]
add esp, 8
push ecx
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov edx, dword [ebp - 0x5344]
push edx
lea eax, [ebp - 0x5400]
push eax
call fcn.004040e0
add esp, 8
push 0x445a88
push eax
call fcn.004040e0
mov ecx, dword [0x442180]
add esp, 8
push ecx
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
lea edx, [ebp - 0x5400]
push edx
call fcn.00402e30
lea ecx, [ebp - 0x5400]
mov byte [ebp - 4], 7
call fcn.00402cc0
mov esi, dword [ebp - 0x534c]
push 0
push 0
lea ebx, [ebp - 0x117c]
mov ecx, str.push_._runT.txt___sdcard__
call fcn.00418700
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x54b0]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x5448]
mov dword [ebp - 0x534c], eax
mov dword [ebp + edx - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
lea ecx, [ebp - 0x54a0]
mov byte [ebp - 4], 9
call fcn.0041ef60
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x54b0]
mov ecx, dword [eax + 4]
mov edx, dword [0x4421b0]
mov dword [ebp + ecx - 0x54b0], edx
lea ecx, [ebp - 0x5448]
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x533c]
call dword [0x44293c]
lea ecx, [ebp - 0x5350]
call dword [0x44293c]
lea ecx, [ebp - 0x5344]
call dword [0x44293c]
lea ecx, [ebp - 0x5340]
mov byte [ebp - 4], 0
call dword [0x44293c]
xor ebx, ebx
push ebx
push ebx
lea ebx, [ebp - 0x117c]
mov ecx, str.wait_for_device
call fcn.00418700
push 1
push 1
lea ebx, [ebp - 0x117c]
lea ecx, [ebp - 0x17c]
call fcn.00418700
test al, al
jne 0x4143e4
cmp esi, 5
jge 0x414384
inc esi
jmp 0x414363
push 0x1000
lea eax, [ebp - 0x2328]
push 0
push eax
call fcn.0043e300
push 0xfff
lea ecx, [ebp - 0x2328]
push str.RuninUp_Fail
push ecx
mov dword [ebp - 0x232c], 0xa8
call dword [sym.imp.MSVCR100.dll_strncpy]
push 0x1004
lea edx, [ebp - 0x232c]
push edx
lea eax, [ebp - 0x5338]
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0x24
push 0x44aba0
lea ecx, [ebp - 0x5338]
push ecx
call fcn.0043ebfc
mov esi, dword [0x4422dc]
push str.RuninUp
lea edx, [ebp - 0x1308]
push 0x4445d0
push edx
call esi
push 0x445f8c
lea eax, [ebp - 0x12e8]
push 0x4445d0
push eax
call esi
push str.PASS
lea ecx, [ebp - 0x11bc]
push 0x4445d0
push ecx
call esi
mov eax, dword [ebp - 0x5348]
mov ecx, dword [eax + 0xf6c]
add esp, 0x24
lea edx, [ebp - 0x1328]
push edx
push 0
push 0xbcf
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
add dword [eax - 0x74], ebp
pop edi
inc esp
add byte [eax - 0x30], ch
jne 0x414494
add byte [eax + 0x41], ch
push es
add byte [eax], al