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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a963
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x448050]
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 esi, ecx
mov dword [ebp - 0x120], esi
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff0
test ecx, ecx
je 0x422bf8
call fcn.004054c0
add eax, 0x10
mov dword [ebp - 0x11c], eax
push 2
push 0x44104c
lea ebx, [ebp - 0x11c]
mov byte [ebp - 4], 1
call fcn.00405390
mov ebx, dword [ebp - 0x11c]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x422a9a
push ebx
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp dword [esi + 0x6c], 0x10
lea edi, [esi + 0x58]
jb 0x422aa5
mov edi, dword [edi]
test edi, edi
jne 0x422aad
xor eax, eax
jmp 0x422add
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x422ac3
xor eax, eax
jmp 0x422ad7
lea eax, [esi + esi]
call fcn.00433400
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.0040c6e0
mov esi, dword [ebp - 0x120]
push eax
mov ecx, ebx
call fcn.00407c80
add esp, 4
test eax, eax
jne 0x422b3b
mov byte [ebp - 4], al
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422b0b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422b31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x422c1d
cmp dword [esi + 0x90], 0
je 0x422b70
mov eax, ebx
call fcn.00406c10
cmp dword [esi + 0x90], eax
je 0x422b70
lea eax, [ebp - 0x11c]
call fcn.00405530
lea eax, [ebp + 8]
call fcn.00405530
mov eax, 1
jmp 0x422c1d
cmp dword [esi + 0x84], 0
je 0x422bae
mov eax, dword [ebx - 0xc]
push eax
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x422b8d
call fcn.004054b0
push eax
lea ecx, [ebp - 0x118]
call fcn.00406a10
add esp, 4
lea edi, [esi + 0x74]
lea ecx, [ebp - 0x118]
call fcn.00422fa0
test al, al
jne 0x422b53
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422bce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422bf4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x422c1d
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422c18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 2
lea esp, [ebp - 0x134]
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.00424761
mov esp, ebp
pop ebp
ret