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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50a900
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5ff740]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00482292
and dword [esp + 0x1c], 0
movzx eax, al
inc eax
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x4a8acb
mov dword [esp + 0x20], 1
xor edi, edi
push edi
call fcn.004df44a
pop ecx
push 0x38
call fcn.004bd312
pop ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], edi
cmp eax, edi
je 0x4a8831
push eax
call fcn.004afeac
mov esi, eax
jmp 0x4a8833
xor esi, esi
or dword [esp + 0x40], 0xffffffff
lea eax, [esp + 0x20]
push eax
lea eax, [esi + 0x14]
mov dword [esp + 0x2c], esi
mov dword [esi + 0x34], 6
call fcn.004aa6a9
mov eax, dword [esi + 8]
push str.waste
push eax
mov ecx, esi
call fcn.004c973a
cmp dword [esp + 0x1c], edi
push ecx
setne al
mov ecx, esp
mov dword [esp + 0x34], esp
push str.Exporting_Reg_File
mov byte [esi + 0x30], al
call fcn.0040253b
call fcn.00454d39
pop ecx
call fcn.004be6f3
push eax
lea ecx, [esp + 0x1c]
call fcn.004027f9
push str.temp__reg.reg
lea eax, [ebx + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x4c], 1
call fcn.00402187
add esp, 0xc
mov byte [esp + 0x40], 2
cmp dword [ebx + 0x38], edi
jne 0x4a890d
lea edi, [ebx + 0x2c]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x4a8902
lea ecx, [esp + 0x24]
call fcn.004a853b
push eax
mov ecx, edi
mov byte [esp + 0x44], 3
call fcn.004025da
mov byte [esp + 0x40], 2
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.0040285b
push 0x5af644
mov ecx, edi
call fcn.0041417d
push 0x5ce7f4
mov ecx, edi
call fcn.0041417d
push dword [edi]
call fcn.0043e84c
pop ecx
mov dword [ebx + 0x38], eax
push dword [esp + 0x14]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call edi
test eax, eax
je 0x4a8927
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x1c], 0
je 0x4a897e
cmp dword [ebx + 8], 0
je 0x4a89e1
push ecx
mov eax, esp
mov dword [esp + 0x34], esp
lea ecx, [esp + 0x18]
push ecx
push str.Attempting_Exporting_for_64_bit_reg_file_:
push eax
call fcn.0040dc86
add esp, 0xc
call fcn.00454d39
pop ecx
lea eax, [esp + 0x14]
push eax
push dword [ebx + 8]
call fcn.004b0e07
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
test al, al
jne 0x4a8977
push str.64_Bit_reg_export__failed__
jmp 0x4a89d6
push str.64_Bit_reg_export__Done__
jmp 0x4a89d6
push ecx
mov eax, esp
mov dword [esp + 0x34], esp
lea ecx, [esp + 0x18]
push ecx
push str.Attempting_Exporting_for_32_bit_reg_file_:
push eax
call fcn.0040dc86
add esp, 0xc
call fcn.00454d39
pop ecx
push 1
push 0x1c
push dword [ebx + 4]
call fcn.004ccc57
test eax, eax
je 0x4a8b03
lea eax, [esp + 0x14]
push eax
push dword [ebx + 4]
call fcn.004b0e07
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
test al, al
jne 0x4a89d1
push str.Regexport32_failed__
jmp 0x4a89d6
push str.Reg_Export_32_Done___
call fcn.0040253b
call fcn.00454d39
pop ecx
mov eax, dword [ebx + 0x40]
push 0x5ce9bc
inc eax
push eax
lea eax, [esp + 0x20]
push str._.8d._s
push eax
call fcn.00402a1d
mov eax, dword [esi + 8]
add esp, 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
mov ecx, esi
call fcn.004c96e8
push ecx
mov eax, esp
mov dword [esp + 0x34], esp
lea ecx, [esp + 0x1c]
push ecx
push str.Attempting_TO_ZIP_Exported_File_:
push eax
call fcn.0040dc86
add esp, 0xc
call fcn.00454d39
pop ecx
push dword [esp + 0x14]
call edi
test eax, eax
je 0x4a8b36
push dword [esp + 0x18]
mov eax, dword [ebx + 0x38]
mov ecx, dword [esp + 0x18]
call fcn.0043e94d
pop ecx
test eax, eax
jne 0x4a8b36
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.ZIP_File_OK_
call fcn.0040253b
call fcn.00454d39
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x28]
push eax
lea eax, [ebx + 0x10]
call fcn.004aa6a9
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.Temp_File_Deleted__operation_added
call fcn.0040253b
call fcn.00454d39
inc dword [ebx + 0x40]
pop ecx
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040285b
or dword [esp + 0x40], 0xffffffff
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.0040285b
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x2c]
jl 0x4a880a
push 0
call fcn.004df44a
mov ecx, esp
mov dword [esp + 0x34], esp
push str.Export_Reg_Files_And_Add_Operation_Success__
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], edx
call fcn.0040253b
call fcn.00454d39
pop ecx
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.m_pRegExport32_not_initialized__
call fcn.0040253b
call fcn.00454d39
pop ecx
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.0040285b
xor al, al
jmp 0x4a8af0
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.ZipAdd_failed__
jmp 0x4a8b0f