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

Disassembly:
push 0xffffffffffffffff
push 0x600c20
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x44], ebp
mov edi, dword [esp + 0x4c]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ae3c3
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x28], ebp
mov byte [esp + 0x44], 1
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov ebx, 2
push 1
lea eax, [esp + 0x2c]
push eax
mov edx, ebx
lea eax, [ebx - 1]
mov ecx, edi
mov byte [esp + 0x4c], bl
call fcn.0050e580
cmp eax, ebp
jge 0x4ae45d
lea eax, [esi - 0x10]
mov byte [esp + 0x44], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ae423
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x4ae432
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ae456
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4ae64c
push 0xc
push str._Properties_
lea ecx, [esp + 0x20]
push ecx
call fcn.0040aee0
push ebx
push 0x625fc4
lea edx, [esp + 0x20]
push edx
call fcn.0040aee0
push 0xb
push str.Version2.0
lea eax, [esp + 0x20]
push eax
call fcn.0040aee0
push ebx
push 0x625fc4
lea ecx, [esp + 0x20]
push ecx
call fcn.0040aee0
push ebx
push 0x625fc4
lea edx, [esp + 0x20]
push edx
call fcn.0040aee0
mov esi, dword [esp + 0x18]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, ebx
cmp cx, bp
jne 0x4ae4b8
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, esi
lea edx, [esp + 0x28]
call fcn.0050e820
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx + 4]
mov esi, dword [eax]
mov edi, ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], edi
mov edi, edi
test edi, edi
mov ebp, dword [ecx + 4]
je 0x4ae4fb
cmp edi, ecx
je 0x4ae500
call fcn.005d29f1
cmp esi, ebp
je 0x4ae5dc
test edi, edi
jne 0x4ae511
call fcn.005d29f1
cmp esi, dword [edi + 4]
jne 0x4ae51b
call fcn.005d29f1
mov eax, dword [esi + 0x1c]
lea edi, [esi + 0x10]
sub eax, 0x10
call fcn.0040a210
lea esi, [eax + 0x10]
mov dword [esp + 0x24], esi
mov byte [esp + 0x44], 3
mov eax, dword [esi - 0xc]
test eax, eax
je 0x4ae598
mov ecx, dword [esp + 0x54]
test ecx, ecx
jne 0x4ae557
test eax, eax
jl 0x4ae5d2
movzx eax, word [esi]
cmp ax, 0x4c
jne 0x4ae569
jmp 0x4ae598
cmp ecx, 1
jne 0x4ae569
test eax, eax
jl 0x4ae5d2
movzx eax, word [esi]
cmp ax, 0x4c
jne 0x4ae598
cmp dword [edi + 0x18], 0
jne 0x4ae581
mov ecx, dword [esp + 0x1c]
add ecx, 1
lea edx, [esp + 0x28]
mov dword [esp + 0x1c], ecx
push edx
jmp 0x4ae591
mov ecx, dword [esp + 0x20]
add ecx, 1
lea eax, [esp + 0x28]
mov dword [esp + 0x20], ecx
push eax
mov edx, edi
call fcn.004ac4b0
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x44], bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ae5b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x30]
call fcn.004b0ba0
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x50]
jmp 0x4ae4f0
push 0x80070057
call fcn.00403650
mov esi, dword [esp + 0x28]
test esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4ae5f3
push esi
call edi
xor esi, esi
mov dword [esp + 0x28], esi
mov byte [esp + 0x44], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ae618
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x4ae61f
push esi
call edi
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ae647
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0xc