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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cbafd
mov eax, dword fs:[0]
push eax
sub esp, 0xa48
mov eax, dword [0x6403f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
test edi, edi
jne 0x45932d
lea eax, [edi + 1]
jmp 0x459715
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005163e0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
add esp, 0xc
push str.UtilsCefRes.dll
push edi
push eax
call ebx
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
jne 0x459375
mov eax, 2
jmp 0x459715
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.005163e0
add esp, 0xc
lea eax, [ebp - 0x420]
push str.Utilsceflibcef.dll
push edi
push eax
call ebx
lea eax, [ebp - 0x420]
push eax
call esi
test eax, eax
je 0x4595b5
cmp byte [ebp + 0xc], 0
jne 0x4595b5
lea ecx, [ebp - 0xa44]
call fcn.00407c40
mov dword [ebp - 4], 0
call fcn.00408c00
mov ecx, eax
test ecx, ecx
je 0x459731
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xa3c], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x459406
movzx eax, ax
lea ecx, [ebp - 0xa3c]
push eax
call fcn.00409170
jmp 0x459432
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459410
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa3c]
call fcn.004097b0
lea eax, [ebp - 0xa44]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0xa3c]
push eax
call fcn.00421af0
mov edx, dword [ebp - 0xa3c]
add esp, 8
test al, al
mov byte [ebp - 4], 0
sete byte [ebp - 0xa3d]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x459479
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xa3d], 0
mov esi, dword [ebp - 0xa44]
je 0x459492
mov edi, 3
jmp 0x45956f
lea ecx, [ebp - 0xa3c]
call fcn.00407c40
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0xa48]
call fcn.00407bc0
lea eax, [ebp - 0xa3c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0xa48]
push eax
call fcn.00421af0
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa48]
mov bl, al
call fcn.00407db0
test bl, bl
jne 0x4594e9
mov edi, 3
jmp 0x459561
lea eax, [ebp - 0xa54]
mov dword [ebp - 0xa48], 0
push eax
lea eax, [ebp - 0xa48]
mov dword [ebp - 0xa54], 0
push eax
push dword [ebp - 0xa3c]
mov dword [ebp - 0xa50], 0
mov dword [ebp - 0xa4c], 0
call fcn.00459740
lea eax, [ebp - 0xa4c]
push eax
lea eax, [ebp - 0xa50]
push eax
push esi
call fcn.00459740
mov eax, dword [ebp - 0xa48]
add esp, 0x18
sub eax, dword [ebp - 0xa50]
jne 0x45955b
mov eax, dword [ebp - 0xa54]
sub eax, dword [ebp - 0xa4c]
test eax, eax
js 0x459592
xor edi, edi
lea ecx, [ebp - 0xa3c]
call fcn.00407db0
or ebx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x45958b
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
jmp 0x459715
lea ecx, [ebp - 0xa3c]
call fcn.00407db0
lea ecx, [ebp - 0xa44]
mov dword [ebp - 4], 0xffffffff
call fcn.00407db0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x4595d0
mov eax, 5
jmp 0x459715
push str.Start
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x4595ea
lea eax, [esi + 6]
jmp 0x459715
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.005163e0
add esp, 0xc
lea eax, [ebp - 0x628]
push str.UtilsCef.7z
push edi
push eax
call ebx
lea eax, [ebp - 0x628]
push eax
call esi
cmp eax, 1
je 0x459627
mov eax, 7
jmp 0x459715
push str.Utils
lea ecx, [ebp - 0xa4c]
call fcn.00407bc0
lea eax, [ebp - 0x628]
mov dword [ebp - 4], 5
push eax
lea ecx, [ebp - 0xa44]
call fcn.00407bc0
push 0x208
lea eax, [ebp - 0x830]
mov byte [ebp - 4], 6
push 0
push eax
call fcn.005163e0
add esp, 0xc
lea eax, [ebp - 0x830]
push str.Utils7z.dll
push edi
push eax
call ebx
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45968f
lea esi, [eax + 8]
jmp 0x4596fd
lea eax, [ebp - 0x830]
push eax
call fcn.0059fa50
add esp, 4
test eax, eax
jne 0x4596a7
lea esi, [eax + 9]
jmp 0x4596fd
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.005163e0
add esp, 0xc
lea eax, [ebp - 0xa38]
push dword [ebp - 0xa4c]
push edi
push eax
call ebx
push 0
lea eax, [ebp - 0xa38]
push eax
push dword [ebp - 0xa44]
call fcn.0059f260
add esp, 0xc
test eax, eax
je 0x4596ef
mov esi, 0xa
jmp 0x4596fd
push dword [ebp - 0xa44]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
lea ecx, [ebp - 0xa44]
call fcn.00407db0
lea ecx, [ebp - 0xa4c]
call fcn.00407db0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004742a8
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00408570
int3