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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017e450
mov eax, dword fs:[0]
push eax
sub esp, 0x440
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 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.1001b540
mov ecx, eax
test ecx, ecx
je 0x1001e194
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.1003bde0
add esp, 4
or edi, 0xffffffff
test eax, eax
je 0x1001dad5
mov ecx, dword [ebp - 0x448]
mov ecx, dword [ecx]
mov eax, dword [ecx + 0x64]
cmp dword [eax - 0xc], 0
je 0x1001dacf
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.1001d450
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x430]
push eax
call fcn.1003c1c0
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 0x1001d84d
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x1001d865
call fcn.1001b540
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x1001e19e
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 0x101942d4
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x43c]
push eax
call fcn.1001d4c0
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.1001ca60
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 0x1001d8e4
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.100a2403
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 0x1001bbe0
push 0x101e4578
call fcn.100a32ce
add esp, 0x10
test eax, eax
je 0x1001e178
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 0x101942d8
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 0x1001db31
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 0x1001e1a8
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.1001d330
test al, al
jne 0x1001da16
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001d9f4
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 - 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 0x1001db16
mov ecx, dword [ebp - 0x444]
lea eax, [ebp - 0x41c]
push eax
call fcn.1001c9f0
push 0
push 0x101942d8
push 0
push 0
push str.md5_suc2
mov dword [ebp - 0x43c], 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 0x1001da8d
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 0x1001daae
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 0x1001dacf
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 0x1001daf7
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 0x1001db31
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 0x1001e1b2
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.10127dee
add esp, 4
mov dword [ebp - 0x43c], eax
mov byte [ebp - 4], 0xd
test eax, eax
je 0x1001dbad
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
call fcn.1001c7e0
jmp 0x1001dbaf
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.1001c130
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.1001d620
test eax, eax
lea ecx, [ebp - 0x44c]
mov eax, dword [ebp - 0x418]
je 0x1001dc2b
mov esi, 1
add eax, 0x14
mov dword [ebp - 0x43c], esi
jmp 0x1001dc2e
add eax, 0x1c
push eax
call fcn.1001c930
mov ecx, dword [ebp - 0x414]
mov byte [ebp - 4], 0xc
test ecx, ecx
je 0x1001dc63
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x1001dc63
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x414]
mov eax, edi
lock xadd dword [ecx + 8], eax
jne 0x1001dc63
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x1001dfdc
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.100a2403
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 0x1001bbe0
push 0x101e4578
call fcn.100a32ce
add esp, 0x10
test eax, eax
je 0x1001dfc0
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 0x101942d8
push 0
push 0
push str.download_suc
call fcn.100caab0
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 0x1001dd69
cmp dword [esi + 0xc], 0
jl 0x1001dd54
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x1001dd54
push edx
call fcn.1001d450
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 0x1001dd47
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 0x1001dd63
push dword [eax - 0xc]
mov ecx, dword [ebp - 0x444]
push eax
call fcn.10020080
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001df7f
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 0x1001e1bc
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.1001d330
test al, al
jne 0x1001de09
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001dde7
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 - 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 0x1001dee1
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x18
push eax
call fcn.100a2403
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 0x1001bbe0
push 0x101e4578
call fcn.100a32ce
add esp, 0x10
test eax, eax
je 0x1001debd
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 0x101942d8
push 0
push 0
push str.md5_suc
call fcn.100caab0
mov eax, dword [ebp - 0x43c]
jmp 0x1001df5e
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 0x1001e1dc
jmp 0x1001e1c6
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x1d
push eax
call fcn.100a2403
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 0x1001bbe0
push 0x101e4578
call fcn.100a32ce
add esp, 0x10
test eax, eax
je 0x1001dfa4
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 0x101942d8
push 0
push 0
push str.md5_fail
call fcn.100caab0
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 0x1001df7f
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 0x1001da8d
mov ecx, dword [edx]
push edx
jmp 0x1001da88
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x20
push eax
call fcn.100a245e
add esp, 4
mov byte [ebp - 4], 0x1e
jmp 0x1001ded4
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x12
push eax
call fcn.100a245e
add esp, 4
mov byte [ebp - 4], 0x10
jmp 0x1001ded4
call fcn.1001b540
mov ecx, eax
test ecx, ecx
je 0x1001e1e1
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, 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 - 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.1001c470
mov ecx, dword [ebp - 0x43c]
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x428], 4
cmp dword [ecx - 4], 1
jle 0x1001e07d
push dword [ecx - 0xc]
lea ecx, [ebp - 0x43c]
call fcn.10017f50
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.1001e580
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 0x1001e0d5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x420]
push 0
push 0x101942d8
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 0x1001e10e
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 0x1001e12f
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 0x1001e150
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 0x1001e171
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
jmp 0x1001dad5
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 8
push eax
call fcn.100a245e
add esp, 4
mov byte [ebp - 4], 6
jmp 0x1001ded4
push 0x80004005
call fcn.10017a40
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