Function at 0x41a310
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44dc1d
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x48d06c]
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, edx
mov esi, ecx
test esi, esi
je 0x41a6f1
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00424870
push 0x104
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.00438b2e
add esp, 0x18
test eax, eax
je 0x41a6f1
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41a6f1
lea ecx, [ebp - 0x21c]
call fcn.0041b790
test al, al
je 0x41a6f1
inc dword [0x48f310]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x220]
test eax, eax
lea eax, [ebp - 0x21c]
push eax
je 0x41a40c
call fcn.004092a0
mov dword [ebp - 4], 0
push dword [eax]
push str.success_to_delete_File:__s.
push 0x48dac0
call fcn.00417de0
mov dword [ebp - 4], 0xffffffff
add esp, 0xc
mov edx, dword [ebp - 0x220]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jmp 0x41a6df
call fcn.004092a0
mov dword [ebp - 4], 1
push dword [eax]
push str.failed_to_delete_File:__s____
push 0x48dac0
call fcn.00417de0
mov dword [ebp - 4], 0xffffffff
or ebx, 0xffffffff
mov edx, dword [ebp - 0x220]
add esp, 0xc
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41a453
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x41a6e9
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x224]
call fcn.004092a0
push 4
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x224]
call fcn.00414cb0
mov ecx, str..tmp
mov eax, dword [eax]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41a4b6
test dx, dx
je 0x41a4b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41a4b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41a490
xor esi, esi
jmp 0x41a4bb
sbb esi, esi
or esi, 1
mov edx, dword [ebp - 0x220]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41a4d8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x41a665
lea ecx, [ebp - 0x220]
call fcn.00408930
push 0x5c
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 3
call fcn.00409c00
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x224]
call fcn.00409240
mov byte [ebp - 4], 4
mov ecx, 1
mov esi, dword [ebp - 0x220]
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x41a543
push 0x104
lea ecx, [ebp - 0x220]
call fcn.00408a90
mov esi, dword [ebp - 0x220]
mov edi, dword [ebp - 0x230]
push esi
push 0
push 0x485780
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x220]
mov ebx, eax
call fcn.00409600
test ebx, ebx
jne 0x41a58e
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
push str._s.tmp
push eax
call fcn.00409180
mov esi, dword [ebp - 0x220]
add esp, 0xc
jmp 0x41a59a
mov edx, 1
mov ecx, esi
call fcn.0041a310
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.00439ec0
add esp, 8
push 4
push 0
test eax, eax
jne 0x41a5d1
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push esi
push str.MoveFileEx_delay_reboot_to_delete_File__s____
push 0x48dac0
call fcn.00417de0
add esp, 0xc
or ebx, 0xffffffff
jmp 0x41a632
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x22c]
lea eax, [ebp - 0x21c]
push eax
call fcn.004092a0
mov byte [ebp - 4], 5
push dword [eax]
push str.MoveFileEx_delay_reboot_to_delete_File__s____
push 0x48dac0
call fcn.00417de0
mov byte [ebp - 4], 4
or ebx, 0xffffffff
mov edx, dword [ebp - 0x22c]
add esp, 0xc
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41a632
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x41a64d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41a6c7
mov ecx, dword [esi]
push esi
jmp 0x41a6c2
push 4
push 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x22c]
lea eax, [ebp - 0x21c]
push eax
call fcn.004092a0
mov byte [ebp - 4], 6
push dword [eax]
push str.MoveFileEx_delay_reboot_to_delete_File__s____
push 0x48dac0
call fcn.00417de0
mov byte [ebp - 4], 2
add esp, 0xc
mov edx, dword [ebp - 0x22c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41a6c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x41a6e9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x228]
jmp 0x41a6f3
xor eax, eax
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.00422308
mov esp, ebp
pop ebp
ret