Function at 0x10031fb0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101940c3
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x101ebb68]
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]
mov ebx, ecx
lea ecx, [ebp - 0xfc]
mov eax, ebx
call fcn.10033560
lea eax, [ebp - 0xfc]
push eax
lea esi, [ebp - 0xec]
mov dword [ebp - 4], 0
call fcn.10032c70
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0xec], 0
jne 0x10032034
push str.APP_OBTAIN_IMPL
push str.Calling_ApplicationMgrI::getAppsInfo_is_not_set_Responder
call dword [sym.imp.MGCore.dll_public:_static_class_MGDecorateLog____cdecl_MGSingleton_class_MGDecorateLog__0_::getInstance_void_]
mov ecx, eax
call dword [sym.imp.MGCore.dll_public:_void___thiscall_MGDecorateLog::warning_char_const___char_const__]
mov eax, dword [edi]
mov esi, dword [sym.imp.MSVCR100.dll___RTtypeid]
xor ecx, ecx
cmp dword [ebx + 0x54], 1
push eax
setne cl
inc ecx
mov dword [ebp - 0xdc], ecx
call esi
add esp, 4
push eax
mov ecx, 0x101f1878
call dword [sym.imp.MSVCR100.dll_public:_bool___thiscall_type_info::operator_class_type_info_const__const]
test al, al
je 0x1003233e
push edi
lea esi, [ebp - 0xe4]
call fcn.10033540
add esp, 4
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0xe4]
mov eax, dword [edx + 0x10]
cmp eax, 3
ja case.default.0x1003208b
jmp dword [eax*4 + 0x1003285c]
cmp dword [ebp - 0xdc], 1
mov eax, str.LOCAL_APP
je 0x100320a5
mov eax, str.SYSTEM_APP
push eax
push 0x101a6b0c
lea esi, [ebp - 0xbc]
call fcn.1000c270
add esp, 8
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
jb 0x100320c5
mov eax, dword [eax]
push str.APP_OBTAIN_IMPL
push eax
call dword [sym.imp.MGCore.dll_public:_static_class_MGDecorateLog____cdecl_MGSingleton_class_MGDecorateLog__0_::getInstance_void_]
mov ecx, eax
call dword [sym.imp.MGCore.dll_public:_void___thiscall_MGDecorateLog::info_char_const___char_const__]
lea ecx, [ebp - 0xbc]
call fcn.1000c240
lea eax, [ebp - 0xe4]
mov byte [ebp - 4], 1
call fcn.100089e0
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 0
call fcn.100089e0
lea eax, [ebp - 0xfc]
mov dword [ebp - 4], 0xffffffff
call fcn.100089e0
mov eax, 4
jmp 0x1003283e
mov eax, dword [0x101feda8]
test eax, eax
jne 0x1003212c
call fcn.1000b0e0
mov esi, dword [ebp - 0xdc]
lea ecx, [ebp - 0x10c]
push ecx
mov ecx, esi
mov edx, eax
call fcn.100b2370
lea eax, [ebp - 0x10c]
call fcn.100089e0
mov eax, dword [ebx + 0x54]
push 1
lea edx, [ebx + 0x58]
push eax
lea ecx, [ebp - 0xec]
call fcn.100319f0
mov eax, str.LOCAL_APP
cmp esi, 1
je 0x10032170
mov eax, str.SYSTEM_APP
push eax
push 0x101a6b1c
lea esi, [ebp - 0x68]
call fcn.1000c270
add esp, 8
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 0x10
jb 0x1003218d
mov eax, dword [eax]
push str.APP_OBTAIN_IMPL
push eax
call dword [sym.imp.MGCore.dll_public:_static_class_MGDecorateLog____cdecl_MGSingleton_class_MGDecorateLog__0_::getInstance_void_]
mov ecx, eax
call dword [sym.imp.MGCore.dll_public:_void___thiscall_MGDecorateLog::info_char_const___char_const__]
lea ecx, [ebp - 0x68]
call fcn.1000c240
lea eax, [ebp - 0xe4]
mov byte [ebp - 4], 1
call fcn.100089e0
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 0
call fcn.100089e0
lea eax, [ebp - 0xfc]
mov dword [ebp - 4], 0xffffffff
call fcn.100089e0
jmp 0x10032839
lea eax, [ebp - 0xe4]
mov byte [ebp - 4], 1
call fcn.100089e0
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 0
call fcn.100089e0
lea eax, [ebp - 0xfc]
mov dword [ebp - 4], 0xffffffff
call fcn.100089e0
mov eax, 3
jmp 0x1003283e
cmp dword [ebp - 0xdc], 1
mov eax, str.LOCAL_APP
je 0x1003222b
mov eax, str.SYSTEM_APP
push eax
push 0x101a6b28
lea esi, [ebp - 0xd8]
call fcn.1000c270
add esp, 8
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
jb 0x1003224b
mov eax, dword [eax]
push str.APP_OBTAIN_IMPL
push eax
call dword [sym.imp.MGCore.dll_public:_static_class_MGDecorateLog____cdecl_MGSingleton_class_MGDecorateLog__0_::getInstance_void_]
mov ecx, eax
call dword [sym.imp.MGCore.dll_public:_void___thiscall_MGDecorateLog::info_char_const___char_const__]
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 2
call fcn.1000c240
mov eax, dword [0x101feda8]
test eax, eax
jne 0x1003227c
call fcn.1000b0e0
mov esi, dword [ebp - 0xdc]
push esi
lea edi, [ebp - 0xf4]
mov ecx, eax
call fcn.100b1d90
mov byte [ebp - 4], 6
cmp dword [ebp - 0xf4], 0
jne 0x100322ce
mov eax, dword [0x101feda8]
test eax, eax
jne 0x100322ab
call fcn.1000b0e0
lea ecx, [ebp - 0x104]
push ecx
mov ecx, esi
mov edx, eax
call fcn.100b2370
lea eax, [ebp - 0x104]
call fcn.100089e0
mov eax, dword [ebx + 0x54]
push 1
push eax
jmp 0x100322d4
mov ecx, dword [ebx + 0x54]
push 0
push ecx
lea edx, [ebx + 0x58]
lea ecx, [ebp - 0xec]
call fcn.100319f0
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 2
call fcn.100089e0
jmp 0x100321a9
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0xe0]
test esi, esi
je 0x100327c8
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x100327c8
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x100327c8
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
jmp 0x100327c8
mov eax, dword [edi]
push eax
call esi
add esp, 4
push eax
mov ecx, 0x101f18a0
call dword [sym.imp.MSVCR100.dll_public:_bool___thiscall_type_info::operator_class_type_info_const__const]
test al, al
je 0x100327c8
push str.APP_OBTAIN_IMPL
push str.Received_a_GetAppForIconResp_message
call dword [sym.imp.MGCore.dll_public:_static_class_MGDecorateLog____cdecl_MGSingleton_class_MGDecorateLog__0_::getInstance_void_]
mov ecx, eax
call dword [sym.imp.MGCore.dll_public:_void___thiscall_MGDecorateLog::info_char_const___char_const__]
push edi
lea esi, [ebp - 0xf4]
call fcn.10033490
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0xf4]
mov eax, dword [eax + 0x18]
push 0
push eax
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.MGCore.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_MGStringUtil::convertANSIToUnicode_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___enum_MGStringUtil::eSrcCodePage_]
add esp, 0x10
lea edx, [ebp - 0xe0]
mov ebx, 8
push edx
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], bl
push eax
lea edi, [ebx - 7]
mov dword [ebp - 0xe0], 0x2f
call fcn.10014750
cmp eax, 0xffffffff
je 0x10032404
push 0xffffffffffffffff
lea ecx, [eax + 1]
lea esi, [ebp - 0x68]
lea edx, [ebp - 0xa0]
call fcn.100143f0
mov edi, eax
lea esi, [ebp - 0xa0]
mov byte [ebp - 4], 9
call fcn.1000ae80
mov byte [ebp - 4], bl
cmp dword [ebp - 0x54], ebx
jb 0x10032404
mov ecx, dword [ebp - 0x68]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
push 1
mov eax, 0x101a37bc
lea esi, [ebp - 0x84]
mov dword [ebp - 0x70], 7
mov dword [ebp - 0x74], 0
mov word [ebp - 0x84], dx
call fcn.1000b950
mov byte [ebp - 4], 0xa
mov eax, dword [0x101feda4]
test eax, eax
jne 0x1003243f
call fcn.10006d40
lea edx, [ebp - 0x68]
mov ecx, eax
call fcn.10061710
mov ecx, eax
lea eax, [ebp - 0x84]
lea ebx, [ebp - 0xd8]
mov byte [ebp - 4], 0xb
call fcn.10007f90
mov ecx, eax
lea eax, [ebp - 0xa0]
lea ebx, [ebp - 0x4c]
mov byte [ebp - 4], 0xc
call fcn.10008020
mov edi, 8
cmp dword [ebp - 0xc4], edi
jb 0x10032491
mov eax, dword [ebp - 0xd8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, 7
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0xc8], ebx
mov word [ebp - 0xd8], cx
cmp dword [ebp - 0x54], edi
jb 0x100324bf
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], ax
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0x70], edi
jb 0x100324e4
mov ecx, dword [ebp - 0x84]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x4c]
xor edx, edx
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], ebx
mov word [ebp - 0x84], dx
cmp dword [ebp - 0x38], edi
jae 0x100324fe
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10032515
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10032527
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], edi
jae 0x10032520
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0xdc]
call dword [sym.imp.AdbManager.dll_public:_void___thiscall_CAdbClient::constructor_void_]
push ebx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x30]
push ecx
mov byte [ebp - 4], 0x11
call dword [sym.imp.MGCore.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_MGStringUtil::convertUnicodeToANSI_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___enum_MGStringUtil::eSrcCodePage_]
add esp, 0xc
mov byte [ebp - 4], 0x12
cmp dword [eax + 0x14], 0x10
jb 0x10032555
mov eax, dword [eax]
mov edi, dword [ebp - 0xf4]
mov ecx, dword [edi + 0x18]
cmp dword [ecx + 0x14], 0x10
jb 0x10032566
mov ecx, dword [ecx]
push 1
push eax
push ecx
lea ecx, [ebp - 0xdc]
call dword [sym.imp.AdbManager.dll_public:_enum_emError___thiscall_CAdbClient::PullFile_char_const___char_const___bool_]
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x1c], 0x10
mov esi, eax
jb 0x1003258f
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp esi, ebx
je 0x10032628
mov eax, dword [edi + 0x18]
push eax
lea eax, [ebp - 0xbc]
push eax
call dword [sym.imp.MGCore.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_MGStringUtil::convertUTF8ToANSI_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 8
mov byte [ebp - 4], 0x13
cmp dword [eax + 0x14], 0x10
jb 0x100325b7
mov eax, dword [eax]
push eax
push str.pull__s_failed
lea esi, [ebp - 0x30]
call fcn.1000c270
add esp, 8
mov byte [ebp - 4], 0x14
cmp dword [eax + 0x14], 0x10
jb 0x100325d4
mov eax, dword [eax]
push str.APP_OBTAIN_IMPL
push eax
call dword [sym.imp.MGCore.dll_public:_static_class_MGDecorateLog____cdecl_MGSingleton_class_MGDecorateLog__0_::getInstance_void_]
mov ecx, eax
call dword [sym.imp.MGCore.dll_public:_void___thiscall_MGDecorateLog::warning_char_const___char_const__]
cmp dword [ebp - 0x1c], 0x10
jb 0x100325fb
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, 0xf
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0xa8], 0x10
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
jb 0x1003262d
mov edx, dword [ebp - 0xbc]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x1003262d
mov esi, 0xf
cmp dword [ebp - 0xec], ebx
je 0x1003272c
push 0x38
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, ebx
je 0x1003265b
mov dword [eax + 0x14], esi
mov dword [eax + 0x10], ebx
mov byte [eax], bl
mov dword [eax + 0x30], esi
mov dword [eax + 0x2c], ebx
mov byte [eax + 0x1c], bl
jmp 0x1003265d
xor eax, eax
push eax
lea eax, [ebp - 0xe4]
push eax
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0xe0], ebx
call fcn.10032db0
push 0xffffffffffffffff
mov byte [ebp - 4], 0x15
mov eax, dword [edi + 0xc]
mov esi, dword [ebp - 0xe4]
push ebx
push eax
mov ecx, esi
call fcn.1000bd90
push ebx
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0xbc]
push edx
call dword [sym.imp.MGCore.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_MGStringUtil::convertUnicodeToANSI_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___enum_MGStringUtil::eSrcCodePage_]
add esp, 0xc
lea ecx, [esi + 0x1c]
push eax
mov byte [ebp - 4], 0x16
call fcn.1000b240
cmp dword [ebp - 0xa8], 0x10
jb 0x100326c9
mov eax, dword [ebp - 0xbc]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0xe4]
lea edi, [ebp - 0x24]
mov byte [ebp - 4], 0x17
call fcn.10032ab0
mov byte [ebp - 4], 0x18
mov ecx, dword [ebp - 0xec]
mov edx, dword [ecx]
mov edx, dword [edx]
push 1
mov eax, edi
push eax
call edx
mov dword [ebp - 4], 0x17
jmp 0x10032711
lea esi, [ebp - 0x24]
mov byte [ebp - 4], 0x15
call fcn.10082640
lea eax, [ebp - 0xe4]
mov byte [ebp - 4], 0x11
call fcn.100089e0
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 0x10
call dword [sym.imp.AdbManager.dll_public:_void___thiscall_CAdbClient::destructor_void_]
mov edi, 8
cmp dword [ebp - 0x38], edi
jb 0x10032753
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], cx
cmp dword [ebp - 0x8c], edi
jb 0x1003277c
mov edx, dword [ebp - 0xa0]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x8c], esi
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0xf0]
xor eax, eax
mov dword [ebp - 0x90], ebx
mov word [ebp - 0xa0], ax
cmp esi, ebx
je 0x100327c8
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x100327c8
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100327c8
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0xe8]
test esi, esi
je 0x100327ff
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x100327ff
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100327ff
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0xf8]
test esi, esi
je 0x10032839
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10032839
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10032839
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov eax, 5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10178946
mov esp, ebp
pop ebp
ret 4