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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10144290
mov eax, dword fs:[0]
push eax
sub esp, 0x440
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 dword [ebp - 0x448], ecx
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x434], esi
call fcn.10017640
mov ecx, eax
test ecx, ecx
je 0x1001a294
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x434]
mov dword [ebp - 4], esi
push eax
call fcn.10037d50
add esp, 4
or edi, 0xffffffff
test eax, eax
je 0x10019bd5
mov ecx, dword [ebp - 0x448]
mov ecx, dword [ecx]
mov eax, dword [ecx + 0x64]
cmp dword [eax - 0xc], 0
je 0x10019bcf
push ecx
mov esi, esp
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x440], esi
mov eax, dword [ecx + 0x64]
sub eax, 0x10
push eax
call fcn.10019550
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x430]
push eax
call fcn.10038130
add esp, 8
mov dword [ebp - 0x41c], 0
mov eax, dword [ebp - 0x434]
mov byte [ebp - 4], 2
mov dword [ebp - 0x43c], 0
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x1001994d
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x10019965
call fcn.10017640
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x1001a29e
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x428], 1
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp - 0x434]
push 1
push 0x101551b4
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x43c]
push eax
call fcn.100195c0
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.10018b60
add esp, 0x20
mov dword [ebp - 0x428], 0
mov edx, dword [ebp - 0x43c]
mov eax, edi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100199e4
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 - 0x418], xmm0
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 5
push eax
call fcn.100749f5
lea eax, [ebp - 0x418]
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 0x1001a278
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 7
push eax
call fcn.10074a2f
mov ecx, dword [0x1019cbd4]
add esp, 4
mov byte [ebp - 4], 4
push 0
push 0x101551b8
push 0
push 0
push str.start_download
call fcn.1009b2b0
push dword [ebp - 0x41c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10019c31
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.101166b0
push 0x100
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x41c]
call fcn.1008ae70
add esp, 0x18
call fcn.10017640
mov ecx, eax
test ecx, ecx
je 0x1001a2a8
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
push eax
lea ecx, [ebp - 0x420]
call fcn.10019430
test al, al
jne 0x10019b16
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10019af4
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x420]
call fcn.1001c180
mov eax, dword [ebp - 0x448]
mov esi, dword [ebp - 0x420]
push esi
mov byte [ebp - 4], 0xb
mov eax, dword [eax]
push dword [eax + 0x68]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10019c16
mov ecx, dword [ebp - 0x444]
lea eax, [ebp - 0x41c]
push eax
call fcn.10018af0
push 0
push 0x101551b8
push 0
push 0
push str.md5_suc2
mov dword [ebp - 0x43c], 1
call fcn.1001a750
mov ecx, eax
call fcn.1009b2b0
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10019b8d
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 0x10019bae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x430]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10019bcf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x43c]
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 0x10019bf7
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.100f5f8d
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 0x10019c31
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.10017640
mov ecx, eax
test ecx, ecx
je 0x1001a2b2
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x44c], eax
mov eax, dword [ebp - 0x448]
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 - 0x440], ecx
mov dword [ebp - 0x420], eax
call fcn.100f5bec
add esp, 4
mov dword [ebp - 0x43c], eax
mov byte [ebp - 4], 0xd
test eax, eax
je 0x10019cad
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
call fcn.100188e0
jmp 0x10019caf
xor eax, eax
push dword [ebp - 0x440]
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 0xc
push eax
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0
call fcn.10018230
push dword [ebp - 0x420]
mov ecx, dword [ebp - 0x418]
lea eax, [ebp - 0x41c]
push 0x493e0
push eax
mov eax, dword [ebp - 0x440]
xor esi, esi
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x43c], esi
push dword [eax + 0x64]
call fcn.10019720
test eax, eax
lea ecx, [ebp - 0x44c]
mov eax, dword [ebp - 0x418]
je 0x10019d2b
mov esi, 1
add eax, 0x14
mov dword [ebp - 0x43c], esi
jmp 0x10019d2e
add eax, 0x1c
push eax
call fcn.10018a30
mov ecx, dword [ebp - 0x414]
mov byte [ebp - 4], 0xc
test ecx, ecx
je 0x10019d63
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x10019d63
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x414]
mov eax, edi
lock xadd dword [ecx + 8], eax
jne 0x10019d63
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x1001a0dc
xorps xmm0, xmm0
mov byte [ebp - 0x435], 0
movlpd qword [ebp - 0x418], xmm0
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0xf
push eax
call fcn.100749f5
lea eax, [ebp - 0x418]
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x435]
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x42c]
push eax
push 0x10017ce0
push 0x1019cbd8
call fcn.10075792
add esp, 0x10
test eax, eax
je 0x1001a0c0
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x11
push eax
call fcn.10074a2f
mov ecx, dword [0x1019cbd4]
add esp, 4
mov byte [ebp - 4], 0xc
push 0
push 0x101551b8
push 0
push 0
push str.download_suc
call fcn.1009b2b0
mov esi, dword [ebp - 0x444]
mov eax, dword [ebp - 0x41c]
mov esi, dword [esi]
lea edx, [eax - 0x10]
sub esi, 0x10
cmp edx, esi
je 0x10019e69
cmp dword [esi + 0xc], 0
jl 0x10019e54
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x10019e54
push edx
call fcn.10019550
add esp, 4
mov dword [ebp - 0x440], eax
mov ecx, edi
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10019e47
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x440]
mov ecx, dword [ebp - 0x444]
add eax, 0x10
mov dword [ecx], eax
jmp 0x10019e63
push dword [eax - 0xc]
mov ecx, dword [ebp - 0x444]
push eax
call fcn.1001c180
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001a07f
push 0x200
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.101166b0
push 0x100
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x41c]
call fcn.1008ae70
add esp, 0x18
call fcn.10017640
mov ecx, eax
test ecx, ecx
je 0x1001a2bc
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
push eax
lea ecx, [ebp - 0x420]
call fcn.10019430
test al, al
jne 0x10019f09
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10019ee7
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x420]
call fcn.1001c180
mov eax, dword [ebp - 0x448]
mov esi, dword [ebp - 0x420]
push esi
mov eax, dword [eax]
push dword [eax + 0x68]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov byte [ebp - 0x435], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x418], xmm0
test eax, eax
jne 0x10019fe1
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x18
push eax
call fcn.100749f5
lea eax, [ebp - 0x418]
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x435]
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x42c]
push eax
push 0x10017ce0
push 0x1019cbd8
call fcn.10075792
add esp, 0x10
test eax, eax
je 0x10019fbd
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x1a
push eax
call fcn.10074a2f
mov ecx, dword [0x1019cbd4]
add esp, 4
mov byte [ebp - 4], 0x17
push 0
push 0x101551b8
push 0
push 0
push str.md5_suc
call fcn.1009b2b0
mov eax, dword [ebp - 0x43c]
jmp 0x1001a05e
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x1b
push eax
call fcn.10074a50
add esp, 4
mov byte [ebp - 4], 0x19
test al, al
je 0x1001a2dc
jmp 0x1001a2c6
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x1d
push eax
call fcn.100749f5
lea eax, [ebp - 0x418]
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x435]
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x42c]
push eax
push 0x10017ce0
push 0x1019cbd8
call fcn.10075792
add esp, 0x10
test eax, eax
je 0x1001a0a4
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x1f
push eax
call fcn.10074a2f
mov ecx, dword [0x1019cbd4]
add esp, 4
mov byte [ebp - 4], 0x17
push 0
push 0x101551b8
push 0
push 0
push str.md5_fail
call fcn.1009b2b0
xor eax, eax
mov dword [ebp - 0x43c], eax
add esi, 0xfffffff0
mov byte [ebp - 4], 0xc
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001a07f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x44c]
mov eax, edi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10019b8d
mov ecx, dword [edx]
push edx
jmp 0x10019b88
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x20
push eax
call fcn.10074a50
add esp, 4
mov byte [ebp - 4], 0x1e
jmp 0x10019fd4
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x12
push eax
call fcn.10074a50
add esp, 4
mov byte [ebp - 4], 0x10
jmp 0x10019fd4
call fcn.10017640
mov ecx, eax
test ecx, ecx
je 0x1001a2e1
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x420], eax
mov eax, dword [ebp - 0x44c]
mov esi, 0x10154988
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 - 0x448], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push 0
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], 0
call fcn.10018570
mov ecx, dword [ebp - 0x43c]
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x428], 4
cmp dword [ecx - 4], 1
jle 0x1001a17d
push dword [ecx - 0xc]
lea ecx, [ebp - 0x43c]
call fcn.10014050
mov ecx, dword [ebp - 0x43c]
push dword [ebp - 0x440]
push ecx
push dword [ebp - 0x448]
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x444]
push dword [eax]
lea eax, [ebp - 0x420]
push str.download_fail__s
push eax
call fcn.1001a680
mov edx, dword [ebp - 0x43c]
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 0x1001a1d5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x420]
push 0
push 0x101551b8
push 0
push 0
push esi
call fcn.1001a750
mov ecx, eax
call fcn.1009b2b0
mov byte [ebp - 4], 0xc
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001a20e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x44c]
mov eax, edi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001a22f
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 0x1001a250
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x430]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001a271
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
jmp 0x10019bd5
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 8
push eax
call fcn.10074a50
add esp, 4
mov byte [ebp - 4], 6
jmp 0x10019fd4
push 0x80004005
call fcn.10013b40
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 - 0x418]
mov ecx, esp
push eax
call fcn.10012e00
call fcn.10015d10
call fcn.100757aa
push 0x80004005
call fcn.10013b40
int3