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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014f0ac
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 dword [ebp - 0x430], ecx
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x420], esi
call fcn.10017d20
mov ecx, eax
test ecx, ecx
je 0x1001a989
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
mov dword [ebp - 4], esi
push eax
call fcn.10038290
add esp, 4
or edi, 0xffffffff
test eax, eax
je 0x1001a221
mov ecx, dword [ebp - 0x430]
mov ecx, dword [ecx]
mov eax, dword [ecx + 0x64]
cmp dword [eax - 0xc], 0
je 0x1001a21b
push ecx
mov esi, esp
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x414], esi
mov eax, dword [ecx + 0x64]
sub eax, 0x10
push eax
call fcn.10019b20
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x41c]
push eax
call fcn.10038670
add esp, 8
mov dword [ebp - 0x418], 0
mov eax, dword [ebp - 0x420]
mov byte [ebp - 4], 2
mov dword [ebp - 0x424], 0
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x10019f3d
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x10019f55
call fcn.10017d20
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x1001a993
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x440], 1
mov dword [ebp - 0x424], eax
mov eax, dword [ebp - 0x420]
push 1
push 0x101601d4
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.10019b90
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.10019130
add esp, 0x20
mov dword [ebp - 0x440], 0
mov edx, dword [ebp - 0x424]
mov eax, edi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10019fd4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x101a7bf4]
test ecx, ecx
jne 0x1001a03b
push 0x101a10e8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x101a7bf4], 0
jne 0x1001a022
push 0x1c
call fcn.100f8c40
mov esi, eax
add esp, 4
mov dword [ebp - 0x414], esi
test esi, esi
je 0x1001a01a
lea ecx, [esi + 4]
mov dword [esi], vtable._BaseModule::CCriticalSection.0
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x1001a01c
xor esi, esi
mov dword [0x101a7bf4], esi
push 0x101a10e8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x101a7bf4]
test ecx, ecx
jne 0x1001a03b
xor eax, eax
jmp 0x1001a09f
mov eax, dword [0x101a7bf0]
test eax, eax
jne 0x1001a09f
mov eax, dword [ecx]
push ecx
call dword [eax]
cmp dword [0x101a7bf0], 0
jne 0x1001a08f
push 4
call fcn.100f8c40
add esp, 4
mov dword [ebp - 0x414], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x1001a079
mov ecx, eax
mov dword [eax], 0
call fcn.1009c010
jmp 0x1001a07b
xor eax, eax
mov byte [ebp - 4], 4
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 0x101601d8
push 0
push 0
push str.start_download
mov ecx, eax
call fcn.1009c0b0
push dword [ebp - 0x418]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001a27d
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 0x1001a99d
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x428]
call fcn.10019a00
test al, al
jne 0x1001a162
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001a140
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.1001c8c0
mov eax, dword [ebp - 0x430]
mov esi, dword [ebp - 0x428]
push esi
mov byte [ebp - 4], 7
mov eax, dword [eax]
push dword [eax + 0x68]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1001a262
mov ecx, dword [ebp - 0x42c]
lea eax, [ebp - 0x418]
push eax
call fcn.100190c0
push 0
push 0x101601d8
push 0
push 0
push str.md5_suc2
mov dword [ebp - 0x424], 1
call fcn.1001ae30
mov ecx, eax
call fcn.1009c0b0
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001a1d9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x418]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001a1fa
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], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001a21b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x424]
mov eax, dword [ebp - 0x420]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x1001a243
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.100f8fe1
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 0x1001a27d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.10017d20
mov ecx, eax
test ecx, ecx
je 0x1001a9a7
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x434], eax
mov ecx, dword [ebp - 0x430]
xorps xmm0, xmm0
push 0x20
mov byte [ebp - 4], 8
movlpd qword [ebp - 0x43c], xmm0
mov eax, dword [ecx]
mov dword [ebp - 0x414], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x428], eax
call fcn.100f8c40
add esp, 4
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 9
test eax, eax
je 0x1001a2f9
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
call fcn.10018e20
jmp 0x1001a2fb
xor eax, eax
push dword [ebp - 0x414]
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 8
push eax
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x438], 0
call fcn.10018770
push dword [ebp - 0x428]
mov ecx, dword [ebp - 0x43c]
lea eax, [ebp - 0x418]
push 0x493e0
push eax
mov eax, dword [ebp - 0x414]
xor esi, esi
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x424], esi
push dword [eax + 0x64]
call fcn.10019cf0
test eax, eax
lea ecx, [ebp - 0x434]
mov eax, dword [ebp - 0x43c]
je 0x1001a377
mov esi, 1
add eax, 0x14
mov dword [ebp - 0x424], esi
jmp 0x1001a37a
add eax, 0x1c
push eax
call fcn.10019000
mov ecx, dword [ebp - 0x438]
mov byte [ebp - 4], 8
test ecx, ecx
je 0x1001a3af
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x1001a3af
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x438]
mov eax, edi
lock xadd dword [ecx + 8], eax
jne 0x1001a3af
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x1001a7ed
mov ecx, dword [0x101a7bf4]
test ecx, ecx
jne 0x1001a41e
push 0x101a10e8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x101a7bf4], 0
jne 0x1001a405
push 0x1c
call fcn.100f8c40
mov esi, eax
add esp, 4
mov dword [ebp - 0x414], esi
test esi, esi
je 0x1001a3fd
lea ecx, [esi + 4]
mov dword [esi], vtable._BaseModule::CCriticalSection.0
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x1001a3ff
xor esi, esi
mov dword [0x101a7bf4], esi
push 0x101a10e8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x101a7bf4]
test ecx, ecx
jne 0x1001a41e
xor eax, eax
jmp 0x1001a482
mov eax, dword [0x101a7bf0]
test eax, eax
jne 0x1001a482
mov eax, dword [ecx]
push ecx
call dword [eax]
cmp dword [0x101a7bf0], 0
jne 0x1001a472
push 4
call fcn.100f8c40
add esp, 4
mov dword [ebp - 0x414], eax
mov byte [ebp - 4], 0xb
test eax, eax
je 0x1001a45c
mov ecx, eax
mov dword [eax], 0
call fcn.1009c010
jmp 0x1001a45e
xor eax, eax
mov byte [ebp - 4], 8
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 0x101601d8
push 0
push 0
push str.download_suc
mov ecx, eax
call fcn.1009c0b0
mov esi, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x418]
mov esi, dword [esi]
lea edx, [eax - 0x10]
sub esi, 0x10
cmp edx, esi
je 0x1001a50a
cmp dword [esi + 0xc], 0
jl 0x1001a4f5
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x1001a4f5
push edx
call fcn.10019b20
add esp, 4
mov dword [ebp - 0x414], eax
mov ecx, edi
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001a4e8
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x414]
mov ecx, dword [ebp - 0x42c]
add eax, 0x10
mov dword [ecx], eax
jmp 0x1001a504
push dword [eax - 0xc]
mov ecx, dword [ebp - 0x42c]
push eax
call fcn.1001c8c0
mov eax, dword [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001a7c8
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 0x1001a9b1
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x410]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x428]
call fcn.10019a00
test al, al
jne 0x1001a5b2
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001a590
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.1001c8c0
mov eax, dword [ebp - 0x430]
mov esi, dword [ebp - 0x428]
push esi
mov byte [ebp - 4], 0xf
mov eax, dword [eax]
push dword [eax + 0x68]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ecx, dword [0x101a7bf4]
test eax, eax
jne 0x1001a6c6
test ecx, ecx
jne 0x1001a640
push 0x101a10e8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x101a7bf4], 0
jne 0x1001a627
push 0x1c
call fcn.100f8c40
add esp, 4
mov dword [ebp - 0x414], eax
test eax, eax
je 0x1001a620
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 0x1001a622
xor eax, eax
mov dword [0x101a7bf4], eax
push 0x101a10e8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x101a7bf4]
test ecx, ecx
jne 0x1001a640
xor eax, eax
jmp 0x1001a6a4
mov eax, dword [0x101a7bf0]
test eax, eax
jne 0x1001a6a4
mov eax, dword [ecx]
push ecx
call dword [eax]
cmp dword [0x101a7bf0], 0
jne 0x1001a694
push 4
call fcn.100f8c40
add esp, 4
mov dword [ebp - 0x414], eax
mov byte [ebp - 4], 0x10
test eax, eax
je 0x1001a67e
mov ecx, eax
mov dword [eax], 0
call fcn.1009c010
jmp 0x1001a680
xor eax, eax
mov byte [ebp - 4], 0xf
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 0x101601d8
push 0
push 0
push str.md5_suc
mov ecx, eax
call fcn.1009c0b0
mov eax, dword [ebp - 0x424]
jmp 0x1001a7a7
test ecx, ecx
jne 0x1001a72a
push 0x101a10e8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x101a7bf4], 0
jne 0x1001a711
push 0x1c
call fcn.100f8c40
add esp, 4
mov dword [ebp - 0x414], eax
test eax, eax
je 0x1001a70a
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 0x1001a70c
xor eax, eax
mov dword [0x101a7bf4], eax
push 0x101a10e8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x101a7bf4]
test ecx, ecx
jne 0x1001a72a
xor eax, eax
jmp 0x1001a78e
mov eax, dword [0x101a7bf0]
test eax, eax
jne 0x1001a78e
mov eax, dword [ecx]
push ecx
call dword [eax]
cmp dword [0x101a7bf0], 0
jne 0x1001a77e
push 4
call fcn.100f8c40
add esp, 4
mov dword [ebp - 0x414], eax
mov byte [ebp - 4], 0x11
test eax, eax
je 0x1001a768
mov ecx, eax
mov dword [eax], 0
call fcn.1009c010
jmp 0x1001a76a
xor eax, eax
mov byte [ebp - 4], 0xf
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 0x101601d8
push 0
push 0
push str.md5_fail
mov ecx, eax
call fcn.1009c0b0
xor eax, eax
mov dword [ebp - 0x424], eax
add esi, 0xfffffff0
mov byte [ebp - 4], 8
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001a7c8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x434]
mov eax, edi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001a1d9
mov ecx, dword [edx]
push edx
jmp 0x1001a1d4
call fcn.10017d20
mov ecx, eax
test ecx, ecx
je 0x1001a9bb
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x428], eax
mov eax, dword [ebp - 0x434]
mov esi, 0x1015f9a8
test eax, eax
mov byte [ebp - 4], 0xd
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 - 0x430], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push 0
lea ecx, [ebp - 0x424]
mov dword [ebp - 0x414], eax
mov dword [ebp - 0x424], 0
call fcn.10018ab0
mov ecx, dword [ebp - 0x424]
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x440], 4
cmp dword [ecx - 4], 1
jle 0x1001a88e
push dword [ecx - 0xc]
lea ecx, [ebp - 0x424]
call fcn.100147b0
mov ecx, dword [ebp - 0x424]
push dword [ebp - 0x414]
push ecx
push dword [ebp - 0x430]
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x42c]
push dword [eax]
lea eax, [ebp - 0x428]
push str.download_fail__s
push eax
call fcn.1001ad60
mov edx, dword [ebp - 0x424]
add esp, 0xc
mov byte [ebp - 4], 0xc
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001a8e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x428]
push 0
push 0x101601d8
push 0
push 0
push esi
call fcn.1001ae30
mov ecx, eax
call fcn.1009c0b0
mov byte [ebp - 4], 8
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001a91f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x434]
mov eax, edi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001a940
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x418]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001a961
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], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001a982
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
jmp 0x1001a221
push 0x80004005
call fcn.100142b0
push 0x80004005
call fcn.100142b0
push 0x80004005
call fcn.100142b0
push 0x80004005
call fcn.100142b0
push 0x80004005
call fcn.100142b0
push 0x80004005
call fcn.100142b0
int3