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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10181fc0
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x101dd594]
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 - 0x450], edi
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x44c], eax
lea eax, [ebp - 0x434]
mov dword [ebp - 0x42c], 0
push eax
mov dword [ebp - 0x434], esi
call fcn.10095850
add esp, 4
mov ecx, dword [edi]
or edi, 0xffffffff
mov dword [ebp - 4], esi
mov eax, dword [ecx + 0x3c]
cmp dword [eax - 0xc], esi
je 0x10086a37
push ecx
mov dword [ebp - 0x428], esi
mov esi, esp
mov dword [ebp - 0x448], esi
mov eax, dword [ecx + 0x3c]
sub eax, 0x10
push eax
call fcn.1001d450
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x428]
push eax
call fcn.10095750
add esp, 8
mov dword [ebp - 0x41c], 0
mov eax, dword [ebp - 0x434]
mov byte [ebp - 4], 2
mov dword [ebp - 0x444], 0
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x100867a7
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x100867bf
call fcn.1001b540
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x1008717a
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x42c], 1
mov dword [ebp - 0x444], eax
mov eax, dword [ebp - 0x434]
push 1
push 0x101942d4
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.1001d4c0
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.1001ca60
add esp, 0x20
mov dword [ebp - 0x42c], 0
mov edx, dword [ebp - 0x444]
mov eax, edi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1008683e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xorps xmm0, xmm0
mov byte [ebp - 0x43d], 0
movlpd qword [ebp - 0x418], xmm0
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 5
push eax
call fcn.100a2403
lea eax, [ebp - 0x418]
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x43d]
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x424]
push eax
push 0x1001bbe0
push 0x101e4578
call fcn.100a32ce
add esp, 0x10
test eax, eax
je 0x1008715e
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 7
push eax
call fcn.100a243d
mov ecx, dword [0x101e4574]
add esp, 4
mov byte [ebp - 4], 4
push 0
push str.permission
push 0
push 0
push str.start_download
call fcn.100caab0
push dword [ebp - 0x41c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10086a93
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.10150460
push 0x100
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x41c]
call fcn.100b8790
add esp, 0x18
call fcn.1001b540
mov ecx, eax
test ecx, ecx
je 0x10087184
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 0xa
test eax, 0xffff0000
jne 0x1008694d
movzx eax, ax
lea ecx, [ebp - 0x420]
push eax
call fcn.100183a0
jmp 0x10086978
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10086956
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x420]
call fcn.10020080
mov eax, dword [ebp - 0x450]
mov esi, dword [ebp - 0x420]
push esi
mov byte [ebp - 4], 0xb
mov eax, dword [eax]
push dword [eax + 0x40]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10086a78
mov ecx, dword [ebp - 0x44c]
lea eax, [ebp - 0x41c]
push eax
call fcn.1001c9f0
push 0
push str.permission
push 0
push 0
push str.md5_suc2
mov dword [ebp - 0x444], 1
call fcn.1001e650
mov ecx, eax
call fcn.100caab0
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100869ef
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x41c]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10086a10
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x428]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10086a31
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x444]
mov eax, dword [ebp - 0x434]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x10086a59
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.10128191
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10086a93
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.1001b540
mov ecx, eax
test ecx, ecx
je 0x1008718e
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x454], eax
mov eax, dword [ebp - 0x450]
xorps xmm0, xmm0
push 0x20
mov byte [ebp - 4], 0xc
movlpd qword [ebp - 0x418], xmm0
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x448], ecx
mov dword [ebp - 0x420], eax
call fcn.10127dee
add esp, 4
mov dword [ebp - 0x444], eax
mov byte [ebp - 4], 0xd
test eax, eax
je 0x10086b0f
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
call fcn.1001c7e0
jmp 0x10086b11
xor eax, eax
push dword [ebp - 0x448]
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 0xc
push eax
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0
call fcn.1001c130
push dword [ebp - 0x420]
mov ecx, dword [ebp - 0x418]
lea eax, [ebp - 0x41c]
push 0x493e0
push eax
mov eax, dword [ebp - 0x448]
xor esi, esi
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x444], esi
push dword [eax + 0x3c]
call fcn.1001d620
test eax, eax
lea ecx, [ebp - 0x454]
mov eax, dword [ebp - 0x418]
je 0x10086b8d
mov esi, 1
add eax, 0x14
mov dword [ebp - 0x444], esi
jmp 0x10086b90
add eax, 0x1c
push eax
call fcn.1001c930
mov ecx, dword [ebp - 0x414]
mov byte [ebp - 4], 0xc
test ecx, ecx
je 0x10086bc5
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x10086bc5
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x414]
mov eax, edi
lock xadd dword [ecx + 8], eax
jne 0x10086bc5
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x10086fc2
xorps xmm0, xmm0
mov byte [ebp - 0x43d], 0
movlpd qword [ebp - 0x418], xmm0
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0xf
push eax
call fcn.100a2403
lea eax, [ebp - 0x418]
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x43d]
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x430]
push eax
push 0x1001bbe0
push 0x101e4578
call fcn.100a32ce
add esp, 0x10
test eax, eax
je 0x10086fa6
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x11
push eax
call fcn.100a243d
mov ecx, dword [0x101e4574]
add esp, 4
mov byte [ebp - 4], 0xc
push 0
push str.permission
push 0
push 0
push str.download_suc
call fcn.100caab0
mov edx, dword [ebp - 0x44c]
mov eax, dword [ebp - 0x41c]
mov edx, dword [edx]
lea ecx, [eax - 0x10]
sub edx, 0x10
mov dword [ebp - 0x448], ecx
mov dword [ebp - 0x420], edx
cmp ecx, edx
je 0x10086cf4
cmp dword [edx + 0xc], 0
lea eax, [edx + 0xc]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp - 0x41c]
jl 0x10086cdf
mov ecx, dword [ecx]
cmp ecx, dword [edx]
jne 0x10086cdf
push dword [ebp - 0x448]
call fcn.1001d450
mov dword [ebp - 0x448], eax
add esp, 4
mov eax, dword [ebp - 0x42c]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10086ccc
mov eax, dword [ebp - 0x420]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0x44c]
mov eax, dword [ebp - 0x448]
add eax, 0x10
mov dword [ecx], eax
jmp 0x10086cee
push dword [eax - 0xc]
mov ecx, dword [ebp - 0x44c]
push eax
call fcn.10020080
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10086f1e
push 0x200
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.10150460
push 0x100
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x41c]
call fcn.100b8790
add esp, 0x18
call fcn.1001b540
mov ecx, eax
test ecx, ecx
je 0x10087198
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x410]
mov byte [ebp - 4], 0x16
test eax, 0xffff0000
jne 0x10086d71
movzx eax, ax
lea ecx, [ebp - 0x420]
push eax
call fcn.100183a0
jmp 0x10086da2
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10086d80
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x420]
call fcn.10020080
mov eax, dword [ebp - 0x450]
mov esi, dword [ebp - 0x420]
push esi
mov eax, dword [eax]
push dword [eax + 0x40]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov byte [ebp - 0x43d], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x418], xmm0
test eax, eax
jne 0x10086e7a
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x18
push eax
call fcn.100a2403
lea eax, [ebp - 0x418]
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x43d]
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x430]
push eax
push 0x1001bbe0
push 0x101e4578
call fcn.100a32ce
add esp, 0x10
test eax, eax
je 0x10086e56
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x1a
push eax
call fcn.100a243d
mov ecx, dword [0x101e4574]
add esp, 4
mov byte [ebp - 4], 0x17
push 0
push str.permission
push 0
push 0
push str.md5_suc
call fcn.100caab0
mov eax, dword [ebp - 0x444]
jmp 0x10086ef7
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x1b
push eax
call fcn.100a245e
add esp, 4
mov byte [ebp - 4], 0x19
test al, al
je 0x100871b8
jmp 0x100871a2
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x1d
push eax
call fcn.100a2403
lea eax, [ebp - 0x418]
mov dword [ebp - 0x43c], eax
lea eax, [ebp - 0x43d]
mov dword [ebp - 0x438], eax
lea eax, [ebp - 0x43c]
push eax
push 0x1001bbe0
push 0x101e4578
call fcn.100a32ce
add esp, 0x10
test eax, eax
je 0x10086f8a
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x1f
push eax
call fcn.100a243d
mov ecx, dword [0x101e4574]
add esp, 4
mov byte [ebp - 4], 0x17
push 0
push str.permission
push 0
push 0
push str.md5_fail
call fcn.100caab0
xor eax, eax
mov dword [ebp - 0x444], eax
add esi, 0xfffffff0
mov byte [ebp - 4], 0xc
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10086f18
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x444]
mov edx, dword [ebp - 0x454]
mov eax, edi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10086f3f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x41c]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10086f60
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x428]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10086a37
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10086a37
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x20
push eax
call fcn.100a245e
add esp, 4
mov byte [ebp - 4], 0x1e
jmp 0x10086e6d
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x12
push eax
call fcn.100a245e
add esp, 4
mov byte [ebp - 4], 0x10
jmp 0x10086e6d
call fcn.1001b540
mov ecx, eax
test ecx, ecx
je 0x100871bd
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x450], eax
mov eax, dword [ebp - 0x454]
mov esi, 0x10193aa8
test eax, eax
mov byte [ebp - 4], 0x15
cmovne esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
push 0
push eax
push esi
push 0
push 0xfde9
mov dword [ebp - 0x420], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push 0
lea ecx, [ebp - 0x444]
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x444], 0
call fcn.1001c470
mov ecx, dword [ebp - 0x444]
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x42c], 4
cmp dword [ecx - 4], 1
jle 0x10087063
push dword [ecx - 0xc]
lea ecx, [ebp - 0x444]
call fcn.10017f50
mov ecx, dword [ebp - 0x444]
push dword [ebp - 0x448]
push ecx
push dword [ebp - 0x420]
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x44c]
push dword [eax]
lea eax, [ebp - 0x450]
push str.download_fail__s
push eax
call fcn.1001e580
mov edx, dword [ebp - 0x444]
add esp, 0xc
mov byte [ebp - 4], 0x14
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100870bb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x450]
push 0
push str.permission
push 0
push 0
push esi
call fcn.1001e650
mov ecx, eax
call fcn.100caab0
mov byte [ebp - 4], 0xc
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100870f4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x454]
mov eax, edi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10087115
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x41c]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10087136
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x428]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10087157
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
jmp 0x10086a37
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 8
push eax
call fcn.100a245e
add esp, 4
mov byte [ebp - 4], 6
jmp 0x10086e6d
push 0x80004005
call fcn.10017a40
push 0x80004005
call fcn.10017a40
push 0x80004005
call fcn.10017a40
push 0x80004005
call fcn.10017a40
sub esp, 8
lea eax, [ebp - 0x418]
mov ecx, esp
push eax
call fcn.10016d00
call fcn.10019c10
call fcn.100a32e6
push 0x80004005
call fcn.10017a40
int3