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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d0294
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x55f6c0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00460c64
and dword [esp + 0x1c], 0
movzx eax, al
inc eax
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x476e03
mov dword [esp + 0x20], 1
xor edi, edi
push edi
call fcn.004ab94a
pop ecx
push 0x38
call fcn.00489d45
pop ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], edi
cmp eax, edi
je 0x476b69
push eax
call fcn.0047e132
mov esi, eax
jmp 0x476b6b
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.004789e1
mov eax, dword [esi + 8]
push str.waste
push eax
mov ecx, esi
call fcn.004961de
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.0040253e
call fcn.0044dcca
pop ecx
call fcn.0048b151
push eax
lea ecx, [esp + 0x1c]
call fcn.00402821
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 0x476c45
lea edi, [ebx + 0x2c]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x476c3a
lea ecx, [esp + 0x24]
call fcn.00476873
push eax
mov ecx, edi
mov byte [esp + 0x44], 3
call fcn.0040260d
mov byte [esp + 0x40], 2
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.00402883
push 0x522224
mov ecx, edi
call fcn.00411baa
push 0x53b81c
mov ecx, edi
call fcn.00411baa
push dword [edi]
call fcn.0043c2d2
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 0x476c5f
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x1c], 0
je 0x476cb6
cmp dword [ebx + 8], 0
je 0x476d19
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.0040c60b
add esp, 0xc
call fcn.0044dcca
pop ecx
lea eax, [esp + 0x14]
push eax
push dword [ebx + 8]
call fcn.0047f08d
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
test al, al
jne 0x476caf
push str.64_Bit_reg_export__failed__
jmp 0x476d0e
push str.64_Bit_reg_export__Done__
jmp 0x476d0e
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.0040c60b
add esp, 0xc
call fcn.0044dcca
pop ecx
push 1
push 0x1c
push dword [ebx + 4]
call fcn.004996e2
test eax, eax
je 0x476e3b
lea eax, [esp + 0x14]
push eax
push dword [ebx + 4]
call fcn.0047f08d
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
test al, al
jne 0x476d09
push str.Regexport32_failed__
jmp 0x476d0e
push str.Reg_Export_32_Done___
call fcn.0040253e
call fcn.0044dcca
pop ecx
mov eax, dword [ebx + 0x40]
push 0x53b9e4
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.0049618c
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.0040c60b
add esp, 0xc
call fcn.0044dcca
pop ecx
push dword [esp + 0x14]
call edi
test eax, eax
je 0x476e6e
push dword [esp + 0x18]
mov eax, dword [ebx + 0x38]
mov ecx, dword [esp + 0x18]
call fcn.0043c3d3
pop ecx
test eax, eax
jne 0x476e6e
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.ZIP_File_OK_
call fcn.0040253e
call fcn.0044dcca
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.004789e1
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.Temp_File_Deleted__operation_added
call fcn.0040253e
call fcn.0044dcca
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 0x476b42
push 0
call fcn.004ab94a
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.0040253e
call fcn.0044dcca
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.0040253e
call fcn.0044dcca
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 0x476e28
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.ZipAdd_failed__
jmp 0x476e47