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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x476458]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, edx
cmp dword [edi + 0x14], 8
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], ecx
jb 0x415401
mov eax, dword [edi]
jmp 0x415403
mov eax, edi
xor ebx, ebx
cmp eax, ebx
jne 0x41540e
mov eax, 0x464c78
xor edx, edx
mov ecx, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x415423
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x2c]
call fcn.00408f90
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x90]
mov esi, vtable.af_path_temp_class_af_path_impl_win_tempW__class_af_stringW_.0
push ecx
mov dword [ebp - 0x94], esi
call fcn.004039c0
cmp dword [ebp - 0x18], 8
jb 0x415468
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004410cb
add esp, 4
mov eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41549e
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x94], esi
call fcn.00403ac0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00440ba3
mov esp, ebp
pop ebp
ret
xor ecx, ecx
push ebx
mov word [ebp - 0x2c], cx
push edi
or eax, 0xffffffff
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x44], vtable.af_file_temp_class_af_file_impl_win_tempW__class_af_stringW_.0
mov dword [ebp - 0x40], vtable.af_file_impl_win_tempW.0
mov byte [ebp - 0x3c], 1
mov dword [ebp - 0x38], 0xc0000000
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.00402ec0
mov esi, 3
nop
lea edx, [ebp - 0x40]
push edx
call fcn.00415a30
mov edi, eax
mov dword [ebp - 0x98], edi
cmp edi, ebx
jne 0x41550b
cmp esi, 1
je 0x4155ac
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
dec esi
cmp esi, ebx
jg 0x4154e0
mov eax, dword [ebp - 0xa0]
cmp eax, ebx
je 0x415517
mov dword [eax], ebx
mov eax, dword [ebp - 0xa4]
cmp eax, ebx
je 0x415523
mov dword [eax], ebx
push edi
call fcn.00442245
mov edi, eax
add esp, 4
mov dword [ebp - 0x9c], edi
cmp edi, ebx
je 0x4155ee
mov esi, 3
mov edx, dword [ebp - 0x98]
push edx
mov ebx, edi
lea eax, [ebp - 0x40]
call fcn.00415b10
test eax, eax
jne 0x41556c
cmp esi, 1
je 0x415626
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
dec esi
test esi, esi
jg 0x415541
mov esi, dword [ebp - 0x98]
push esi
call fcn.00442245
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x415598
push ebx
mov edx, esi
mov ecx, edi
call fcn.0043e240
mov esi, eax
add esp, 4
test esi, esi
jg 0x415631
push edi
call fcn.004411f8
add esp, 4
push ebx
call fcn.004411f8
add esp, 4
jmp 0x4155ee
cmp byte [ebp - 0x3c], bl
jne 0x4155c6
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x4155c2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x3c], 1
mov eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4155ee
mov ecx, dword [ebp - 0x88]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4155ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], vtable.af_file_temp_class_af_file_impl_win_tempW__class_af_stringW_.0
call fcn.00415310
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x94], vtable.af_path_temp_class_af_path_impl_win_tempW__class_af_stringW_.0
call fcn.00403ac0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00440ba3
mov esp, ebp
pop ebp
ret
push edi
call fcn.004411f8
add esp, 4
jmp 0x4155ee
push esi
mov dword [ebp - 0x98], 0
call fcn.00442245
mov edi, eax
add esp, 4
test edi, edi
jne 0x415656
mov eax, dword [ebp - 0x9c]
push eax
jmp 0x415599
push esi
push 0
push edi
call fcn.00446be0
add esp, 0xc
call fcn.00402b90
mov edx, dword [eax]
mov edx, dword [edx + 8]
push 8
lea ecx, [ebp - 0x10]
push ecx
mov ecx, eax
call edx
push esi
push ebx
lea ecx, [ebp - 0x98]
mov edx, edi
lea eax, [ebp - 0x10]
call fcn.0042df50
mov esi, eax
add esp, 8
test esi, esi
je 0x4156a0
push edi
call fcn.004411f8
add esp, 4
xor edi, edi
xor eax, eax
jmp 0x4156a6
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0xa0]
test ecx, ecx
je 0x4156b2
mov dword [ecx], eax
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x4156be
mov dword [eax], edi
mov eax, dword [ebp - 0x9c]
push eax
call fcn.004411f8
add esp, 4
push ebx
call fcn.004411f8
add esp, 4
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], vtable.af_file_temp_class_af_file_impl_win_tempW__class_af_stringW_.0
call fcn.00415310
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x94], vtable.af_path_temp_class_af_path_impl_win_tempW__class_af_stringW_.0
call fcn.00403ac0
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00440ba3
mov esp, ebp
pop ebp
ret