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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d891a
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x56f710]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0045d184
and dword [esp + 0x1c], 0
movzx eax, al
inc eax
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x47df83
mov dword [esp + 0x20], 1
xor edi, edi
push edi
call fcn.004b32aa
pop ecx
push 0x38
call fcn.00490d7c
pop ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], edi
cmp eax, edi
je 0x47dce9
push eax
call fcn.00485172
mov esi, eax
jmp 0x47dceb
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.00411f8f
mov eax, dword [esi + 8]
push str.waste
push eax
mov ecx, esi
call fcn.0049d315
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.0040254f
call fcn.0044d3b2
pop ecx
call fcn.0049219b
push eax
lea ecx, [esp + 0x1c]
call fcn.00402802
push str.temp__reg.reg
lea eax, [ebx + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x4c], 1
call fcn.0040217c
add esp, 0xc
mov byte [esp + 0x40], 2
cmp dword [ebx + 0x38], edi
jne 0x47ddc5
lea edi, [ebx + 0x2c]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x47ddba
lea ecx, [esp + 0x24]
call fcn.0047d9f3
push eax
mov ecx, edi
mov byte [esp + 0x44], 3
call fcn.004025ee
mov byte [esp + 0x40], 2
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.00402845
push 0x52d4c4
mov ecx, edi
call fcn.00411f5d
push 0x54a44c
mov ecx, edi
call fcn.00411f5d
push dword [edi]
call fcn.0043c7bb
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 0x47dddf
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x1c], 0
je 0x47de36
cmp dword [ebx + 8], 0
je 0x47de99
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.0040c9b1
add esp, 0xc
call fcn.0044d3b2
pop ecx
lea eax, [esp + 0x14]
push eax
push dword [ebx + 8]
call fcn.004860cd
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
test al, al
jne 0x47de2f
push str.64_Bit_reg_export__failed__
jmp 0x47de8e
push str.64_Bit_reg_export__Done__
jmp 0x47de8e
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.0040c9b1
add esp, 0xc
call fcn.0044d3b2
pop ecx
push 1
push 0x1c
push dword [ebx + 4]
call fcn.004a085b
test eax, eax
je 0x47dfbb
lea eax, [esp + 0x14]
push eax
push dword [ebx + 4]
call fcn.004860cd
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
test al, al
jne 0x47de89
push str.Regexport32_failed__
jmp 0x47de8e
push str.Reg_Export_32_Done___
call fcn.0040254f
call fcn.0044d3b2
pop ecx
mov eax, dword [ebx + 0x40]
push 0x54a614
inc eax
push eax
lea eax, [esp + 0x20]
push str._.8d._s
push eax
call fcn.00402a07
mov eax, dword [esi + 8]
add esp, 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
mov ecx, esi
call fcn.0049d2c3
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.0040c9b1
add esp, 0xc
call fcn.0044d3b2
pop ecx
push dword [esp + 0x14]
call edi
test eax, eax
je 0x47dfee
push dword [esp + 0x18]
mov eax, dword [ebx + 0x38]
mov ecx, dword [esp + 0x18]
call fcn.0043c8bc
pop ecx
test eax, eax
jne 0x47dfee
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.ZIP_File_OK_
call fcn.0040254f
call fcn.0044d3b2
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.00411f8f
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.Temp_File_Deleted__operation_added
call fcn.0040254f
call fcn.0044d3b2
inc dword [ebx + 0x40]
pop ecx
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00402845
or dword [esp + 0x40], 0xffffffff
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00402845
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x2c]
jl 0x47dcc2
push 0
call fcn.004b32aa
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.0040254f
call fcn.0044d3b2
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.0040254f
call fcn.0044d3b2
pop ecx
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00402845
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00402845
xor al, al
jmp 0x47dfa8
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.ZipAdd_failed__
jmp 0x47dfc7