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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4dbbf1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x57b750]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0047380a
and dword [esp + 0x1c], 0
movzx eax, al
inc eax
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x49031c
mov dword [esp + 0x20], 1
xor edi, edi
push edi
call fcn.004ba798
pop ecx
push 0x38
call fcn.004985b0
pop ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], edi
cmp eax, edi
je 0x490082
push eax
call fcn.00497513
mov esi, eax
jmp 0x490084
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.00415d0e
mov eax, dword [esi + 8]
push str.waste
push eax
mov ecx, esi
call fcn.004a49ab
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.004024df
call fcn.0045c866
pop ecx
call fcn.00499991
push eax
lea ecx, [esp + 0x1c]
call fcn.004727f7
push str.temp__reg.reg
lea eax, [ebx + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x4c], 1
call fcn.0040210c
add esp, 0xc
mov byte [esp + 0x40], 2
cmp dword [ebx + 0x38], edi
jne 0x49015e
lea edi, [ebx + 0x2c]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x490153
lea ecx, [esp + 0x24]
call fcn.0048fd8c
push eax
mov ecx, edi
mov byte [esp + 0x44], 3
call fcn.0040257e
mov byte [esp + 0x40], 2
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.004027b0
push 0x5231e4
mov ecx, edi
call fcn.00415cf1
push 0x557704
mov ecx, edi
call fcn.00415cf1
push dword [edi]
call fcn.0044d55e
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 0x490178
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x1c], 0
je 0x4901cf
cmp dword [ebx + 8], 0
je 0x490232
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.0040f56d
add esp, 0xc
call fcn.0045c866
pop ecx
lea eax, [esp + 0x14]
push eax
push dword [ebx + 8]
call fcn.00498470
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
test al, al
jne 0x4901c8
push str.64_Bit_reg_export__failed__
jmp 0x490227
push str.64_Bit_reg_export__Done__
jmp 0x490227
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.0040f56d
add esp, 0xc
call fcn.0045c866
pop ecx
push 1
push 0x1c
push dword [ebx + 4]
call fcn.004a8948
test eax, eax
je 0x490354
lea eax, [esp + 0x14]
push eax
push dword [ebx + 4]
call fcn.00498470
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
test al, al
jne 0x490222
push str.Regexport32_failed__
jmp 0x490227
push str.Reg_Export_32_Done___
call fcn.004024df
call fcn.0045c866
pop ecx
mov eax, dword [ebx + 0x40]
push 0x5578cc
inc eax
push eax
lea eax, [esp + 0x20]
push str._.8d._s
push eax
call fcn.00402967
mov eax, dword [esi + 8]
add esp, 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
mov ecx, esi
call fcn.004a4959
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.0040f56d
add esp, 0xc
call fcn.0045c866
pop ecx
push dword [esp + 0x14]
call edi
test eax, eax
je 0x490387
push dword [esp + 0x18]
mov eax, dword [ebx + 0x38]
mov ecx, dword [esp + 0x18]
call fcn.0044d65f
pop ecx
test eax, eax
jne 0x490387
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.ZIP_File_OK_
call fcn.004024df
call fcn.0045c866
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.00415d0e
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.Temp_File_Deleted__operation_added
call fcn.004024df
call fcn.0045c866
inc dword [ebx + 0x40]
pop ecx
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004027b0
or dword [esp + 0x40], 0xffffffff
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004027b0
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x2c]
jl 0x49005b
push 0
call fcn.004ba798
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.004024df
call fcn.0045c866
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.004024df
call fcn.0045c866
pop ecx
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004027b0
xor al, al
jmp 0x490341
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.ZipAdd_failed__
jmp 0x490360