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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cfeae
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x55c6c0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00461ea4
and dword [esp + 0x1c], 0
movzx eax, al
inc eax
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x47673d
mov dword [esp + 0x20], 1
xor edi, edi
push edi
call fcn.004ab22a
pop ecx
push 0x38
call fcn.0048961d
pop ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], edi
cmp eax, edi
je 0x4764a3
push eax
call fcn.0047da54
mov esi, eax
jmp 0x4764a5
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.00411b92
mov eax, dword [esi + 8]
push str.waste
push eax
mov ecx, esi
call fcn.00495ad5
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.0040255d
call fcn.0044e684
pop ecx
call fcn.0048aa29
push eax
lea ecx, [esp + 0x1c]
call fcn.00402840
push str.temp__reg.reg
lea eax, [ebx + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x4c], 1
call fcn.004021ba
add esp, 0xc
mov byte [esp + 0x40], 2
cmp dword [ebx + 0x38], edi
jne 0x47657f
lea edi, [ebx + 0x2c]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x476574
lea ecx, [esp + 0x24]
call fcn.004761ad
push eax
mov ecx, edi
mov byte [esp + 0x44], 3
call fcn.0040262c
mov byte [esp + 0x40], 2
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.00402883
push 0x5201c4
mov ecx, edi
call fcn.00411b75
push 0x53812c
mov ecx, edi
call fcn.00411b75
push dword [edi]
call fcn.0043c2cd
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 0x476599
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x1c], 0
je 0x4765f0
cmp dword [ebx + 8], 0
je 0x476653
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.0040c5f2
add esp, 0xc
call fcn.0044e684
pop ecx
lea eax, [esp + 0x14]
push eax
push dword [ebx + 8]
call fcn.0047e9af
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
test al, al
jne 0x4765e9
push str.64_Bit_reg_export__failed__
jmp 0x476648
push str.64_Bit_reg_export__Done__
jmp 0x476648
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.0040c5f2
add esp, 0xc
call fcn.0044e684
pop ecx
push 1
push 0x1c
push dword [ebx + 4]
call fcn.00498ffb
test eax, eax
je 0x476775
lea eax, [esp + 0x14]
push eax
push dword [ebx + 4]
call fcn.0047e9af
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
test al, al
jne 0x476643
push str.Regexport32_failed__
jmp 0x476648
push str.Reg_Export_32_Done___
call fcn.0040255d
call fcn.0044e684
pop ecx
mov eax, dword [ebx + 0x40]
push 0x5382f4
inc eax
push eax
lea eax, [esp + 0x20]
push str._.8d._s
push eax
call fcn.00402a45
mov eax, dword [esi + 8]
add esp, 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
mov ecx, esi
call fcn.00495a83
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.0040c5f2
add esp, 0xc
call fcn.0044e684
pop ecx
push dword [esp + 0x14]
call edi
test eax, eax
je 0x4767a8
push dword [esp + 0x18]
mov eax, dword [ebx + 0x38]
mov ecx, dword [esp + 0x18]
call fcn.0043c3ce
pop ecx
test eax, eax
jne 0x4767a8
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.ZIP_File_OK_
call fcn.0040255d
call fcn.0044e684
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.00411b92
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.Temp_File_Deleted__operation_added
call fcn.0040255d
call fcn.0044e684
inc dword [ebx + 0x40]
pop ecx
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00402883
or dword [esp + 0x40], 0xffffffff
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00402883
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x2c]
jl 0x47647c
push 0
call fcn.004ab22a
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.0040255d
call fcn.0044e684
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.0040255d
call fcn.0044e684
pop ecx
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00402883
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00402883
xor al, al
jmp 0x476762
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.ZipAdd_failed__
jmp 0x476781