Function at 0x1003c640
Capabilities:
Check if file exists
Delete file
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083b64
mov eax, dword fs:[0]
push eax
mov eax, 0x18e0
call fcn.10045860
mov eax, dword [0x100a7070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18a4], ebx
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.1005d9b0
mov eax, dword [ebx + 0x24]
add esp, 0xc
mov dword [ebp - 0x18e4], eax
xorps xmm0, xmm0
mov dword [ebp - 0x18e0], 0
movsd qword [ebp - 0x18dc], xmm0
test eax, eax
je 0x1003c6b7
movsd xmm0, qword [eax + 8]
movsd qword [ebp - 0x18d4], xmm0
movsd xmm0, qword [0x1009e178]
movsd qword [ebp - 0x18cc], xmm0
call fcn.100138c0
mov ecx, eax
test ecx, ecx
jne 0x1003c6e4
push 0x80004005
call fcn.100142e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x10097a44
jne 0x1003c6f9
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x1003c6fb
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x18ac], esi
mov dword [ebp - 4], 0
call fcn.100138c0
mov ecx, eax
test ecx, ecx
jne 0x1003c720
push 0x80004005
call fcn.100142e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x10097a44
jne 0x1003c735
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x1003c737
call edx
add eax, 0x10
mov dword [ebp - 0x18b0], eax
mov byte [ebp - 4], 1
call fcn.100138c0
mov ecx, eax
test ecx, ecx
jne 0x1003c759
push 0x80004005
call fcn.100142e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x10097a44
jne 0x1003c76e
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x1003c770
call edx
add eax, 0x10
mov dword [ebp - 0x18bc], eax
mov byte [ebp - 4], 2
call fcn.100138c0
mov ecx, eax
test ecx, ecx
jne 0x1003c792
push 0x80004005
call fcn.100142e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x10097a44
jne 0x1003c7a7
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x1003c7a9
call edx
add eax, 0x10
mov dword [ebp - 0x18c0], eax
lea ecx, [ebp - 0x189c]
mov byte [ebp - 4], 3
call fcn.1003b480
mov byte [ebp - 4], 4
lea edi, [esi - 0x10]
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x1003c805
cmp dword [edi + 0xc], 0
jl 0x1003c7f6
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x1003c7f6
call fcn.10019540
mov ecx, edi
mov esi, eax
call fcn.10014570
lea eax, [esi + 0x10]
mov dword [ebp - 0x18ac], eax
jmp 0x1003c805
push dword [edx - 0xc]
lea ecx, [ebp - 0x18ac]
push edx
call fcn.10019610
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov ecx, dword [ebp - 0x189c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1003c842
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, 0x10097a44
jne 0x1003c83e
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1003c842
mov ecx, edx
call esi
push dword [ebx + 4]
lea eax, [ebp - 0x18b0]
push str.zupd_
push eax
call fcn.10019da0
add esp, 0xc
lea ecx, [ebp - 0x18bc]
push 0xc
push str.filelist.ini
call fcn.10019610
push 0xc
push str.filelist.ini
lea ecx, [ebp - 0x18c0]
call fcn.10019610
lea ecx, [ebx + 0xc]
call fcn.1002f830
call fcn.100138c0
mov ecx, eax
test ecx, ecx
jne 0x1003c89a
push 0x80004005
call fcn.100142e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x10097a44
jne 0x1003c8af
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x1003c8b1
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x18a0], esi
mov byte [ebp - 4], 5
cmp dword [esi - 0xc], 0
mov edi, dword [ebp - 0x18c0]
jne 0x1003ca36
push 0x800
lea eax, [ebp - 0x1810]
push 0
push eax
call fcn.1005d9b0
add esp, 0xc
lea ecx, [ebp - 0x1810]
call fcn.1001b920
test eax, eax
je 0x1003ca2b
lea ecx, [ebp - 0x1810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003c900
sub ecx, edx
lea eax, [ebp - 0x1810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x18a0]
call fcn.10019610
mov esi, dword [ebp - 0x18a0]
mov ecx, dword [esi - 0xc]
lea eax, [ecx - 1]
test eax, eax
js 0x1003ca21
cmp eax, ecx
jg 0x1003ca21
cmp word [esi + eax*2], 0x5c
je 0x1003ca36
push 0x800
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.1005d9b0
add esp, 0xc
lea ecx, [ebp - 0x18a0]
push 1
push 0x10097a00
call fcn.10018fe0
mov eax, dword [ebp - 0x18b0]
lea ecx, [ebp - 0x18a0]
push dword [eax - 0xc]
push eax
call fcn.10018fe0
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x18a0]
push dword [eax - 0xc]
push eax
call fcn.10018fe0
push 1
push 0x10097a00
lea ecx, [ebp - 0x18a0]
call fcn.10018fe0
push dword [edi - 0xc]
lea ecx, [ebp - 0x18a0]
push edi
call fcn.10018fe0
mov esi, dword [ebp - 0x18a0]
lea eax, [ebp - 0x1010]
push esi
push str._Check_File_whether_existence_:__s_n
push 0x400
push eax
call fcn.1001a430
add esp, 0x10
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003ca36
push esi
push str._Delete_file_:__s_n
lea eax, [ebp - 0x1010]
push 0x400
push eax
call fcn.1001a430
add esp, 0x10
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1003ca36
push 0x80070057
call fcn.100142e0
push str._CheckVersion_:_Get_module_path_error__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x18ac]
push dword [eax - 0xc]
push eax
call fcn.10018fe0
push 1
push 0x10098120
lea ecx, [ebp - 0x18ac]
call fcn.10018fe0
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x18b0]
push dword [eax - 0xc]
push eax
call fcn.10018fe0
push 1
push 0x10097a00
lea ecx, [ebp - 0x18b0]
call fcn.10018fe0
lea eax, [ebx + 0xc]
mov ebx, dword [ebp - 0x18bc]
push eax
push ecx
push edi
push ebx
push dword [ebp - 0x18b0]
push ecx
push dword [ebp - 0x18ac]
mov ecx, dword [ebp - 0x18a4]
call fcn.1003cfc0
movsd xmm0, qword [0x1009e188]
lea ecx, [ebp - 0x18e4]
movaps xmm1, xmm0
mov dword [ebp - 0x189c], eax
movsd qword [ebp - 0x18ec], xmm0
call fcn.10022060
cmp dword [ebp - 0x189c], 0
jl 0x1003cdf7
mov eax, dword [ebp - 0x18a4]
cmp dword [eax + 0x14], 0
je 0x1003cde9
push 0x800
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.1005d9b0
add esp, 0xc
lea ecx, [ebp - 0x1010]
call fcn.1001b920
test eax, eax
je 0x1003cde3
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x18a8]
call fcn.10018a60
push 1
push 0x10097a00
lea ecx, [ebp - 0x18a8]
mov byte [ebp - 4], 6
call fcn.10018fe0
push 5
push str.zupd_
lea ecx, [ebp - 0x18a8]
call fcn.10018fe0
mov eax, dword [ebp - 0x18a4]
lea ecx, [ebp - 0x18a8]
mov eax, dword [eax + 4]
push dword [eax - 0xc]
push eax
call fcn.10018fe0
push 1
push 0x10097a00
lea ecx, [ebp - 0x18a8]
call fcn.10018fe0
push str.version.ini
lea edx, [ebp - 0x18a8]
lea ecx, [ebp - 0x18b4]
call fcn.100184a0
push str.version.ini
lea edx, [ebp - 0x18a8]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1898]
call fcn.100184a0
push str.version.ini
lea edx, [ebp - 0x18ac]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x18b8]
call fcn.100184a0
add esp, 0xc
mov byte [ebp - 4], 9
push dword [ebp - 0x1898]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003cc0a
push dword [ebp - 0x1898]
lea eax, [ebp - 0x810]
push str.Delete_file__s_n
push 0x400
push eax
call fcn.1001a430
add esp, 0x10
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp - 0x1898]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x1898]
lea eax, [ebp - 0x810]
push dword [ebp - 0x18b4]
push dword [ebp - 0x18b8]
push str._Prepare_download_:_url__s__file__s__unpacked_file__s__n
push 0x400
push eax
call fcn.1001a430
add esp, 0x18
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str..temp
lea edx, [ebp - 0x18b4]
lea ecx, [ebp - 0x18c4]
call fcn.100184a0
add esp, 4
mov dword [ebp - 0x189c], eax
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x1890]
push 0xfde9
push dword [ebp - 0x18b8]
lea ecx, [ebp - 0x1894]
mov dword [ebp - 0x1894], eax
call fcn.100190b0
mov eax, dword [ebp - 0x18a4]
xorps xmm0, xmm0
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x189c]
mov ecx, dword [ebp - 0x1894]
push 0
push 1
push dword [eax + 0x28]
movups xmmword [ebp - 0x18dc], xmm0
lea eax, [ebp - 0x18e4]
mov dword [ebp - 0x18e4], 0
movsd xmm0, qword [ebp - 0x18ec]
push str.version.ini
push eax
push dword [ebp - 0x1898]
mov dword [ebp - 0x18e0], 0
movsd qword [ebp - 0x18cc], xmm0
mov edx, dword [edx]
call fcn.1003bd50
mov ecx, dword [ebp - 0x1894]
add esp, 0x18
mov dword [ebp - 0x189c], eax
lea eax, [ebp - 0x1890]
cmp ecx, eax
je 0x1003cd0d
push ecx
call fcn.100637f8
add esp, 4
lea ecx, [ebp - 0x18c4]
call fcn.10018360
cmp dword [ebp - 0x189c], 0
lea eax, [ebp - 0x810]
push dword [ebp - 0x18b4]
jne 0x1003cd4f
push str._Download_file__s_success__n
push 0x400
push eax
call fcn.1001a430
add esp, 0x10
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1003cdb7
push str._Download_file__s_error__n
push 0x400
push eax
call fcn.1001a430
add esp, 0x10
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp - 0x1898]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003cdb7
push dword [ebp - 0x1898]
lea eax, [ebp - 0x810]
push str.Delete_file__s_n
push 0x400
push eax
call fcn.1001a430
add esp, 0x10
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp - 0x1898]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x18b8]
call fcn.10018360
lea ecx, [ebp - 0x1898]
call fcn.10018360
lea ecx, [ebp - 0x18b4]
call fcn.10018360
lea ecx, [ebp - 0x18a8]
call fcn.10018360
mov eax, dword [ebp - 0x18a4]
xor ecx, ecx
cmp dword [eax + 0x14], ecx
sete cl
mov dword [ebp - 0x189c], ecx
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1003ce40
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x18a4], ebx
mov ebx, dword [ebp - 0x18bc]
cmp eax, 0x10097a44
jne 0x1003ce38
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1003ce40
mov ecx, edx
call dword [ebp - 0x18a4]
mov byte [ebp - 4], 2
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1003ce76
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x10097a44
jne 0x1003ce74
mov eax, dword [ecx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call edi
jmp 0x1003ce7c
call edx
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 1
add ebx, 0xfffffff0
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x1003ceac
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x10097a44
jne 0x1003ceaa
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call edi
jmp 0x1003ceac
call edx
mov byte [ebp - 4], 0
mov eax, esi
mov ecx, dword [ebp - 0x18b0]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1003cee4
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, 0x10097a44
jne 0x1003cee0
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call edi
jmp 0x1003cee4
mov ecx, edx
call ebx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18ac]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], esi
dec esi
test esi, esi
jg 0x1003cf1d
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, 0x10097a44
jne 0x1003cf19
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call edi
jmp 0x1003cf1d
mov ecx, edx
call esi
mov eax, dword [ebp - 0x189c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004450b
mov esp, ebp
pop ebp
ret