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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014992e
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x1019646c]
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 - 0x440], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x420], 0
mov eax, dword [edi]
mov eax, dword [eax + 0x70]
sub eax, 0x10
push eax
call fcn.10019550
mov dword [ebp - 0x444], eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x450], esi
mov ecx, dword [edi]
mov dword [ebp - 4], 0
mov ecx, dword [ecx + 0x74]
sub ecx, 0x10
push ecx
call fcn.10019550
add esp, 8
lea edi, [eax + 0x10]
mov dword [ebp - 0x454], edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x42c], 0
call fcn.10017640
mov ecx, eax
test ecx, ecx
je 0x1005019d
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x42c]
mov byte [ebp - 4], 2
push eax
call fcn.10067c00
add esp, 4
test eax, eax
jne 0x1004f90f
mov dword [ebp - 0x43c], eax
jmp 0x1004fc0a
cmp dword [esi - 0xc], 0
je 0x1004fc04
push ecx
mov dword [ebp - 0x43c], esp
push dword [ebp - 0x444]
mov dword [ebp - 0x428], 0
call fcn.10019550
mov ecx, dword [ebp - 0x43c]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
lea eax, [ebp - 0x428]
push eax
call fcn.1004ce70
add esp, 8
mov dword [ebp - 0x414], 0
mov eax, dword [ebp - 0x42c]
mov byte [ebp - 4], 4
mov dword [ebp - 0x43c], 0
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x1004f984
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x1004f99c
call fcn.10017640
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x100501a7
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x420], 1
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp - 0x42c]
push 1
push 0x101551b4
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x43c]
push eax
call fcn.100195c0
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.10018b60
add esp, 0x20
mov edx, dword [ebp - 0x43c]
or eax, 0xffffffff
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004fa12
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xorps xmm0, xmm0
mov byte [ebp - 0x435], 0
movlpd qword [ebp - 0x41c], xmm0
lea eax, [ebp - 0x41c]
mov byte [ebp - 4], 7
push eax
call fcn.100749f5
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x435]
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x424]
push eax
push 0x10017ce0
push 0x1019cbd8
call fcn.10075792
add esp, 0x10
test eax, eax
je 0x10050181
lea eax, [ebp - 0x41c]
mov byte [ebp - 4], 9
push eax
call fcn.10074a2f
mov ecx, dword [0x1019cbd4]
add esp, 4
mov byte [ebp - 4], 6
push 0
push str.ProtectPlugin
push 0
push 0
push str.down_start
call fcn.1009b2b0
push dword [ebp - 0x414]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1004fcab
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.101166b0
push 0x100
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x414]
call fcn.1008ae70
add esp, 0x18
call fcn.10017640
mov ecx, eax
test ecx, ecx
je 0x100501b1
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x444], eax
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 0xc
test eax, 0xffff0000
jne 0x1004fb21
movzx eax, ax
lea ecx, [ebp - 0x444]
push eax
call fcn.100144a0
jmp 0x1004fb52
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004fb30
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x444]
call fcn.1001c180
mov esi, dword [ebp - 0x444]
push esi
push edi
mov byte [ebp - 4], 0xd
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1004fc89
mov ecx, dword [ebp - 0x44c]
lea eax, [ebp - 0x414]
push eax
call fcn.10018af0
push 0
push str.ProtectPlugin
push 0
push 0
push str.md5_has_suc
mov dword [ebp - 0x43c], 1
call fcn.1001a750
mov ecx, eax
call fcn.1009b2b0
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 0x1004fbc2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x414]
mov eax, esi
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004fbe3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x428]
mov eax, esi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004fc04
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x450]
mov edx, dword [ebp - 0x42c]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004fc2c
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 0x1004fc4a
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 0x1004fc66
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x43c]
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.100f5f8d
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 0x1004fca5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x450]
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x440]
xorps xmm0, xmm0
push 0x20
movlpd qword [ebp - 0x448], xmm0
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x440], eax
call fcn.100f5bec
add esp, 4
mov dword [ebp - 0x420], eax
mov byte [ebp - 4], 0xe
test eax, eax
je 0x1004fcfc
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
call fcn.100188e0
jmp 0x1004fcfe
xor eax, eax
push dword [ebp - 0x454]
lea ecx, [ebp - 0x448]
mov byte [ebp - 4], 6
push eax
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0
call fcn.10018230
push dword [ebp - 0x440]
mov ecx, dword [ebp - 0x448]
lea eax, [ebp - 0x414]
push 0x493e0
push eax
push esi
mov byte [ebp - 4], 0xf
call fcn.10019720
mov ecx, dword [ebp - 0x444]
test eax, eax
je 0x100500e7
or esi, 0xffffffff
test ecx, ecx
je 0x1004fd80
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x1004fd80
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x444]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x1004fd80
mov eax, dword [ecx]
call dword [eax + 4]
xorps xmm0, xmm0
mov dword [ebp - 0x43c], 1
mov byte [ebp - 0x435], 0
movlpd qword [ebp - 0x41c], xmm0
lea eax, [ebp - 0x41c]
mov byte [ebp - 4], 0x10
push eax
call fcn.100749f5
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x435]
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x424]
push eax
push 0x10017ce0
push 0x1019cbd8
call fcn.10075792
add esp, 0x10
test eax, eax
je 0x100500ce
lea eax, [ebp - 0x41c]
mov byte [ebp - 4], 0x12
push eax
call fcn.10074a2f
mov ecx, dword [0x1019cbd4]
add esp, 4
mov byte [ebp - 4], 6
push 0
push str.ProtectPlugin
push 0
push 0
push str.down_suc
call fcn.1009b2b0
mov edx, dword [ebp - 0x44c]
mov eax, dword [ebp - 0x414]
mov edx, dword [edx]
lea ecx, [eax - 0x10]
sub edx, 0x10
mov dword [ebp - 0x440], ecx
mov dword [ebp - 0x444], edx
cmp ecx, edx
je 0x1004feb1
cmp dword [edx + 0xc], 0
lea eax, [edx + 0xc]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp - 0x414]
jl 0x1004fe9c
mov ecx, dword [ecx]
cmp ecx, dword [edx]
jne 0x1004fe9c
push dword [ebp - 0x440]
call fcn.10019550
mov dword [ebp - 0x440], eax
add esp, 4
mov eax, dword [ebp - 0x420]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1004fe89
mov eax, dword [ebp - 0x444]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0x44c]
mov eax, dword [ebp - 0x440]
add eax, 0x10
mov dword [ecx], eax
jmp 0x1004feab
push dword [eax - 0xc]
mov ecx, dword [ebp - 0x44c]
push eax
call fcn.1001c180
mov eax, dword [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1004fbc2
push 0x200
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.101166b0
push 0x100
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x414]
call fcn.1008ae70
add esp, 0x18
call fcn.10017640
mov ecx, eax
test ecx, ecx
je 0x100501bb
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x444], eax
lea eax, [ebp - 0x410]
mov byte [ebp - 4], 0x15
test eax, 0xffff0000
jne 0x1004ff2e
movzx eax, ax
lea ecx, [ebp - 0x444]
push eax
call fcn.100144a0
jmp 0x1004ff59
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004ff37
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x444]
call fcn.1001c180
mov esi, dword [ebp - 0x444]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov byte [ebp - 0x435], 0
xorps xmm0, xmm0
test eax, eax
jne 0x1005001c
movlpd qword [ebp - 0x424], xmm0
lea eax, [ebp - 0x424]
mov byte [ebp - 4], 0x17
push eax
call fcn.100749f5
lea eax, [ebp - 0x424]
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x435]
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x41c]
push eax
push 0x10017ce0
push 0x1019cbd8
call fcn.10075792
add esp, 0x10
test eax, eax
je 0x1004fff8
lea eax, [ebp - 0x424]
mov byte [ebp - 4], 0x19
push eax
call fcn.10074a2f
mov ecx, dword [0x1019cbd4]
add esp, 4
mov byte [ebp - 4], 0x16
push 0
push str.ProtectPlugin
push 0
push 0
push str.md5_suc
jmp 0x1004fb9f
lea eax, [ebp - 0x424]
mov byte [ebp - 4], 0x1a
push eax
call fcn.10074a50
add esp, 4
mov byte [ebp - 4], 0x18
test al, al
je 0x100501db
jmp 0x100501c5
movlpd qword [ebp - 0x41c], xmm0
lea eax, [ebp - 0x41c]
mov byte [ebp - 4], 0x1c
push eax
call fcn.100749f5
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x435]
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x434]
push eax
push 0x10017ce0
push 0x1019cbd8
call fcn.10075792
add esp, 0x10
test eax, eax
je 0x100500aa
lea eax, [ebp - 0x41c]
mov byte [ebp - 4], 0x1e
push eax
call fcn.10074a2f
mov ecx, dword [0x1019cbd4]
add esp, 4
mov byte [ebp - 4], 0x16
push 0
push str.ProtectPlugin
push 0
push 0
push str.md5_fail
call fcn.1009b2b0
mov dword [ebp - 0x43c], 0
jmp 0x1004fba4
lea eax, [ebp - 0x41c]
mov byte [ebp - 4], 0x1f
push eax
call fcn.10074a50
add esp, 4
mov byte [ebp - 4], 0x1d
test al, al
jne 0x100501e0
jmp 0x100501db
lea eax, [ebp - 0x41c]
mov byte [ebp - 4], 0x13
push eax
call fcn.10074a50
add esp, 4
mov byte [ebp - 4], 0x11
jmp 0x100500c1
mov byte [ebp - 4], 6
test ecx, ecx
je 0x10050112
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x10050112
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x444]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x10050112
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push str.ProtectPlugin
push 0
push 0
push str.down_fail
call fcn.1001a750
mov ecx, eax
call fcn.1009b2b0
mov edx, dword [ebp - 0x414]
or eax, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10050150
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x428]
or eax, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10050172
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x43c], 0
jmp 0x1004fc0a
lea eax, [ebp - 0x41c]
mov byte [ebp - 4], 0xa
push eax
call fcn.10074a50
add esp, 4
mov byte [ebp - 4], 8
jmp 0x100500c1
push 0x80004005
call fcn.10013b40
push 0x80004005
call fcn.10013b40
push 0x80004005
call fcn.10013b40
push 0x80004005
call fcn.10013b40
sub esp, 8
lea eax, [ebp - 0x424]
mov ecx, esp
push eax
call fcn.10012e00
call fcn.10015d10
call fcn.100757aa
sub esp, 8
lea eax, [ebp - 0x41c]
mov ecx, esp
push eax
call fcn.10012e00
call fcn.10015d10
int3