Function at 0x10025c90
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10048572
mov eax, dword fs:[0]
push eax
sub esp, 0x7a0
mov eax, dword [0x10056024]
xor eax, esp
mov dword [esp + 0x798], eax
push ebx
push esi
push edi
mov eax, dword [0x10056024]
xor eax, esp
push eax
lea eax, [esp + 0x7b0]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov dword [esp + 0x30], ecx
call edi
cmp eax, 0xffffffff
je 0x10026000
push esi
call edi
test al, 0x10
jne 0x10026000
xor ebx, ebx
push 0x206
lea eax, [esp + 0x192]
push ebx
push eax
mov word [esp + 0x198], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov edx, 0x104
mov eax, esi
lea ecx, [esp + 0x18c]
call fcn.100093b0
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea ecx, [esp + 0x1a4]
push ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea edx, [esp + 0x24]
push edx
mov esi, eax
push 4
lea eax, [esp + 0x28]
push eax
push esi
call edi
push ebx
lea ecx, [esp + 0x24]
push ecx
push 4
lea edx, [esp + 0x3c]
push edx
push esi
call edi
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
mov dword [esp + 0x18], eax
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
push ebx
push ebx
push 8
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x14]
push ebx
lea eax, [esp + 0x18]
push eax
push ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x14]
push edx
push edi
call sub.Encrypt.dll_BRCrc32
add esp, 8
cmp eax, dword [esp + 0x30]
jne 0x10025e10
call sub.Compress.dll_CreateCompressObject
mov edx, dword [eax]
mov dword [esp + 0x24], eax
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esp + 0x1c]
push ecx
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
add esp, 4
mov esi, eax
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
push edi
call edx
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
jmp 0x10025e77
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea eax, [esp + 0x1a4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push ebx
mov edi, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
mov dword [esp + 0x20], eax
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
push ebx
push ebx
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x1c]
push ebx
lea ecx, [esp + 0x20]
push ecx
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x103
lea eax, [esp + 0x89]
push ebx
push eax
mov byte [esp + 0x90], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x84]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.AOMEITaskTmp.xml
lea edx, [esp + 0x88]
push 0x104
push edx
call dword [sym.imp.MSVCR80.dll_strcat_s]
add esp, 0xc
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, dword [esp + 0x1c]
push ebx
lea ecx, [esp + 0x20]
push ecx
push edx
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
push 0x48
mov byte [esp + 0x1f], bl
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, ebx
mov dword [esp + 0x7b8], ebx
je 0x10025f2e
push eax
call fcn.10039a50
mov dword [esp + 0x20], eax
jmp 0x10025f32
mov dword [esp + 0x20], ebx
lea eax, [esp + 0x84]
mov dword [esp + 0x7b8], 0xffffffff
mov ecx, dword [esp + 0x20]
push eax
push ecx
call fcn.10039b00
movzx eax, al
cmp eax, ebx
je 0x1002653c
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x24]
mov esi, str.BackupRecoveryTasks
call fcn.100392e0
mov edi, eax
cmp edi, ebx
je 0x10025f94
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
mov ecx, edi
call edx
test eax, eax
jne 0x10026028
mov esi, str.BackupRecoveryTasks
mov eax, edi
call fcn.10039330
mov edi, eax
cmp edi, ebx
jne 0x10025f71
xor eax, eax
mov esi, str.BackupTasks
call fcn.100392e0
mov edi, eax
cmp edi, ebx
je 0x10025fc9
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
mov ecx, edi
call edx
test eax, eax
jne 0x10026036
mov esi, str.BackupTasks
mov eax, edi
call fcn.10039330
mov edi, eax
cmp edi, ebx
jne 0x10025fa6
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x20]
mov esi, str.BackupRecoveryTasks
call fcn.100392e0
mov edi, eax
cmp edi, ebx
je 0x10026000
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
mov ecx, edi
call edx
test eax, eax
jne 0x10026045
mov esi, str.BackupRecoveryTasks
mov eax, edi
call fcn.10039330
mov edi, eax
cmp edi, ebx
jne 0x10025fe1
xor eax, eax
mov ecx, dword [esp + 0x7b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x798]
xor ecx, esp
call fcn.10045f6c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
mov ecx, edi
call edx
jmp 0x10025f96
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
mov ecx, edi
call edx
mov dword [esp + 0x24], eax
jmp 0x10025fcd
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
mov ecx, edi
call edx
cmp eax, ebx
je 0x10026000
mov esi, str.BackupTasks
call fcn.100392e0
mov edi, eax
cmp edi, ebx
je 0x10026000
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
mov ecx, edi
call edx
test eax, eax
jne 0x10026086
mov esi, str.BackupTasks
mov eax, edi
call fcn.10039330
mov edi, eax
cmp edi, ebx
jne 0x10026062
jmp 0x10026000
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
mov ecx, edi
call edx
cmp eax, ebx
je 0x10026000
mov esi, str.BackupTask
call fcn.100392e0
mov edi, eax
cmp edi, ebx
je 0x100260ca
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
mov ecx, edi
call edx
test eax, eax
jne 0x10026135
mov esi, str.BackupTask
mov eax, edi
call fcn.10039330
mov edi, eax
cmp edi, ebx
jne 0x100260a7
xor eax, eax
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x10026000
mov eax, dword [0x1004a4dc]
mov ecx, dword [0x1004a4e0]
mov edx, dword [0x1004a4e4]
mov dword [esp + 0x74], eax
mov eax, dword [0x1004a4e8]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x7b8], 1
mov edi, dword [esp + 0x14]
add edi, 0x2c
mov esi, 0x1004c3c4
call fcn.1003a8e0
cmp eax, ebx
je 0x10026140
mov eax, dword [eax + 0x18]
add eax, 8
jmp 0x10026142
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
mov ecx, edi
call edx
jmp 0x100260cc
xor eax, eax
push eax
lea edi, [esp + 0x78]
call fcn.1000d640
mov esi, dword [esp + 0x30]
mov edx, dword [esi]
mov eax, dword [edx + 0xdc]
add esp, 4
mov ecx, esi
xor edi, edi
call eax
test eax, eax
jle 0x1002619a
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
push edi
lea eax, [esp + 0x68]
push eax
mov ecx, esi
call edx
mov ecx, eax
lea eax, [esp + 0x74]
call fcn.1000d340
test eax, eax
jne 0x10026405
mov eax, dword [esi]
mov edx, dword [eax + 0xdc]
mov ecx, esi
add edi, 1
call edx
cmp edi, eax
jl 0x10026165
mov eax, dword [esp + 0x14]
mov esi, str.Schedule
call fcn.100392e0
mov edi, eax
cmp edi, ebx
je 0x100261d3
mov edi, edi
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
mov ecx, edi
call edx
test eax, eax
jne 0x100263e0
mov esi, str.Schedule
mov eax, edi
call fcn.10039330
mov edi, eax
cmp edi, ebx
jne 0x100261b0
mov dword [esp + 0x30], ebx
fldz
mov edi, dword [esp + 0x14]
mov esi, str.Version
fstp qword [esp + 0x5c]
add edi, 0x2c
call fcn.1003a8e0
cmp eax, ebx
je 0x1002620c
mov eax, dword [eax + 0x18]
lea ecx, [esp + 0x5c]
push ecx
add eax, 8
push 0x1004ea04
push eax
call dword [sym.imp.MSVCR80.dll_sscanf_s]
add esp, 0xc
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x100263b9
lea edi, [eax + 0x2c]
mov esi, str.WindowsSchedule
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
call fcn.1003a8e0
cmp eax, ebx
je 0x1002624b
mov eax, dword [eax + 0x18]
lea edx, [esp + 0x38]
push edx
add eax, 8
push 0x1004c760
push eax
call dword [sym.imp.MSVCR80.dll_sscanf_s]
add esp, 0xc
mov esi, str.TurnOff
call fcn.1003a8e0
cmp eax, ebx
je 0x10026273
mov eax, dword [eax + 0x18]
lea ecx, [esp + 0x34]
push ecx
add eax, 8
push 0x1004c760
push eax
call dword [sym.imp.MSVCR80.dll_sscanf_s]
add esp, 0xc
cmp dword [esp + 0x38], ebx
je 0x100263b9
push 0x206
lea edx, [esp + 0x5a2]
push ebx
push edx
mov word [esp + 0x5a8], bx
call sub.MSVCR80.dll_memset
movzx eax, byte [esp + 0x8f]
movzx ecx, byte [esp + 0x8e]
add esp, 0xc
push eax
mov eax, dword [esp + 0x84]
push ecx
movzx ecx, byte [esp + 0x87]
movzx edx, ah
push edx
movzx edx, byte [esp + 0x8a]
movzx eax, al
push eax
mov eax, dword [esp + 0x8c]
push ecx
push edx
movzx ecx, ah
push ecx
movzx ecx, word [esp + 0x94]
movzx edx, al
movzx eax, word [esp + 0x96]
push edx
mov edx, dword [esp + 0x94]
push eax
push ecx
push edx
lea eax, [esp + 0x5c8]
push 0x1004b2f0
push eax
mov dword [esp + 0x5c], ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x34
push 0x206
lea ecx, [esp + 0x39a]
push ebx
push ecx
mov word [esp + 0x3a0], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [esp + 0x59c]
push edx
push str._s.AOMEI
lea eax, [esp + 0x39c]
push 0x104
push eax
call dword [sym.imp.MSVCR80.dll_swprintf_s]
add esp, 0x10
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x7b8], 2
call fcn.1003cd90
mov esi, eax
mov edx, dword [esi]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x50]
push ecx
lea eax, [esp + 0x39c]
push eax
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 8]
lea ecx, [esp + 0x394]
push ecx
mov ecx, esi
call edx
lea ebx, [esp + 0x74]
lea esi, [esp + 0x3c]
call fcn.10027b80
lea esi, [esp + 0x4c]
mov byte [esp + 0x7b8], 1
call fcn.10008d10
xor ebx, ebx
push 0x50
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, ebx
mov byte [esp + 0x7b8], 3
je 0x100263f2
mov ecx, dword [esp + 0x14]
push ecx
push eax
call fcn.100394e0
jmp 0x100263f4
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
mov ecx, edi
call edx
mov dword [esp + 0x30], eax
jmp 0x100261d7
xor eax, eax
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x7b8], 1
call fcn.10039160
mov eax, dword [esp + 0x14]
mov esi, str.BackupTask
call fcn.10039330
mov edi, eax
cmp edi, ebx
je 0x10026443
lea esp, [esp]
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
test eax, eax
jne 0x10026525
mov esi, str.BackupTask
mov eax, edi
call fcn.10039330
mov edi, eax
cmp edi, ebx
jne 0x10026420
xor eax, eax
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x10026118
mov esi, dword [esp + 0x2c]
mov edi, dword [esi + 0x24]
mov eax, dword [edi + 0x20]
add eax, 8
call fcn.10039d90
mov edi, dword [esp + 0x20]
mov byte [esp + 0x1b], al
call fcn.10039130
cmp edi, ebx
je 0x1002647e
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
lea ecx, [esp + 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
xor edx, edx
xor esi, esi
mov ecx, dword [esp + 0x40]
cmp ecx, ebx
mov dword [esp + 0x24], edx
je 0x1002653c
mov eax, dword [esp + 0x44]
sub eax, ecx
sar eax, 4
cmp edx, eax
jae 0x10026533
mov edi, dword [ecx + esi]
mov edx, dword [esp + 0x2c]
mov edx, dword [edx]
mov edx, dword [edx + 0xa8]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [ecx + esi + 4]
mov dword [eax + 4], edi
mov edi, dword [ecx + esi + 8]
mov ecx, dword [ecx + esi + 0xc]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x3c]
mov dword [eax + 0xc], ecx
mov ecx, edi
call edx
mov edx, dword [edi]
mov dword [esp + 0x28], eax
push eax
mov eax, dword [edx + 0x10c]
mov ecx, edi
mov dword [esp + 0x38], edx
call eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [edx + 0x100]
push ecx
mov ecx, edi
call eax
mov edx, dword [esp + 0x24]
add edx, 1
add esi, 0x10
jmp 0x10026499
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
jmp 0x10026445
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
movzx eax, byte [esp + 0x1b]
jmp 0x10026002