Function at 0x65f5d0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70af9a
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1c0
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x2d8], 0
jne 0x65f677
mov ecx, dword [0x855a98]
test ecx, ecx
je 0x65f62f
cmp byte [0x855a6a], 0
jne 0x65f63a
call fcn.00653890
mov ecx, dword [0x855a98]
mov eax, dword [ecx]
push str.DownloadGlobalData::initializeFileDownload_:_not_initialized
push 0x75c10c
push ecx
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x748368]
call esi
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0067d651
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp byte [edi + 0xe0], 1
jne 0x65f912
push 4
xor eax, eax
mov byte [edi + 0x500], 1
mov dword [edi + 0x4e8], 0
lea ecx, [ebp - 0x11c]
mov dword [edi + 0x4ec], 0
push str.ETag
mov byte [edi + 0x1f5], 1
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 7
mov word [ebp - 0x11c], ax
call fcn.0042fe00
lea eax, [ebp - 0x11c]
mov dword [ebp - 4], 0
push eax
lea ecx, [edi + 0x508]
call fcn.00440d10
push 0
push 0x75c10c
mov ecx, eax
call fcn.0042fe00
lea ecx, [ebp - 0x11c]
mov dword [ebp - 4], 0xffffffff
call fcn.0042fd70
cmp byte [edi + 0xe1], 0
je 0x65f8da
lea esi, [edi + 0x1fc]
push str.Accept_Encoding
mov edx, esi
lea ecx, [ebp - 0x1d0]
call fcn.00439f60
add esp, 4
push 1
push 0x761b44
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.0042ff20
mov dword [ebp - 0x13c], 0
xor ecx, ecx
mov dword [ebp - 0x138], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x14c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x13c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push 4
push str.gzip
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 2
call fcn.0042ff20
mov dword [ebp - 0x124], 0
xor ecx, ecx
mov dword [ebp - 0x120], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x134], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x124], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push 2
push 0x78135c
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 3
call fcn.0042ff20
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x1b8], xmm0
movups xmmword [ebp - 0x104], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x104]
movq qword [ebp - 0xd8], xmm0
movq qword [ebp - 0xf4], xmm0
cmp esi, eax
je 0x65f871
mov ecx, esi
call fcn.0042fd70
movups xmm0, xmmword [ebp - 0x1b8]
xor eax, eax
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 7
movups xmmword [esi], xmm0
mov word [ebp - 0x104], ax
movq xmm0, qword [ebp - 0xd8]
movq qword [esi + 0x10], xmm0
lea ecx, [ebp - 0x104]
call fcn.0042fd70
lea ecx, [ebp - 0x134]
call fcn.0042fd70
lea ecx, [ebp - 0x14c]
call fcn.0042fd70
lea ecx, [ebp - 0x1d0]
mov dword [ebp - 4], 0xffffffff
call fcn.0042fd70
mov ecx, dword [0x855a98]
test ecx, ecx
je 0x65f8b7
cmp byte [0x855a6a], 0
jne 0x65f8c2
call fcn.00653890
mov ecx, dword [0x855a98]
mov eax, dword [ecx]
push str.Preference:_Preference_is_set_for_adding_compression_header
push ecx
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x748368]
call esi
add esp, 8
mov ecx, dword [0x855a98]
test ecx, ecx
je 0x65f8ed
cmp byte [0x855a6a], 0
jne 0x65f8f8
call fcn.00653890
mov ecx, dword [0x855a98]
mov eax, dword [ecx]
push str.Preference:_Client_has_set_the_preference_for_single_stream_download
push ecx
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x748368]
call esi
add esp, 8
jmp 0x65f91f
call fcn.00660800
test al, al
je 0x65f657
cmp byte [edi + 0xec], 1
jne 0x65f965
mov ecx, dword [0x855a98]
mov byte [edi + 0x1f7], 1
test ecx, ecx
je 0x65f942
cmp byte [0x855a6a], 0
jne 0x65f94d
call fcn.00653890
mov ecx, dword [0x855a98]
mov eax, dword [ecx]
push str.Preference:_Client_has_set_the_preference_for_No_Retrial_on_Specific_HTTP_Errors
push ecx
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x748368]
call esi
add esp, 8
mov esi, dword [edi + 0xf0]
cmp esi, 0x3c
je 0x65f9b1
test esi, esi
je 0x65f9b1
mov ecx, dword [0x855a98]
mov dword [edi + 0x1f8], esi
test ecx, ecx
je 0x65f98d
cmp byte [0x855a6a], 0
jne 0x65f998
call fcn.00653890
mov ecx, dword [0x855a98]
mov eax, dword [ecx]
push esi
push str.Preference:_Client_has_set_the_preference_for_Max_Retrial_Value_for_Retry_After_header_handling._Val___lu
push ecx
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x748368]
call esi
add esp, 0xc
mov ecx, edi
call fcn.00662580
test al, al
je 0x65f657
lea ecx, [edi + 0xf8]
lea eax, [edi + 0x110]
mov dword [ebp - 0xdc], ecx
mov edx, ecx
lea ecx, [ebp - 0x34]
push eax
call fcn.00443660
add esp, 4
push str..aamd
lea edx, [ebp - 0x34]
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x64]
call fcn.00439f60
add esp, 4
mov byte [ebp - 4], 5
cmp byte [edi + 0x1f0], 0
mov byte [edi + 0x2d9], 0
je 0x65fa68
cmp byte [edi + 0x1f5], 0
jne 0x65fa68
cmp dword [ebp - 0x50], 8
lea esi, [ebp - 0x64]
cmovae esi, dword [ebp - 0x64]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x65fb15
mov ecx, dword [0x855a98]
test ecx, ecx
je 0x65fa44
cmp byte [0x855a6a], 0
jne 0x65fa4f
call fcn.00653890
mov ecx, dword [0x855a98]
mov eax, dword [ecx]
push esi
push str.File_does_not_exist_at__s
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x748368]
call esi
add esp, 0xc
mov byte [ebp - 0xc1], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
push 0x40
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.0067d662
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x1c], eax
mov al, byte [ebp - 0xc1]
mov byte [ebp - 4], 6
test al, al
je 0x65fe51
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [edi + 0x374]
call fcn.0065cb60
test al, al
jne 0x65fb3b
mov ecx, dword [0x855a98]
test ecx, ecx
je 0x65fad7
cmp byte [0x855a6a], al
jne 0x65fae2
call fcn.00653890
mov ecx, dword [0x855a98]
mov eax, dword [ecx]
push str.failed_to_init_aamd_file_in_write_mode.
push 0x75c10c
push ecx
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x748368]
call esi
add esp, 0xc
mov byte [ebp - 0xc1], 0
lea esi, [edi + 0x374]
mov ecx, esi
call fcn.0065ce80
jmp 0x65fb41
cmp dword [ebp - 0x20], 8
lea esi, [ebp - 0x34]
cmovae esi, dword [ebp - 0x34]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x65fa31
mov byte [ebp - 0xc1], 1
jmp 0x65fa6f
lea esi, [edi + 0x374]
mov ecx, esi
call fcn.0065cc50
test al, al
jne 0x65fb98
mov ecx, dword [0x855a98]
test ecx, ecx
je 0x65fb5e
cmp byte [0x855a6a], al
jne 0x65fb69
call fcn.00653890
mov ecx, dword [0x855a98]
mov eax, dword [ecx]
push str.aamd_file_is_not_valid._And_download_should_begin_from_beginning.
push 0x75c10c
push ecx
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x748368]
call esi
add esp, 0xc
mov byte [ebp - 0xc1], 0
lea ecx, [edi + 0x374]
call fcn.0065ce80
xorps xmm0, xmm0
mov dword [ebp - 0xc8], 0
xor eax, eax
movlpd qword [ebp - 0xe8], xmm0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 7
mov word [ebp - 0x94], ax
sub esp, 8
mov byte [ebp - 4], 7
lea eax, [ebp - 0xe8]
lea ecx, [edi + 0x378]
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.00658d90
test al, al
jne 0x65fc6a
mov eax, dword [edi + 0x39c]
lea ecx, [ebp - 0x16c]
mov dword [ebp - 0x178], eax
mov eax, dword [edi + 0x3a0]
mov dword [ebp - 0x174], eax
mov eax, dword [edi + 0x3a4]
mov dword [ebp - 0x170], eax
lea eax, [edi + 0x3a8]
push eax
call fcn.0042fc50
mov eax, dword [edi + 0x3c0]
lea ecx, [edi + 0x440]
mov dword [ebp - 0x154], eax
mov eax, dword [edi + 0x3c4]
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x178]
push eax
call fcn.00655f80
lea ecx, [ebp - 0x16c]
call fcn.0042fd70
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 6
call fcn.0042fd70
jmp 0x65fda1
cmp dword [ebp - 0xe4], 0
xorps xmm0, xmm0
mov esi, dword [ebp - 0xc8]
movlpd qword [ebp - 0xd8], xmm0
jb 0x65fd5a
mov edx, dword [ebp - 0xe8]
ja 0x65fc98
test edx, edx
je 0x65fd5a
mov ecx, dword [ebp - 0xd4]
mov eax, dword [ebp - 0xd8]
cmp byte [eax + esi], 0x3c
je 0x65fcc7
add eax, 1
adc ecx, 0
cmp ecx, dword [ebp - 0xe4]
jb 0x65fca4
ja 0x65fd5a
cmp eax, edx
jb 0x65fca4
jmp 0x65fd5a
lea edx, [eax + esi]
mov dword [ebp - 0x6c], 0
mov ecx, edx
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], 0
lea eax, [ecx + 1]
mov dword [ebp - 0xd4], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x65fce7
sub ecx, dword [ebp - 0xd4]
push ecx
push edx
lea ecx, [ebp - 0x7c]
call fcn.00430160
lea edx, [ebp - 0x94]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x7c]
call fcn.00646ee0
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x68]
cmp edx, 0x10
jb 0x65fd48
mov ecx, dword [ebp - 0x7c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x65fd3e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x660745
push edx
push ecx
call fcn.0067d8e3
add esp, 8
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], 0
push esi
call fcn.0067d914
add esp, 4
mov eax, 0x8123
test esi, esi
cmovne esi, eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0xc8], esi
push eax
call fcn.0065d1c0
lea ecx, [ebp - 0x94]
mov byte [ebp - 0xc9], al
mov byte [ebp - 4], 6
call fcn.0042fd70
cmp byte [ebp - 0xc9], 0
jne 0x65fdee
mov ecx, dword [0x855a98]
test ecx, ecx
je 0x65fdb4
cmp byte [0x855a6a], 0
jne 0x65fdbf
call fcn.00653890
mov ecx, dword [0x855a98]
mov eax, dword [ecx]
push str.Failed_to_get_the_headers_from_the_aamd_file.
push 0x75c10c
push ecx
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x748368]
call esi
add esp, 0xc
mov byte [ebp - 0xc1], 0
lea ecx, [edi + 0x374]
call fcn.0065ce80
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00661ca0
test al, al
jne 0x65fe49
mov ecx, dword [0x855a98]
test ecx, ecx
je 0x65fe0f
cmp byte [0x855a6a], al
jne 0x65fe1a
call fcn.00653890
mov ecx, dword [0x855a98]
mov eax, dword [ecx]
push str.Headers_are_invalid_in_AAMD_file._The_download_would_resume_from_start_now.
push 0x75c10c
push ecx
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x748368]
call esi
add esp, 0xc
mov byte [ebp - 0xc1], 0
lea ecx, [edi + 0x374]
call fcn.0065ce80
mov al, byte [ebp - 0xc1]
test al, al
sete al
cmp byte [ebp - 0xc1], 0
mov byte [edi + 0x1f6], al
jne 0x660556
cmp dword [edi + 0x10c], 8
lea esi, [edi + 0xf8]
mov ecx, esi
jb 0x65fe7a
mov ecx, dword [esi]
call fcn.00657a60
test al, al
jne 0x65ff17
cmp dword [edi + 0x108], 0
je 0x65ff17
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x65fe9e
mov eax, dword [esi]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x65ff10
cmp eax, 0xb7
je 0x65ff10
cmp eax, 0x50
je 0x65ff10
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
lea ecx, [edi + 0x340]
push ecx
push eax
call fcn.0065dc90
mov eax, dword [0x855a98]
test eax, eax
je 0x65fedf
cmp byte [0x855a6a], 0
jne 0x65fee9
call fcn.00653890
mov eax, dword [0x855a98]
cmp dword [esi + 0x14], 8
jb 0x65fef7
mov esi, dword [esi]
mov dword [ebp - 0xdc], esi
mov ecx, dword [ebp - 0xdc]
mov esi, dword [eax]
push ecx
push str.failed_to_create_a_dir____s_on_local_disk.
push 0x75c10c
push eax
jmp 0x6600db
mov byte [edi + 0x2d9], 1
cmp dword [ebp - 0x20], 8
lea esi, [ebp - 0x34]
cmovae esi, dword [ebp - 0x34]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x660102
mov ecx, dword [0x855a98]
test ecx, ecx
je 0x65ff43
cmp byte [0x855a6a], al
jne 0x65ff4e
call fcn.00653890
mov ecx, dword [0x855a98]
mov eax, dword [ecx]
push esi
push str.File_does_not_exist_at__s
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x748368]
call esi
add esp, 0xc
mov dword [ebp - 0xc8], 0
xor eax, eax
mov dword [ebp - 0xd4], eax
nop dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push 0
cmovae eax, dword [ebp - 0x34]
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
mov dword [ebp - 0xe4], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
jne 0x6600f7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0xec], eax
mov eax, dword [0x855a98]
mov dword [ebp - 0xdc], eax
test eax, eax
je 0x65ffde
cmp byte [0x855a6a], 0
jne 0x65ffee
call fcn.00653890
mov eax, dword [0x855a98]
mov dword [ebp - 0xdc], eax
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [esi + 0x24]
mov ecx, esi
push eax
push dword [ebp - 0xe4]
push str.Failed_to_create_a_file_at__s._Error___d_
push 0x75c10c
push dword [ebp - 0xdc]
call dword [0x748368]
call esi
mov ecx, dword [0x855a98]
add esp, 0x14
test ecx, ecx
je 0x660030
cmp byte [0x855a6a], 0
jne 0x66003b
call fcn.00653890
mov ecx, dword [0x855a98]
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0xc8]
cmovae eax, dword [ebp - 0x34]
inc edx
mov esi, dword [ecx]
push edx
push eax
push str.Failed_to_create_a_file_on_local_disk_at__s._Try_count:__d.
mov esi, dword [esi + 0x1c]
push 0x75c10c
push ecx
mov ecx, esi
mov dword [ebp - 0xc8], edx
call dword [0x748368]
call esi
mov eax, dword [ebp - 0xd4]
add esp, 0x14
add eax, 0x1f4
mov dword [ebp - 0xd4], eax
cmp eax, 0x5dc
jl 0x65ff80
lea eax, [ebp - 0x34]
push eax
lea eax, [edi + 0x340]
push eax
push dword [ebp - 0xec]
call fcn.0065dc90
mov ecx, dword [0x855a98]
test ecx, ecx
je 0x6600b7
cmp byte [0x855a6a], 0
jne 0x6600c2
call fcn.00653890
mov ecx, dword [0x855a98]
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
mov esi, dword [ecx]
cmovae eax, dword [ebp - 0x34]
push eax
push str.failed_to_create_a_file_on_local_disk_at__s.
push 0x75c10c
push ecx
mov esi, dword [esi + 0x24]
mov ecx, esi
call dword [0x748368]
call esi
add esp, 0x10
mov byte [ebp - 0xc1], 0
jmp 0x66070c
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
jmp 0x660104
xor al, al
mov byte [edi + 0x2da], al
mov esi, 0x1f4
nop
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0xec]
cmovae ecx, dword [ebp - 0x34]
push ecx
push dword [edi + 0x4fc]
push dword [edi + 0x4f8]
call fcn.00657810
add esp, 0xc
test al, al
jne 0x6601de
push esi
call dword [sym.imp.KERNEL32.DLL_Sleep]
add esi, 0x1f4
cmp esi, 0x9c4
jl 0x660110
lea eax, [ebp - 0x34]
push eax
lea eax, [edi + 0x340]
push eax
push dword [ebp - 0xec]
call fcn.0065dc90
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0xec]
cmovae ecx, dword [ebp - 0x34]
call fcn.006579a0
mov ecx, dword [0x855a98]
test ecx, ecx
je 0x660192
cmp byte [0x855a6a], 0
jne 0x66019d
call fcn.00653890
mov ecx, dword [0x855a98]
push dword [edi + 0x4fc]
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push dword [edi + 0x4f8]
cmovae eax, dword [ebp - 0x34]
mov esi, dword [ecx]
push eax
push str.failed_to_extend_the_file_size_of__s_upto__llu.
push 0x75c10c
mov esi, dword [esi + 0x24]
push ecx
mov ecx, esi
call dword [0x748368]
call esi
add esp, 0x18
mov byte [ebp - 0xc1], 0
jmp 0x66070c
cmp byte [edi + 0x1f5], 0
jne 0x660556
cmp byte [edi + 0x1f0], 0
je 0x660556
lea esi, [edi + 0x374]
mov ecx, esi
call fcn.0065ce80
cmp dword [ebp - 0x50], 8
lea eax, [ebp - 0x64]
push 0
cmovae eax, dword [ebp - 0x64]
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
mov dword [ebp - 0xe4], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
jne 0x6602e1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov eax, dword [0x855a98]
mov dword [ebp - 0xd4], eax
test eax, eax
je 0x660256
cmp byte [0x855a6a], 0
jne 0x660266
call fcn.00653890
mov eax, dword [0x855a98]
mov dword [ebp - 0xd4], eax
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [esi + 0x24]
mov ecx, esi
push eax
push dword [ebp - 0xe4]
push str.Failed_to_create_a_file_at__s._Error___d_
push 0x75c10c
push dword [ebp - 0xd4]
call dword [0x748368]
call esi
mov ecx, dword [0x855a98]
add esp, 0x14
test ecx, ecx
je 0x6602a8
cmp byte [0x855a6a], 0
jne 0x6602b3
call fcn.00653890
mov ecx, dword [0x855a98]
cmp dword [ebp - 0x50], 8
lea eax, [ebp - 0x64]
mov esi, dword [ecx]
cmovae eax, dword [ebp - 0x64]
push eax
push str.failed_to_create_a_file___s__on_local_disk.
mov esi, dword [esi + 0x24]
push 0x75c10c
push ecx
mov ecx, esi
call dword [0x748368]
call esi
add esp, 0x10
jmp 0x660556
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.0065cb60
test al, al
jne 0x66031e
mov ecx, dword [0x855a98]
test ecx, ecx
je 0x660309
cmp byte [0x855a6a], al
jne 0x660314
call fcn.00653890
mov ecx, dword [0x855a98]
push str.failed_to_init_aamd_file_in_write_mode.
jmp 0x66053e
cmp byte [esi], 0
jne 0x660363
mov ecx, dword [0x855a98]
test ecx, ecx
je 0x660336
cmp byte [0x855a6a], 0
jne 0x660341
call fcn.00653890
mov ecx, dword [0x855a98]
mov eax, dword [ecx]
push str.writeAAMDMetaInfoString:_unintialized._Invalid_params
push 0x75c10c
push ecx
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x748368]
call esi
add esp, 0xc
jmp 0x6604a7
push 0x1c
call fcn.0067db09
add esp, 4
mov dword [ebp - 0xc8], eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
push 0xf
push str.Adobe_Download_
call fcn.00430160
push 3
push 0x7e173c
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 9
call fcn.00441730
cmp dword [ebp - 0x38], 0x10
lea eax, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x4c]
push eax
push 0x789f6c
push 0x1c
push dword [ebp - 0xc8]
call fcn.00443790
add esp, 0x10
mov byte [ebp - 0xc1], 1
lea ecx, [esi + 4]
push eax
push dword [ebp - 0xc8]
push 0
push 0
call fcn.006589b0
test al, al
jne 0x660446
mov eax, dword [esi + 0x28]
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x1a4], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x1a0], eax
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x19c], eax
lea eax, [esi + 0x34]
push eax
call fcn.0042fc50
mov eax, dword [esi + 0x4c]
lea ecx, [esi + 0xcc]
mov dword [ebp - 0x180], eax
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x17c], eax
lea eax, [ebp - 0x1a4]
push eax
call fcn.00655f80
lea ecx, [ebp - 0x198]
call fcn.0042fd70
mov byte [ebp - 0xc1], 0
push dword [ebp - 0xc8]
call fcn.0067d914
mov byte [ebp - 4], 6
add esp, 4
mov edx, dword [ebp - 0x38]
cmp edx, 0x10
jb 0x66048c
mov ecx, dword [ebp - 0x4c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x660482
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x66074a
push edx
push ecx
call fcn.0067d8e3
add esp, 8
cmp byte [ebp - 0xc1], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
jne 0x6604e2
mov ecx, dword [0x855a98]
test ecx, ecx
je 0x6604ba
cmp byte [0x855a6a], 0
jne 0x6604c5
call fcn.00653890
mov ecx, dword [0x855a98]
mov eax, dword [ecx]
push str.Failed_to_write_the_meta_information_in_the_aamd_file
push 0x75c10c
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x748368]
call esi
add esp, 0xc
push 0
push dword [edi + 0xc8]
push dword [edi + 0x4fc]
push dword [edi + 0x4f8]
call fcn.006d20b0
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x1c]
push eax
call fcn.00662220
push esi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [edi + 0x374]
call fcn.0065cf40
test al, al
jne 0x660556
mov ecx, dword [0x855a98]
test ecx, ecx
je 0x66052e
cmp byte [0x855a6a], al
jne 0x660539
call fcn.00653890
mov ecx, dword [0x855a98]
push str.Failed_to_write_the_aamd_headers_in_the_file
mov eax, dword [ecx]
push 0x75c10c
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x748368]
call esi
add esp, 0xc
sub esp, 0x18
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.0042fc50
push ecx
lea ecx, [edi + 0x228]
call fcn.00658880
test al, al
jne 0x66068d
mov eax, dword [edi + 0x24c]
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0xc0], eax
mov eax, dword [edi + 0x250]
mov dword [ebp - 0xbc], eax
mov eax, dword [edi + 0x254]
mov dword [ebp - 0xb8], eax
lea eax, [edi + 0x258]
push eax
call fcn.0042fc50
mov eax, dword [edi + 0x270]
mov dword [ebp - 0x9c], eax
mov eax, dword [edi + 0x274]
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [edi + 0x2e4]
call fcn.0065d830
mov eax, dword [edi + 0x2f0]
lea ecx, [edi + 0x348]
mov dword [edi + 0x340], eax
mov eax, dword [edi + 0x2f4]
mov dword [edi + 0x344], eax
lea eax, [edi + 0x2f8]
cmp ecx, eax
je 0x660617
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x66060e
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.0042fe00
mov eax, dword [edi + 0x310]
mov ecx, dword [0x855a98]
mov dword [edi + 0x360], eax
mov al, byte [edi + 0x314]
mov byte [edi + 0x364], al
mov eax, dword [edi + 0x318]
mov dword [edi + 0x368], eax
test ecx, ecx
je 0x66064e
cmp byte [0x855a6a], 0
jne 0x660659
call fcn.00653890
mov ecx, dword [0x855a98]
mov eax, dword [ecx]
push str.failed_to_init_the_file_handle_for_the_output_file
push 0x75c10c
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x748368]
call esi
add esp, 0xc
lea ecx, [ebp - 0xb4]
call fcn.0042fd70
mov byte [ebp - 0xc1], 0
jmp 0x66070c
mov dword [edi + 0x330], 0
mov dword [edi + 0x334], 0
mov dword [edi + 0x338], 0
mov dword [edi + 0x33c], 3
add edi, 0x31c
mov eax, dword [edi]
mov dword [ebp - 0xe4], eax
mov esi, dword [eax + 4]
cmp byte [esi + 0xd], 0
jne 0x6606f6
nop dword [eax]
push dword [esi + 8]
mov ecx, edi
push edi
call fcn.00455a20
mov eax, esi
mov esi, dword [esi]
push 0x18
push eax
call fcn.0067d8e3
add esp, 8
cmp byte [esi + 0xd], 0
je 0x6606d0
mov eax, dword [ebp - 0xe4]
mov dword [eax + 4], eax
mov dword [eax], eax
mov dword [eax + 8], eax
mov dword [edi + 4], 0
mov byte [ebp - 0xc1], 1
mov eax, dword [ebp - 0x1c]
push dword [eax + 4]
lea eax, [ebp - 0x1c]
push eax
mov ecx, eax
call fcn.00442110
push 0x40
push dword [ebp - 0x1c]
call fcn.0067d8e3
add esp, 8
lea ecx, [ebp - 0x64]
call fcn.0042fd70
lea ecx, [ebp - 0x34]
call fcn.0042fd70
mov al, byte [ebp - 0xc1]
jmp 0x65f659
call fcn.00692c65
call fcn.00692c65
int3