Function at 0x1003bd50
Capabilities:
Check if file exists
Get file attributes
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083a67
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
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 dword [ebp - 0x9c], edx
mov esi, ecx
mov dword [ebp - 0xb0], esi
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0xac], eax
call fcn.100138c0
mov ecx, eax
test ecx, ecx
jne 0x1003bdbf
push 0x80004005
call fcn.100142e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x10097a44
jne 0x1003bdd4
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x1003bdd6
call edx
add eax, 0x10
mov dword [ebp - 0x88], eax
mov dword [ebp - 4], 0
test esi, esi
je 0x1003be43
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003bdf0
sub ecx, edx
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jg 0x1003be39
lea eax, [edi + edi]
call fcn.10045210
mov esi, esp
test esi, esi
je 0x1003be39
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 0xb0]
xor eax, eax
push eax
push 3
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, dword [ebp - 0x8c]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x1003be48
mov edi, dword [ebp - 0x8c]
xor esi, esi
jmp 0x1003be48
mov esi, str.null
mov ecx, str.null
test edi, edi
mov edx, ecx
mov eax, ecx
cmovne edx, edi
test ebx, ebx
mov dword [ebp - 0xa0], edx
cmovne eax, ebx
push eax
mov eax, dword [ebp - 0x9c]
test eax, eax
push edx
cmovne ecx, eax
lea eax, [ebp - 0x88]
push ecx
push esi
push str._DownloadFile_:_url__s__file__s__unpacked_file__s__md5__s___n
push eax
call fcn.10019da0
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 0x18
push dword [ebp - 0x88]
call edi
mov dword [ebp - 0x84], 0x1009df68
call fcn.100138c0
mov ecx, eax
test ecx, ecx
jne 0x1003beb1
push 0x80004005
call fcn.100142e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x10097a44
jne 0x1003bec6
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x1003bec8
call edx
add eax, 0x10
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x8c]
mov byte [ebp - 4], 1
test ebx, ebx
je 0x1003bfee
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1003bf3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1003bfee
cmp eax, 3
je 0x1003bfee
mov ecx, eax
call fcn.1003efd0
test eax, eax
jne 0x1003bfee
call fcn.100138c0
mov ecx, eax
test ecx, ecx
jne 0x1003bf4f
push 0x80004005
call fcn.100142e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x10097a44
jne 0x1003bf64
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x1003bf66
call edx
add eax, 0x10
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 2
push eax
push 0x5c
push esi
call fcn.1005cca9
add esp, 8
mov ecx, esi
lea edx, [eax + 2]
call fcn.1003ba10
add esp, 4
test ebx, ebx
jne 0x1003bfa0
push 0x80004005
call fcn.100142e0
push ebx
push dword [ebp - 0x90]
call fcn.10063e01
add esp, 8
test eax, eax
jne 0x1003bfdf
movsd xmm1, qword [0x1009e188]
mov ecx, dword [ebp - 0x98]
call fcn.10022060
push str._File_exists__n
call edi
lea ecx, [ebp - 0x90]
call fcn.10018360
xor ebx, ebx
jmp 0x1003c32e
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 1
call fcn.10018360
mov ebx, dword [ebp - 0x9c]
mov ecx, ebx
call fcn.100267d0
push ebx
lea eax, [ebp - 0x88]
push str._Create_full_path:__s
push eax
call fcn.10019da0
add esp, 0xc
push dword [ebp - 0x88]
call edi
push dword [ebp - 0xa0]
lea eax, [ebp - 0x88]
push str.Create_upacked_full_path_:__s_n
push eax
call fcn.10019da0
add esp, 0xc
push dword [ebp - 0x88]
call edi
mov ecx, esi
call fcn.100267d0
push str._check_file_path__n
call edi
test esi, esi
je 0x1003c080
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003c080
push dword [ebp - 0xa0]
lea eax, [ebp - 0x88]
push str.This_file_already_exists__:__s_n
push eax
call fcn.10019da0
add esp, 0xc
push dword [ebp - 0x88]
call edi
xor ebx, ebx
jmp 0x1003c32e
push str._check_file_path_OK__n
call edi
test ebx, ebx
jne 0x1003c09c
push str._error__n
call edi
mov ebx, 1
jmp 0x1003c32e
push str._sSet_file_name__n
call edi
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003c0b0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x80]
call fcn.10019610
push str._Prepare_download_file__n
call edi
mov dword [ebp - 0xb4], 0
nop word [eax + eax]
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x1003c0fb
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1003c2fe
push str.__13__n
call edi
mov ecx, dword [ebp - 0x98]
call fcn.10022010
push str.__14__n
call edi
mov ecx, dword [ebp - 0xb0]
lea edx, [ebp - 0x84]
call fcn.100233b0
push str.__1__n
mov ebx, eax
call edi
test ebx, ebx
je 0x1003c1d0
push str.__2__n
call edi
call fcn.100138c0
test eax, eax
je 0x1003bdb5
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
cmp ecx, 0x10097a44
jne 0x1003c160
lock inc dword [eax + 0x14]
add eax, 8
jmp 0x1003c164
mov ecx, eax
call edx
add eax, 0x10
mov dword [ebp - 0x90], eax
push ebx
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 3
push str._This_url_request_result_:__d_n
push eax
call fcn.10019da0
mov esi, dword [ebp - 0x90]
add esp, 0xc
push esi
call edi
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1003c2e1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x10097a44
jne 0x1003c1c9
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1003c2e1
call edx
jmp 0x1003c2e1
push str.__3__n
call edi
cmp byte [ebp + 0x18], 0
je 0x1003c327
push str.__5__n
call edi
mov edx, dword [ebp - 0x9c]
push ecx
mov ecx, esi
call fcn.1003b840
add esp, 4
mov esi, eax
push str.__6__n
call edi
test esi, esi
je 0x1003c2dc
cmp dword [ebp + 0x1c], 0
je 0x1003c320
xor esi, esi
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0xa4], esi
xorps xmm0, xmm0
mov byte [ebp - 4], 4
push str.__8__n
movlpd qword [ebp - 0x94], xmm0
call edi
push dword [ebp - 0xa0]
lea eax, [ebp - 0x88]
push str._Create_unpacked_file_name_:__s_n
push eax
call fcn.10019da0
add esp, 0xc
push dword [ebp - 0x8c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003c2bc
sub esp, 0xc
lea ecx, [ebp - 0xa8]
push 3
push 1
push SysReAllocStringLen
push dword [ebp - 0x8c]
call fcn.10026750
test eax, eax
js 0x1003c2b6
push str.__9__n
call edi
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0xa8]
call fcn.100321b0
mov eax, dword [ebp + 0x1c]
cmp dword [ebp - 0x94], eax
jne 0x1003c2af
cmp dword [ebp - 0x90], esi
je 0x1003c30c
push str.__11__n
call edi
mov esi, dword [ebp - 0xa8]
push str.__12__n
call edi
mov byte [ebp - 4], 1
test esi, esi
je 0x1003c2dc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xa8], 0
mov ebx, 0x5e
mov eax, dword [ebp - 0xb4]
inc eax
mov dword [ebp - 0xb4], eax
cmp eax, 3
jge 0x1003c32e
mov esi, dword [ebp - 0x8c]
jmp 0x1003c0e0
push str._stopped__n
call edi
mov ebx, 0x5e
jmp 0x1003c32e
push str.__10__n
call edi
lea ecx, [ebp - 0xa8]
call fcn.100267b0
jmp 0x1003c32e
push str.__7__n
jmp 0x1003c32c
push str.__4__n
call edi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x1003c347
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x7c], 0
mov ecx, dword [ebp - 0x80]
or edi, 0xffffffff
add ecx, 0xfffffff0
mov eax, edi
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1003c37f
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, 0x10097a44
jne 0x1003c37b
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1003c37f
mov ecx, edx
call esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x88]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], edi
dec edi
test edi, edi
jg 0x1003c3bc
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, 0x10097a44
jne 0x1003c3b8
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1003c3bc
mov ecx, edx
call esi
mov eax, ebx
lea esp, [ebp - 0xc4]
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