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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56974e
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x34], edi
mov esi, dword [ebp + 8]
test esi, esi
je 0x49905f
call fcn.0045adc0
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x4988c7
push 0x80004005
call fcn.0045a8f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push dword [0x5d6918]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.0045a3a0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x10]
push eax
push 3
call fcn.00507cd0
mov dword [ebp - 0x30], eax
or ebx, 0xffffffff
mov eax, dword [ebp - 0x10]
add esp, 0xc
add eax, 0xfffffff0
mov byte [ebp - 4], 0
mov dword [ebp - 0x2c], eax
mov ecx, ebx
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x498928
mov ecx, dword [eax]
push dword [ebp - 0x2c]
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x30], 0
je 0x49893e
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], 1
cmp dword [eax - 0xc], 0
jne 0x498945
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.00498340
cmp dword [ebp - 0x10], 0
je 0x49895f
test eax, eax
jne 0x49895f
lea edi, [eax + 1]
jmp 0x498961
xor edi, edi
cmp byte [0x5de132], 0
jne 0x498c77
test eax, eax
je 0x498c77
mov byte [0x5de132], 1
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x498999
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
call fcn.004991d0
mov eax, dword [ebp - 0x20]
cmp dword [eax - 0xc], 0
je 0x498c5a
add eax, 0xfffffff0
push eax
call fcn.0045a950
add eax, 0x10
add esp, 4
mov dword [ebp - 0x10], eax
push 0x57ad28
push 0x57ad2c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004601f0
lea ecx, [ebp - 0x2c]
call fcn.0045a530
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0047d680
add esp, 8
test eax, eax
je 0x498c17
lea ecx, [ebp - 0x30]
call fcn.0045a530
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x88]
call fcn.005087f0
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 6
call fcn.00508920
push dword [0x5d628c]
lea ecx, [ebp - 0x28]
call fcn.0045a3a0
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x88]
call fcn.00519450
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
mov esi, eax
call fcn.0048ceb0
test esi, esi
je 0x498bfd
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.0048e7f0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 8
push eax
call fcn.0045a950
add eax, 0x10
add esp, 4
mov dword [ebp - 0x14], eax
push str._searchpluginsAPN__s.xml
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.0047f960
push dword [ebp - 0x30]
lea ecx, [ebp - 0x14]
push 0x581bc4
call fcn.004601f0
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x498bed
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x498bed
lea ecx, [ebp - 0x28]
call fcn.0045a530
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00497760
add esp, 8
test eax, eax
je 0x498be5
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
push eax
call fcn.0045a950
add eax, 0x10
add esp, 4
mov dword [ebp - 0x38], eax
push 0x57ad28
push 0x57ad2c
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xb
call fcn.004601f0
lea ecx, [ebp - 0x3c]
call fcn.0045a530
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0047d680
add esp, 8
test eax, eax
je 0x498bd5
push dword [ebp - 0x2c]
push dword [ebp - 0x3c]
call fcn.0052911c
add esp, 8
test eax, eax
je 0x498bd5
mov eax, dword [ebp - 0x1c]
mov edi, 1
add eax, 0xfffffff0
push eax
call fcn.0045a950
add eax, 0x10
add esp, 4
mov dword [ebp - 0x40], eax
push str._search.json
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xd
call fcn.0047f960
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
push eax
call fcn.0045a950
add eax, 0x10
add esp, 4
mov dword [ebp - 0x24], eax
push str._search.json.mozlz4
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xe
call fcn.0047f960
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x40]
call esi
lea ecx, [ebp - 0x24]
call fcn.0048ceb0
lea ecx, [ebp - 0x40]
call fcn.0048ceb0
lea ecx, [ebp - 0x3c]
call fcn.0048ceb0
lea ecx, [ebp - 0x38]
call fcn.0048ceb0
lea ecx, [ebp - 0x28]
call fcn.0048ceb0
lea ecx, [ebp - 0x14]
call fcn.0048ceb0
lea ecx, [ebp - 0x1c]
call fcn.0048ceb0
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 5
call fcn.00508860
lea ecx, [ebp - 0x30]
call fcn.0048ceb0
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x2c]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x498c37
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x498c57
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x20]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x498c77
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x49903e
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
push eax
call fcn.0045a950
add eax, 0x10
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0xf
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x498cb4
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0x10
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x498ce1
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x11
push ecx
mov ecx, esi
call dword [eax + 0x20]
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x498d1d
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0x12
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x498d4a
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x13
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x498d77
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
lea ecx, [ebp - 0x20]
push 0
push ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x14
push ecx
lea ecx, [ebp - 0x10]
push ecx
mov ecx, esi
call dword [eax + 0x28]
test eax, eax
je 0x498da6
lea eax, [ebp - 0x20]
jmp 0x498db2
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x498dc6
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004e2020
mov edi, eax
neg edi
sbb edi, edi
inc edi
push 0x581bcc
lea ecx, [ebp - 0x2c]
call fcn.0045a3a0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x15
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004e35d0
mov dword [ebp - 0x28], eax
add esp, 8
mov eax, dword [ebp - 0x2c]
mov edx, ebx
add eax, 0xfffffff0
mov byte [ebp - 4], 0x14
mov dword [ebp - 0x30], eax
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x498e0f
mov ecx, dword [eax]
push dword [ebp - 0x30]
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x498f70
cmp dword [ebp - 0x28], 0
je 0x498f70
mov edi, dword [ebp - 0x34]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [edi + 0x74]
call fcn.004823c0
lea ecx, [ebp - 0x20]
call fcn.0048ceb0
lea ecx, [ebp - 0x14]
call fcn.0048ceb0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x11
call fcn.0048ceb0
lea eax, [ebp + 8]
mov ecx, edi
push eax
push esi
call fcn.00498090
test eax, eax
jne 0x498fde
mov eax, dword [esi]
lea ecx, [ebp - 0x38]
push ecx
mov ecx, esi
call dword [eax + 8]
test eax, eax
jne 0x498ec4
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
lea eax, [ebp + 8]
push eax
push esi
call fcn.00499870
test eax, eax
je 0x498fde
cmp dword [ebp - 0x10], 0
je 0x498fde
mov ecx, esi
call fcn.00494500
test eax, eax
je 0x498eb2
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00496fa0
mov ecx, esi
call fcn.00493550
push 1
lea eax, [ebp + 8]
mov ecx, edi
push eax
call fcn.00499dd0
jmp 0x498fde
push 1
lea ecx, [edi + 0x74]
call fcn.004823a0
lea ecx, [ebp - 0x9c]
call fcn.004cbcb0
push edi
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0x16
call fcn.004cc340
mov eax, 0x13
mov word [ebp - 0x50], ax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 0x17
push eax
lea ecx, [ebp - 0x9c]
call fcn.004cc5d0
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 0x16
call esi
push dword [0x5d6880]
xor eax, eax
lea ecx, [ebp - 0x50]
mov word [ebp - 0x50], ax
call fcn.00461c30
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 0x18
push eax
lea ecx, [ebp - 0x9c]
call fcn.004cc650
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 0x16
push eax
call esi
lea eax, [ebp - 0x9c]
mov ecx, 0x5de970
push eax
push 4
call fcn.0051c6f0
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0x11
call fcn.0046e1a0
jmp 0x498fde
mov ecx, dword [ebp - 0x34]
lea eax, [ebp + 8]
push 0
push eax
call fcn.00499dd0
mov edx, dword [ebp - 0x20]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 0x13
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x498f9e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 0x12
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x498fbe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 0x11
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x498fde
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 0x10
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x498ffe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 0xf
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49901e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49903e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x49905f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4