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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015469a
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x101a154c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x414], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x41c], 0
mov eax, dword [edi]
mov eax, dword [eax + 0x70]
sub eax, 0x10
push eax
call fcn.10019b20
mov dword [ebp - 0x434], eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x43c], esi
mov ecx, dword [edi]
mov dword [ebp - 4], 0
mov ecx, dword [ecx + 0x74]
sub ecx, 0x10
push ecx
call fcn.10019b20
add esp, 8
lea edi, [eax + 0x10]
mov dword [ebp - 0x440], edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x424], 0
call fcn.10017d20
mov ecx, eax
test ecx, ecx
je 0x10050138
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x424]
mov byte [ebp - 4], 2
push eax
call fcn.10067b00
add esp, 4
test eax, eax
jne 0x1004f7bf
mov dword [ebp - 0x430], eax
jmp 0x1004fb0c
cmp dword [esi - 0xc], 0
je 0x1004fb06
push ecx
mov dword [ebp - 0x430], esp
push dword [ebp - 0x434]
mov dword [ebp - 0x420], 0
call fcn.10019b20
mov ecx, dword [ebp - 0x430]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
lea eax, [ebp - 0x420]
push eax
call fcn.1004d310
add esp, 8
mov dword [ebp - 0x418], 0
mov eax, dword [ebp - 0x424]
mov byte [ebp - 4], 4
mov dword [ebp - 0x430], 0
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x1004f834
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x1004f84c
call fcn.10017d20
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x10050142
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x41c], 1
mov dword [ebp - 0x430], eax
mov eax, dword [ebp - 0x424]
push 1
push 0x101601d4
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x430]
push eax
call fcn.10019b90
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.10019130
add esp, 0x20
mov edx, dword [ebp - 0x430]
or eax, 0xffffffff
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004f8c2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x101a7bf4]
test ecx, ecx
jne 0x1004f92c
push 0x101a10e8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x101a7bf4], 0
jne 0x1004f913
push 0x1c
call fcn.100f8c40
add esp, 4
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x1004f90c
lea ecx, [eax + 4]
mov dword [eax], vtable._BaseModule::CCriticalSection.0
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp - 0x41c]
jmp 0x1004f90e
xor eax, eax
mov dword [0x101a7bf4], eax
push 0x101a10e8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x101a7bf4]
test ecx, ecx
jne 0x1004f92c
xor eax, eax
jmp 0x1004f990
mov eax, dword [0x101a7bf0]
test eax, eax
jne 0x1004f990
mov eax, dword [ecx]
push ecx
call dword [eax]
cmp dword [0x101a7bf0], 0
jne 0x1004f980
push 4
call fcn.100f8c40
add esp, 4
mov dword [ebp - 0x41c], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x1004f96a
mov ecx, eax
mov dword [eax], 0
call fcn.1009c010
jmp 0x1004f96c
xor eax, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x41c]
xor edx, edx
lock or dword [ecx], edx
mov dword [0x101a7bf0], eax
mov eax, dword [0x101a7bf4]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [0x101a7bf0]
push 0
push str.ProtectPlugin
push 0
push 0
push str.down_start
mov ecx, eax
call fcn.1009c0b0
push dword [ebp - 0x418]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1004fbad
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.101213d0
push 0x100
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x418]
call fcn.1008ad30
add esp, 0x18
call fcn.10017d20
mov ecx, eax
test ecx, ecx
je 0x1005014c
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 8
test eax, 0xffff0000
jne 0x1004fa29
movzx eax, ax
lea ecx, [ebp - 0x434]
push eax
call fcn.10014c30
jmp 0x1004fa54
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004fa32
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x434]
call fcn.1001c8c0
mov esi, dword [ebp - 0x434]
push esi
push edi
mov byte [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1004fb8b
mov ecx, dword [ebp - 0x438]
lea eax, [ebp - 0x418]
push eax
call fcn.100190c0
push 0
push str.ProtectPlugin
push 0
push 0
push str.md5_has_suc
mov dword [ebp - 0x430], 1
call fcn.1001ae30
mov ecx, eax
call fcn.1009c0b0
lea edx, [esi - 0x10]
mov byte [ebp - 4], 6
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004fac4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x418]
mov eax, esi
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004fae5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x420]
mov eax, esi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004fb06
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x43c]
mov edx, dword [ebp - 0x424]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004fb2e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004fb4c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x1004fb68
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x430]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100f8fe1
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 4], 6
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1004fba7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x43c]
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x414]
xorps xmm0, xmm0
push 0x20
movlpd qword [ebp - 0x42c], xmm0
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x414], eax
call fcn.100f8c40
add esp, 4
mov dword [ebp - 0x41c], eax
mov byte [ebp - 4], 0xa
test eax, eax
je 0x1004fbfe
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
call fcn.10018e20
jmp 0x1004fc00
xor eax, eax
push dword [ebp - 0x440]
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 6
push eax
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0
call fcn.10018770
push dword [ebp - 0x414]
mov ecx, dword [ebp - 0x42c]
lea eax, [ebp - 0x418]
push 0x493e0
push eax
push esi
mov byte [ebp - 4], 0xb
call fcn.10019cf0
mov ecx, dword [ebp - 0x428]
mov byte [ebp - 4], 6
test eax, eax
je 0x100500a2
or esi, 0xffffffff
test ecx, ecx
je 0x1004fc86
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x1004fc86
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x428]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x1004fc86
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x101a7bf4]
mov dword [ebp - 0x430], 1
test ecx, ecx
jne 0x1004fcfa
push 0x101a10e8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x101a7bf4], 0
jne 0x1004fce1
push 0x1c
call fcn.100f8c40
add esp, 4
mov dword [ebp - 0x414], eax
test eax, eax
je 0x1004fcda
lea ecx, [eax + 4]
mov dword [eax], vtable._BaseModule::CCriticalSection.0
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp - 0x414]
jmp 0x1004fcdc
xor eax, eax
mov dword [0x101a7bf4], eax
push 0x101a10e8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x101a7bf4]
test ecx, ecx
jne 0x1004fcfa
xor eax, eax
jmp 0x1004fd5e
mov eax, dword [0x101a7bf0]
test eax, eax
jne 0x1004fd5e
mov eax, dword [ecx]
push ecx
call dword [eax]
cmp dword [0x101a7bf0], 0
jne 0x1004fd4e
push 4
call fcn.100f8c40
add esp, 4
mov dword [ebp - 0x414], eax
mov byte [ebp - 4], 0xc
test eax, eax
je 0x1004fd38
mov ecx, eax
mov dword [eax], 0
call fcn.1009c010
jmp 0x1004fd3a
xor eax, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x414]
xor edx, edx
lock or dword [ecx], edx
mov dword [0x101a7bf0], eax
mov eax, dword [0x101a7bf4]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [0x101a7bf0]
push 0
push str.ProtectPlugin
push 0
push 0
push str.down_suc
mov ecx, eax
call fcn.1009c0b0
mov edx, dword [ebp - 0x438]
mov eax, dword [ebp - 0x418]
mov edx, dword [edx]
lea ecx, [eax - 0x10]
sub edx, 0x10
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x434], edx
cmp ecx, edx
je 0x1004fe0f
cmp dword [edx + 0xc], 0
lea eax, [edx + 0xc]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp - 0x418]
jl 0x1004fdfa
mov ecx, dword [ecx]
cmp ecx, dword [edx]
jne 0x1004fdfa
push dword [ebp - 0x414]
call fcn.10019b20
mov dword [ebp - 0x414], eax
add esp, 4
mov eax, dword [ebp - 0x41c]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1004fde7
mov eax, dword [ebp - 0x434]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0x438]
mov eax, dword [ebp - 0x414]
add eax, 0x10
mov dword [ecx], eax
jmp 0x1004fe09
push dword [eax - 0xc]
mov ecx, dword [ebp - 0x438]
push eax
call fcn.1001c8c0
mov eax, dword [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1004fac4
push 0x200
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.101213d0
push 0x100
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x418]
call fcn.1008ad30
add esp, 0x18
call fcn.10017d20
mov ecx, eax
test ecx, ecx
je 0x10050156
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x410]
mov byte [ebp - 4], 0xd
test eax, 0xffff0000
jne 0x1004fe8c
movzx eax, ax
lea ecx, [ebp - 0x434]
push eax
call fcn.10014c30
jmp 0x1004feb7
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004fe95
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x434]
call fcn.1001c8c0
mov esi, dword [ebp - 0x434]
push esi
push edi
mov byte [ebp - 4], 0xe
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ecx, dword [0x101a7bf4]
test eax, eax
jne 0x1004ffb4
test ecx, ecx
jne 0x1004ff3b
push 0x101a10e8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x101a7bf4], 0
jne 0x1004ff22
push 0x1c
call fcn.100f8c40
add esp, 4
mov dword [ebp - 0x414], eax
test eax, eax
je 0x1004ff1b
lea ecx, [eax + 4]
mov dword [eax], vtable._BaseModule::CCriticalSection.0
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp - 0x414]
jmp 0x1004ff1d
xor eax, eax
mov dword [0x101a7bf4], eax
push 0x101a10e8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x101a7bf4]
test ecx, ecx
jne 0x1004ff3b
xor eax, eax
jmp 0x1004ff9f
mov eax, dword [0x101a7bf0]
test eax, eax
jne 0x1004ff9f
mov eax, dword [ecx]
push ecx
call dword [eax]
cmp dword [0x101a7bf0], 0
jne 0x1004ff8f
push 4
call fcn.100f8c40
add esp, 4
mov dword [ebp - 0x414], eax
mov byte [ebp - 4], 0xf
test eax, eax
je 0x1004ff79
mov ecx, eax
mov dword [eax], 0
call fcn.1009c010
jmp 0x1004ff7b
xor eax, eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x414]
xor edx, edx
lock or dword [ecx], edx
mov dword [0x101a7bf0], eax
mov eax, dword [0x101a7bf4]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [0x101a7bf0]
push 0
push str.ProtectPlugin
push 0
push 0
push str.md5_suc
jmp 0x1004fa9f
test ecx, ecx
jne 0x10050018
push 0x101a10e8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x101a7bf4], 0
jne 0x1004ffff
push 0x1c
call fcn.100f8c40
add esp, 4
mov dword [ebp - 0x414], eax
test eax, eax
je 0x1004fff8
lea ecx, [eax + 4]
mov dword [eax], vtable._BaseModule::CCriticalSection.0
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp - 0x414]
jmp 0x1004fffa
xor eax, eax
mov dword [0x101a7bf4], eax
push 0x101a10e8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x101a7bf4]
test ecx, ecx
jne 0x10050018
xor eax, eax
jmp 0x1005007c
mov eax, dword [0x101a7bf0]
test eax, eax
jne 0x1005007c
mov eax, dword [ecx]
push ecx
call dword [eax]
cmp dword [0x101a7bf0], 0
jne 0x1005006c
push 4
call fcn.100f8c40
add esp, 4
mov dword [ebp - 0x414], eax
mov byte [ebp - 4], 0x10
test eax, eax
je 0x10050056
mov ecx, eax
mov dword [eax], 0
call fcn.1009c010
jmp 0x10050058
xor eax, eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x428]
xor edx, edx
lock or dword [ecx], edx
mov dword [0x101a7bf0], eax
mov eax, dword [0x101a7bf4]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [0x101a7bf0]
push 0
push str.ProtectPlugin
push 0
push 0
push str.md5_fail
mov ecx, eax
call fcn.1009c0b0
mov dword [ebp - 0x430], 0
jmp 0x1004faa6
test ecx, ecx
je 0x100500c9
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x100500c9
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x428]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x100500c9
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push str.ProtectPlugin
push 0
push 0
push str.down_fail
call fcn.1001ae30
mov ecx, eax
call fcn.1009c0b0
mov edx, dword [ebp - 0x418]
or eax, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10050107
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x420]
or eax, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10050129
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x430], 0
jmp 0x1004fb0c
push 0x80004005
call fcn.100142b0
push 0x80004005
call fcn.100142b0
push 0x80004005
call fcn.100142b0
push 0x80004005
call fcn.100142b0
int3