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

Disassembly:
push 0xffffffffffffffff
push 0x5a46e0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
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 0x499763
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x28], ebp
mov byte [esp + 0x44], 1
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
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.004d0980
cmp eax, ebp
jge 0x4997fd
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 0x4997c3
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 0x4997d2
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 0x4997f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4999ec
push 0xc
push str._Properties_
lea ecx, [esp + 0x20]
push ecx
call fcn.00403fc0
push ebx
push 0x5bdf38
lea edx, [esp + 0x20]
push edx
call fcn.00403fc0
push 0xb
push str.Version2.0
lea eax, [esp + 0x20]
push eax
call fcn.00403fc0
push ebx
push 0x5bdf38
lea ecx, [esp + 0x20]
push ecx
call fcn.00403fc0
push ebx
push 0x5bdf38
lea edx, [esp + 0x20]
push edx
call fcn.00403fc0
mov esi, dword [esp + 0x18]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, ebx
cmp cx, bp
jne 0x499858
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, esi
lea edx, [esp + 0x28]
call fcn.004d0c20
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 0x49989b
cmp edi, ecx
je 0x4998a0
call fcn.00578ff3
cmp esi, ebp
je 0x49997c
test edi, edi
jne 0x4998b1
call fcn.00578ff3
cmp esi, dword [edi + 4]
jne 0x4998bb
call fcn.00578ff3
mov eax, dword [esi + 0x1c]
lea edi, [esi + 0x10]
sub eax, 0x10
call fcn.00403ce0
lea esi, [eax + 0x10]
mov dword [esp + 0x24], esi
mov byte [esp + 0x44], 3
mov eax, dword [esi - 0xc]
test eax, eax
je 0x499938
mov ecx, dword [esp + 0x54]
test ecx, ecx
jne 0x4998f7
test eax, eax
jl 0x499972
movzx eax, word [esi]
cmp ax, 0x4c
jne 0x499909
jmp 0x499938
cmp ecx, 1
jne 0x499909
test eax, eax
jl 0x499972
movzx eax, word [esi]
cmp ax, 0x4c
jne 0x499938
cmp dword [edi + 0x18], 0
jne 0x499921
mov ecx, dword [esp + 0x1c]
add ecx, 1
lea edx, [esp + 0x28]
mov dword [esp + 0x1c], ecx
push edx
jmp 0x499931
mov ecx, dword [esp + 0x20]
add ecx, 1
lea eax, [esp + 0x28]
mov dword [esp + 0x20], ecx
push eax
mov edx, edi
call fcn.00497830
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 0x499958
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x30]
call fcn.0045a450
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x50]
jmp 0x499890
push 0x80070057
call fcn.00404550
mov esi, dword [esp + 0x28]
test esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x499993
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 0x4999b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x4999bf
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 0x4999e7
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