Function at 0x10050ba0
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 0x10140c02
mov eax, dword fs:[0]
push eax
sub esp, 0x7a0
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0x798], eax
push ebx
push esi
push edi
mov eax, dword [0x10170024]
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]
mov ebx, ecx
push esi
mov dword [esp + 0x30], ebx
call edi
cmp eax, 0xffffffff
je 0x10051272
push esi
call edi
test al, 0x10
jne 0x10051272
xor edi, edi
push 0x206
lea eax, [esp + 0x192]
push edi
push eax
mov word [esp + 0x198], di
call sub.MSVCR80.dll_memset
add esp, 0xc
mov eax, 0x104
mov ecx, esi
lea edx, [esp + 0x18c]
call fcn.100040e0
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [esp + 0x1a4]
push ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x24]
push edx
mov esi, eax
push 4
lea eax, [esp + 0x28]
push eax
push esi
call edi
push 0
lea ecx, [esp + 0x24]
push ecx
push 4
lea edx, [esp + 0x34]
push edx
push esi
call edi
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
mov dword [esp + 0x1c], eax
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
push 0
push 0
push 8
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x1c]
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 + 0x18]
push edx
push edi
call sub.Encrypt.dll_BRCrc32
add esp, 8
cmp eax, dword [esp + 0x28]
jne 0x10050d28
call sub.Compress.dll_CreateCompressObject
mov edx, dword [eax]
mov dword [esp + 0x30], 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 + 0x34]
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 + 0x1c]
push esi
push eax
push edi
call edx
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
jmp 0x10050d97
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea eax, [esp + 0x1a4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push 0
mov edi, eax
push 0
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 0
push 0
push 0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x1c]
push 0
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 0
push eax
mov byte [esp + 0x90], 0
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 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, dword [esp + 0x1c]
push 0
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 + 0x1b], 0
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x24], eax
xor edi, edi
cmp eax, edi
mov dword [esp + 0x7b8], edi
je 0x10050e58
push eax
call fcn.1007dea0
mov esi, eax
mov dword [esp + 0x20], esi
jmp 0x10050e5e
mov dword [esp + 0x20], edi
mov esi, edi
lea eax, [esp + 0x84]
push eax
push esi
mov dword [esp + 0x7c0], 0xffffffff
call fcn.1007df90
movzx eax, al
cmp eax, edi
je 0x1005126b
mov eax, dword [ebx + 0x34]
mov ecx, str.BackupRecoveryTasks
call fcn.1007d770
mov ecx, str.BackupTasks
call fcn.1007d770
mov dword [esp + 0x30], eax
mov ecx, str.BackupRecoveryTasks
mov eax, esi
call fcn.1007d770
cmp eax, edi
je 0x10051272
mov ecx, str.BackupTasks
call fcn.1007d770
cmp eax, edi
je 0x10051272
mov ecx, str.BackupTask
call fcn.1007d770
cmp eax, edi
mov dword [esp + 0x18], eax
je 0x10051272
mov ecx, dword [0x1014692c]
mov edx, dword [0x10146930]
mov dword [esp + 0x74], ecx
mov ecx, dword [0x10146934]
mov dword [esp + 0x78], edx
mov edx, dword [0x10146938]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x7b8], 1
jmp 0x10050f24
mov eax, dword [esp + 0x18]
lea edi, [eax + 0x2c]
mov esi, 0x1014fa20
call fcn.1007ed30
test eax, eax
je 0x10050f3d
mov eax, dword [eax + 0x18]
add eax, 8
jmp 0x10050f3f
xor eax, eax
push eax
lea edi, [esp + 0x78]
call fcn.1002fa50
mov eax, dword [ebx]
mov edx, dword [eax + 0x104]
add esp, 4
mov ecx, ebx
xor esi, esi
call edx
test eax, eax
jle 0x10050f95
mov edi, edi
mov eax, dword [ebx]
mov edx, dword [eax + 0x30]
push esi
lea ecx, [esp + 0x68]
push ecx
mov ecx, ebx
call edx
mov ecx, eax
lea eax, [esp + 0x74]
call fcn.1002f730
test eax, eax
jne 0x10051197
mov eax, dword [ebx]
mov edx, dword [eax + 0x104]
mov ecx, ebx
add esi, 1
call edx
cmp esi, eax
jl 0x10050f60
mov edi, dword [esp + 0x18]
mov ecx, str.Schedule
mov eax, edi
call fcn.1007d770
fldz
mov esi, str.Version
fstp qword [esp + 0x5c]
add edi, 0x2c
mov dword [esp + 0x28], eax
call fcn.1007ed30
xor esi, esi
cmp eax, esi
je 0x10050fdc
mov eax, dword [eax + 0x18]
lea ecx, [esp + 0x5c]
push ecx
add eax, 8
push 0x1015370c
push eax
call dword [sym.imp.MSVCR80.dll_sscanf_s]
add esp, 0xc
cmp dword [esp + 0x28], esi
je 0x1005115d
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x28]
lea ebx, [esp + 0x34]
mov ecx, str.WindowsSchedule
mov eax, esi
call fcn.1007dac0
lea ebx, [esp + 0x38]
mov ecx, str.TurnOff
mov eax, esi
call fcn.1007dac0
cmp dword [esp + 0x34], 0
je 0x10051159
xor esi, esi
push 0x206
lea edx, [esp + 0x5a2]
push esi
push edx
mov word [esp + 0x5a8], si
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 0x1014c4a8
push eax
mov dword [esp + 0x58], esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x34
push 0x206
lea ecx, [esp + 0x39a]
push esi
push ecx
mov word [esp + 0x3a0], si
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], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov byte [esp + 0x7b8], 2
call fcn.100813b0
mov esi, eax
mov edx, dword [esi]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x24]
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.1005bfe0
mov byte [esp + 0x7b8], 1
lea esi, [esp + 0x4c]
call fcn.10029f90
mov ebx, dword [esp + 0x2c]
push 0x50
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov byte [esp + 0x7b8], 3
je 0x10051184
mov ecx, dword [esp + 0x18]
push ecx
push eax
call fcn.1007d8d0
jmp 0x10051186
xor eax, eax
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x7b8], 1
call fcn.1007d440
mov eax, dword [esp + 0x18]
mov ecx, str.BackupTask
call fcn.1007d7b0
test eax, eax
mov dword [esp + 0x18], eax
jne 0x10050f20
mov eax, dword [ebx + 0x34]
call fcn.1007df50
mov edi, dword [esp + 0x20]
mov byte [esp + 0x17], al
call fcn.1007d410
test edi, edi
je 0x100511d4
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 [ebx]
mov eax, dword [edx + 0x14]
mov ecx, ebx
call eax
xor edx, edx
xor esi, esi
mov ecx, dword [esp + 0x40]
test ecx, ecx
mov dword [esp + 0x2c], edx
je 0x1005126b
mov eax, dword [esp + 0x44]
sub eax, ecx
sar eax, 4
cmp edx, eax
jae 0x10051262
mov edi, dword [esi + ecx]
mov edx, dword [ebx]
mov edx, dword [edx + 0xcc]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esi + ecx + 4]
mov dword [eax + 4], edi
mov edi, dword [esi + ecx + 8]
mov ecx, dword [esi + ecx + 0xc]
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov ecx, ebx
call edx
mov edi, eax
mov eax, dword [ebx]
mov dword [esp + 0x24], eax
mov eax, dword [eax + 0x15c]
push edi
mov ecx, ebx
call eax
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [edx + 0x150]
push edi
mov ecx, ebx
call eax
mov edx, dword [esp + 0x2c]
add edx, 1
add esi, 0x10
jmp 0x100511ef
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
movzx eax, byte [esp + 0x17]
jmp 0x10051274
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.1012d370
mov esp, ebp
pop ebp
ret 4