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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e1d08
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x66c0e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
call fcn.004b5c24
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4688c9
push 0x80004005
call fcn.004047e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
mov ecx, dword [esi + 0x23840]
push ebx
push ebx
push 0x18b
push ecx
mov dword [ebp - 4], ebx
mov byte [ebp - 0xd], 1
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], ebx
cmp eax, ebx
jg 0x468943
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x468920
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov eax, dword [esi + 0x23634]
push edx
push eax
lea ecx, [esi + 0x98]
call fcn.0045f980
imul eax, eax, 0x52
movzx ecx, byte [eax + esi + 0xa6]
lea eax, [eax + esi + 0xa6]
push ecx
lea edx, [ebp - 0x14]
push str._04x.lpp
push edx
mov dword [ebp - 0x28], eax
call fcn.004065c0
mov ebx, dword [ebp - 0x14]
add esp, 0xc
push ebx
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00467c30
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [ebx - 0x10]
mov byte [ebp - 4], 1
cmp eax, edi
je 0x4689eb
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x4689db
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x4689db
push eax
call fcn.00405fe0
mov dword [ebp - 0x18], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4689d0
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ebx, dword [ebp - 0x18]
add ebx, 0x10
mov dword [ebp - 0x14], ebx
jmp 0x4689eb
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.00406350
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x468a0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x468a27
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x468a27
mov byte [ebp - 0xd], al
mov dword [ebp - 0x18], 0
jmp 0x468a33
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
movzx eax, byte [edx]
push ecx
push eax
lea ecx, [ebp - 0x14]
push str._04x_04x.lpb
push ecx
call fcn.004065c0
mov edi, dword [ebp - 0x14]
add esp, 0x10
push edi
lea edx, [ebp - 0x2c]
push edx
mov ecx, esi
call fcn.00467c30
mov eax, dword [eax]
lea esi, [eax - 0x10]
lea ebx, [edi - 0x10]
mov byte [ebp - 4], 2
cmp esi, ebx
je 0x468b04
cmp dword [ebx + 0xc], 0
jl 0x468af4
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x468af4
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x468a9f
cmp eax, dword [esi]
jne 0x468a9f
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x468ad3
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x468b67
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.005bb248
add esp, 0x10
lea eax, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x468aec
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
add edi, 0x10
mov dword [ebp - 0x14], edi
jmp 0x468b04
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00406350
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x468b27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x468b52
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x468b40
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, 0x3e8
jl 0x468a30
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x30]
jl 0x468940
jmp 0x4688fd
call fcn.00405bf0
int3