Function at 0x10031df0
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x101451c4
mov eax, dword fs:[0]
push eax
sub esp, 0x358
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0x354], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10170024]
xor eax, esp
push eax
lea eax, [esp + 0x36c]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x37c]
mov dword [esp + 0x1c], ebp
mov dword [ebp], vtable.CUiRecord.0
mov dword [ebp + 4], esi
call fcn.1005fff0
mov dword [ebp + 0xc], eax
mov byte [eax + 0x2d], 1
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [eax + 8], eax
mov dword [ebp + 0x10], ebx
mov dword [esp + 0x374], ebx
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x3c], ebx
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x64], ebx
mov dword [ebp + 0x6c], ebx
mov dword [ebp + 0x70], ebx
mov dword [ebp + 0x74], ebx
mov dword [ebp + 0x7c], ebx
mov dword [ebp + 0x80], ebx
mov dword [ebp + 0x84], ebx
cmp esi, 2
mov byte [esp + 0x374], 5
mov dword [ebp + 0x88], ebx
je 0x1003216a
mov dword [ebp + 0x34], ebx
mov dword [ebp + 0x2c], ebx
mov dword [ebp + 0x90], ebx
call sub.Comn.dll_GetObjectSys
mov dword [ebp + 0x28], eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x1c]
mov dword [esp + 0x18], 1
call eax
test eax, eax
je 0x10031ff4
mov ecx, 0xa
mov esi, str.C:UsersAll_UsersAomeiBR_tasks2.2.xml
lea edi, [esp + 0x264]
push 0xdc
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x290]
push ebx
push ecx
call sub.MSVCR80.dll_memset
mov ecx, 0x12
mov esi, str.C:Documents_and_SettingsAll_UsersApplication_DataAomeiBR_tasks2.2.xml
lea edi, [esp + 0x16c]
rep movsd dword es:[edi], dword [esi]
push 0xba
lea edx, [esp + 0x1ba]
push ebx
push edx
movsw word es:[edi], word [esi]
call sub.MSVCR80.dll_memset
push 0x13c
lea eax, [esp + 0x40]
push ebx
push eax
mov dword [esp + 0x44], ebx
call sub.MSVCR80.dll_memset
mov esi, dword [sym.imp.MSVCR80.dll_strcpy_s]
lea ecx, [esp + 0x288]
push ecx
push 0x104
push 0x101724d0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esp, 0x30
lea edx, [esp + 0x20]
push edx
push 0x101724d0
call edi
cmp eax, 0xffffffff
jne 0x10031fa3
lea eax, [esp + 0x160]
push eax
push 0x104
push 0x101724d0
call esi
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
push 0x101724d0
call edi
cmp eax, 0xffffffff
je 0x10031fb7
cmp eax, 0xffffffff
mov dword [esp + 0x18], ebx
je 0x10031fb7
cmp eax, ebx
je 0x10031fb7
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
call sub.Comn.dll_GetObjectLog
mov esi, dword [eax]
push 0x101724d0
push 0x218
mov edi, str..UiRecord.cpp
mov dword [esp + 0x1c], eax
add esi, 0xc
call fcn.1002f7d0
mov edx, dword [esp + 0x1c]
add esp, 4
push eax
mov eax, dword [esi]
push str._s:_m_pSys__IsWinPE__:_s
push edx
call eax
add esp, 0x10
cmp dword [esp + 0x18], ebx
je 0x10032051
push 0x101724d0
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov eax, 0x101724d0
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x10032010
mov ecx, dword [str.AomeiBR_tasks2.2.xml]
mov edx, dword [0x1014fb24]
mov dword [eax], ecx
mov ecx, dword [0x1014fb28]
mov dword [eax + 4], edx
mov edx, dword [0x1014fb2c]
mov dword [eax + 8], ecx
mov ecx, dword [0x1014fb30]
mov dword [eax + 0xc], edx
mov dx, word [0x1014fb34]
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], dx
call sub.Comn.dll_GetObjectLog
mov esi, dword [eax]
push 0x101724d0
push 0x220
mov edi, str..UiRecord.cpp
mov dword [esp + 0x1c], eax
add esi, 0xc
call fcn.1002f7d0
mov ecx, dword [esi]
add esp, 4
push eax
mov eax, dword [esp + 0x1c]
push str._s:_CUiRecord:_s
push eax
call ecx
add esp, 0x10
mov ecx, ebp
mov dword [ebp + 0x14], ebx
call fcn.10032690
push 0x1014fb50
mov ecx, ebp
call fcn.10050ba0
push 0x1014fba0
mov ecx, ebp
call fcn.10050ba0
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.C:UsersAll_UsersAomeiBR_tasks.xml
call esi
push str.C:Documents_and_SettingsAll_UsersApplication_DataAomeiBR_tasks.xml
call esi
push 0x1014fca0
mov ecx, ebp
call fcn.10050ba0
push 0x1014fcf0
mov ecx, ebp
call fcn.10050ba0
push str.C:UsersAll_UsersAomeiBR_tasks2.0.xml
call esi
push str.C:Documents_and_SettingsAll_UsersApplication_DataAomeiBR_tasks2.0.xml
call esi
push 0x1014fe00
mov ecx, ebp
call fcn.10050ba0
push 0x1014fe58
mov ecx, ebp
call fcn.10050ba0
push str.C:UsersAll_UsersAomeiBR_tasks2.0.1.xml
call esi
push str.C:Documents_and_SettingsAll_UsersApplication_DataAomeiBR_tasks2.0.1.xml
call esi
mov ecx, ebp
call fcn.10032690
cmp dword [ebp + 0x14], ebx
mov edx, dword [ebp]
mov ecx, ebp
je 0x10032123
mov eax, dword [edx + 0x138]
jmp 0x10032129
mov eax, dword [edx + 0x13c]
call eax
call fcn.10030230
call sub.ImgFile.dll_CreateObjectImgInfo
test byte [0x101a29a8], 1
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x88], ebx
jne 0x10032160
or dword [0x101a29a8], 1
call fcn.1008cea0
push 0x10145d10
call fcn.1012d48d
add esp, 4
mov dword [ebp + 0x88], 0x10189188
mov eax, ebp
mov ecx, dword [esp + 0x36c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x354]
xor ecx, esp
call fcn.1012d370
add esp, 0x364
ret 4