Function at 0x65da30
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 0x70915a
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1c0
mov eax, dword [0x82d084]
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 0x65dad7
mov ecx, dword [0x853a98]
test ecx, ecx
je 0x65da8f
cmp byte [0x853a6a], 0
jne 0x65da9a
call fcn.00651e50
mov ecx, dword [0x853a98]
mov eax, dword [ecx]
push str.DownloadGlobalData::initializeFileDownload_:_not_initialized
push 0x75b10c
push ecx
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x747368]
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.0067ba01
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp byte [edi + 0xe0], 1
jne 0x65dd72
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.00440a30
push 0
push 0x75b10c
mov ecx, eax
call fcn.0042fe00
lea ecx, [ebp - 0x11c]
mov dword [ebp - 4], 0xffffffff
call fcn.0042fd70
cmp byte [edi + 0xe1], 0
je 0x65dd3a
lea esi, [edi + 0x1fc]
push str.Accept_Encoding
mov edx, esi
lea ecx, [ebp - 0x1d0]
call fcn.00439dd0
add esp, 4
push 1
push 0x760b54
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 0x77f748
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 0x65dcd1
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 [0x853a98]
test ecx, ecx
je 0x65dd17
cmp byte [0x853a6a], 0
jne 0x65dd22
call fcn.00651e50
mov ecx, dword [0x853a98]
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 [0x747368]
call esi
add esp, 8
mov ecx, dword [0x853a98]
test ecx, ecx
je 0x65dd4d
cmp byte [0x853a6a], 0
jne 0x65dd58
call fcn.00651e50
mov ecx, dword [0x853a98]
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 [0x747368]
call esi
add esp, 8
jmp 0x65dd7f
call fcn.0065ec60
test al, al
je 0x65dab7
cmp byte [edi + 0xec], 1
jne 0x65ddc5
mov ecx, dword [0x853a98]
mov byte [edi + 0x1f7], 1
test ecx, ecx
je 0x65dda2
cmp byte [0x853a6a], 0
jne 0x65ddad
call fcn.00651e50
mov ecx, dword [0x853a98]
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 [0x747368]
call esi
add esp, 8
mov esi, dword [edi + 0xf0]
cmp esi, 0x3c
je 0x65de11
test esi, esi
je 0x65de11
mov ecx, dword [0x853a98]
mov dword [edi + 0x1f8], esi
test ecx, ecx
je 0x65dded
cmp byte [0x853a6a], 0
jne 0x65ddf8
call fcn.00651e50
mov ecx, dword [0x853a98]
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 [0x747368]
call esi
add esp, 0xc
mov ecx, edi
call fcn.006609d0
test al, al
je 0x65dab7
lea ecx, [edi + 0xf8]
lea eax, [edi + 0x110]
mov dword [ebp - 0xdc], ecx
mov edx, ecx
lea ecx, [ebp - 0x34]
push eax
call fcn.00443380
add esp, 4
push str..aamd
lea edx, [ebp - 0x34]
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x64]
call fcn.00439dd0
add esp, 4
mov byte [ebp - 4], 5
cmp byte [edi + 0x1f0], 0
mov byte [edi + 0x2d9], 0
je 0x65dec8
cmp byte [edi + 0x1f5], 0
jne 0x65dec8
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 0x65df75
mov ecx, dword [0x853a98]
test ecx, ecx
je 0x65dea4
cmp byte [0x853a6a], 0
jne 0x65deaf
call fcn.00651e50
mov ecx, dword [0x853a98]
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 [0x747368]
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.0067ba12
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 0x65e2b1
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [edi + 0x374]
call fcn.0065afb0
test al, al
jne 0x65df9b
mov ecx, dword [0x853a98]
test ecx, ecx
je 0x65df37
cmp byte [0x853a6a], al
jne 0x65df42
call fcn.00651e50
mov ecx, dword [0x853a98]
mov eax, dword [ecx]
push str.failed_to_init_aamd_file_in_write_mode.
push 0x75b10c
push ecx
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x747368]
call esi
add esp, 0xc
mov byte [ebp - 0xc1], 0
lea esi, [edi + 0x374]
mov ecx, esi
call fcn.0065b2d0
jmp 0x65dfa1
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 0x65de91
mov byte [ebp - 0xc1], 1
jmp 0x65decf
lea esi, [edi + 0x374]
mov ecx, esi
call fcn.0065b0a0
test al, al
jne 0x65dff8
mov ecx, dword [0x853a98]
test ecx, ecx
je 0x65dfbe
cmp byte [0x853a6a], al
jne 0x65dfc9
call fcn.00651e50
mov ecx, dword [0x853a98]
mov eax, dword [ecx]
push str.aamd_file_is_not_valid._And_download_should_begin_from_beginning.
push 0x75b10c
push ecx
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x747368]
call esi
add esp, 0xc
mov byte [ebp - 0xc1], 0
lea ecx, [edi + 0x374]
call fcn.0065b2d0
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.006571e0
test al, al
jne 0x65e0ca
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.00654540
lea ecx, [ebp - 0x16c]
call fcn.0042fd70
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 6
call fcn.0042fd70
jmp 0x65e201
cmp dword [ebp - 0xe4], 0
xorps xmm0, xmm0
mov esi, dword [ebp - 0xc8]
movlpd qword [ebp - 0xd8], xmm0
jb 0x65e1ba
mov edx, dword [ebp - 0xe8]
ja 0x65e0f8
test edx, edx
je 0x65e1ba
mov ecx, dword [ebp - 0xd4]
mov eax, dword [ebp - 0xd8]
cmp byte [eax + esi], 0x3c
je 0x65e127
add eax, 1
adc ecx, 0
cmp ecx, dword [ebp - 0xe4]
jb 0x65e104
ja 0x65e1ba
cmp eax, edx
jb 0x65e104
jmp 0x65e1ba
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 0x65e147
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.006454e0
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x68]
cmp edx, 0x10
jb 0x65e1a8
mov ecx, dword [ebp - 0x7c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x65e19e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x65eba5
push edx
push ecx
call fcn.0067bc93
add esp, 8
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], 0
push esi
call fcn.0067bcc4
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.0065b610
lea ecx, [ebp - 0x94]
mov byte [ebp - 0xc9], al
mov byte [ebp - 4], 6
call fcn.0042fd70
cmp byte [ebp - 0xc9], 0
jne 0x65e24e
mov ecx, dword [0x853a98]
test ecx, ecx
je 0x65e214
cmp byte [0x853a6a], 0
jne 0x65e21f
call fcn.00651e50
mov ecx, dword [0x853a98]
mov eax, dword [ecx]
push str.Failed_to_get_the_headers_from_the_aamd_file.
push 0x75b10c
push ecx
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x747368]
call esi
add esp, 0xc
mov byte [ebp - 0xc1], 0
lea ecx, [edi + 0x374]
call fcn.0065b2d0
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.006600f0
test al, al
jne 0x65e2a9
mov ecx, dword [0x853a98]
test ecx, ecx
je 0x65e26f
cmp byte [0x853a6a], al
jne 0x65e27a
call fcn.00651e50
mov ecx, dword [0x853a98]
mov eax, dword [ecx]
push str.Headers_are_invalid_in_AAMD_file._The_download_would_resume_from_start_now.
push 0x75b10c
push ecx
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x747368]
call esi
add esp, 0xc
mov byte [ebp - 0xc1], 0
lea ecx, [edi + 0x374]
call fcn.0065b2d0
mov al, byte [ebp - 0xc1]
test al, al
sete al
cmp byte [ebp - 0xc1], 0
mov byte [edi + 0x1f6], al
jne 0x65e9b6
cmp dword [edi + 0x10c], 8
lea esi, [edi + 0xf8]
mov ecx, esi
jb 0x65e2da
mov ecx, dword [esi]
call fcn.00655eb0
test al, al
jne 0x65e377
cmp dword [edi + 0x108], 0
je 0x65e377
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x65e2fe
mov eax, dword [esi]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x65e370
cmp eax, 0xb7
je 0x65e370
cmp eax, 0x50
je 0x65e370
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
lea ecx, [edi + 0x340]
push ecx
push eax
call fcn.0065c0e0
mov eax, dword [0x853a98]
test eax, eax
je 0x65e33f
cmp byte [0x853a6a], 0
jne 0x65e349
call fcn.00651e50
mov eax, dword [0x853a98]
cmp dword [esi + 0x14], 8
jb 0x65e357
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 0x75b10c
push eax
jmp 0x65e53b
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 0x65e562
mov ecx, dword [0x853a98]
test ecx, ecx
je 0x65e3a3
cmp byte [0x853a6a], al
jne 0x65e3ae
call fcn.00651e50
mov ecx, dword [0x853a98]
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 [0x747368]
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 0x65e557
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0xec], eax
mov eax, dword [0x853a98]
mov dword [ebp - 0xdc], eax
test eax, eax
je 0x65e43e
cmp byte [0x853a6a], 0
jne 0x65e44e
call fcn.00651e50
mov eax, dword [0x853a98]
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 0x75b10c
push dword [ebp - 0xdc]
call dword [0x747368]
call esi
mov ecx, dword [0x853a98]
add esp, 0x14
test ecx, ecx
je 0x65e490
cmp byte [0x853a6a], 0
jne 0x65e49b
call fcn.00651e50
mov ecx, dword [0x853a98]
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 0x75b10c
push ecx
mov ecx, esi
mov dword [ebp - 0xc8], edx
call dword [0x747368]
call esi
mov eax, dword [ebp - 0xd4]
add esp, 0x14
add eax, 0x1f4
mov dword [ebp - 0xd4], eax
cmp eax, 0x5dc
jl 0x65e3e0
lea eax, [ebp - 0x34]
push eax
lea eax, [edi + 0x340]
push eax
push dword [ebp - 0xec]
call fcn.0065c0e0
mov ecx, dword [0x853a98]
test ecx, ecx
je 0x65e517
cmp byte [0x853a6a], 0
jne 0x65e522
call fcn.00651e50
mov ecx, dword [0x853a98]
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 0x75b10c
push ecx
mov esi, dword [esi + 0x24]
mov ecx, esi
call dword [0x747368]
call esi
add esp, 0x10
mov byte [ebp - 0xc1], 0
jmp 0x65eb6c
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
jmp 0x65e564
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.00655c60
add esp, 0xc
test al, al
jne 0x65e63e
push esi
call dword [sym.imp.KERNEL32.DLL_Sleep]
add esi, 0x1f4
cmp esi, 0x9c4
jl 0x65e570
lea eax, [ebp - 0x34]
push eax
lea eax, [edi + 0x340]
push eax
push dword [ebp - 0xec]
call fcn.0065c0e0
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0xec]
cmovae ecx, dword [ebp - 0x34]
call fcn.00655df0
mov ecx, dword [0x853a98]
test ecx, ecx
je 0x65e5f2
cmp byte [0x853a6a], 0
jne 0x65e5fd
call fcn.00651e50
mov ecx, dword [0x853a98]
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 0x75b10c
mov esi, dword [esi + 0x24]
push ecx
mov ecx, esi
call dword [0x747368]
call esi
add esp, 0x18
mov byte [ebp - 0xc1], 0
jmp 0x65eb6c
cmp byte [edi + 0x1f5], 0
jne 0x65e9b6
cmp byte [edi + 0x1f0], 0
je 0x65e9b6
lea esi, [edi + 0x374]
mov ecx, esi
call fcn.0065b2d0
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 0x65e741
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov eax, dword [0x853a98]
mov dword [ebp - 0xd4], eax
test eax, eax
je 0x65e6b6
cmp byte [0x853a6a], 0
jne 0x65e6c6
call fcn.00651e50
mov eax, dword [0x853a98]
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 0x75b10c
push dword [ebp - 0xd4]
call dword [0x747368]
call esi
mov ecx, dword [0x853a98]
add esp, 0x14
test ecx, ecx
je 0x65e708
cmp byte [0x853a6a], 0
jne 0x65e713
call fcn.00651e50
mov ecx, dword [0x853a98]
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 0x75b10c
push ecx
mov ecx, esi
call dword [0x747368]
call esi
add esp, 0x10
jmp 0x65e9b6
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.0065afb0
test al, al
jne 0x65e77e
mov ecx, dword [0x853a98]
test ecx, ecx
je 0x65e769
cmp byte [0x853a6a], al
jne 0x65e774
call fcn.00651e50
mov ecx, dword [0x853a98]
push str.failed_to_init_aamd_file_in_write_mode.
jmp 0x65e99e
cmp byte [esi], 0
jne 0x65e7c3
mov ecx, dword [0x853a98]
test ecx, ecx
je 0x65e796
cmp byte [0x853a6a], 0
jne 0x65e7a1
call fcn.00651e50
mov ecx, dword [0x853a98]
mov eax, dword [ecx]
push str.writeAAMDMetaInfoString:_unintialized._Invalid_params
push 0x75b10c
push ecx
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x747368]
call esi
add esp, 0xc
jmp 0x65e907
push 0x1c
call fcn.0067beb9
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 0x7dfb0c
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 9
call fcn.00441450
cmp dword [ebp - 0x38], 0x10
lea eax, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x4c]
push eax
push 0x7883b8
push 0x1c
push dword [ebp - 0xc8]
call fcn.004434b0
add esp, 0x10
mov byte [ebp - 0xc1], 1
lea ecx, [esi + 4]
push eax
push dword [ebp - 0xc8]
push 0
push 0
call fcn.00656e00
test al, al
jne 0x65e8a6
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.00654540
lea ecx, [ebp - 0x198]
call fcn.0042fd70
mov byte [ebp - 0xc1], 0
push dword [ebp - 0xc8]
call fcn.0067bcc4
mov byte [ebp - 4], 6
add esp, 4
mov edx, dword [ebp - 0x38]
cmp edx, 0x10
jb 0x65e8ec
mov ecx, dword [ebp - 0x4c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x65e8e2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x65ebaa
push edx
push ecx
call fcn.0067bc93
add esp, 8
cmp byte [ebp - 0xc1], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
jne 0x65e942
mov ecx, dword [0x853a98]
test ecx, ecx
je 0x65e91a
cmp byte [0x853a6a], 0
jne 0x65e925
call fcn.00651e50
mov ecx, dword [0x853a98]
mov eax, dword [ecx]
push str.Failed_to_write_the_meta_information_in_the_aamd_file
push 0x75b10c
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x747368]
call esi
add esp, 0xc
push 0
push dword [edi + 0xc8]
push dword [edi + 0x4fc]
push dword [edi + 0x4f8]
call fcn.006d0450
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x1c]
push eax
call fcn.00660670
push esi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [edi + 0x374]
call fcn.0065b390
test al, al
jne 0x65e9b6
mov ecx, dword [0x853a98]
test ecx, ecx
je 0x65e98e
cmp byte [0x853a6a], al
jne 0x65e999
call fcn.00651e50
mov ecx, dword [0x853a98]
push str.Failed_to_write_the_aamd_headers_in_the_file
mov eax, dword [ecx]
push 0x75b10c
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x747368]
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.00656cd0
test al, al
jne 0x65eaed
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.0065bc80
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 0x65ea77
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x65ea6e
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.0042fe00
mov eax, dword [edi + 0x310]
mov ecx, dword [0x853a98]
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 0x65eaae
cmp byte [0x853a6a], 0
jne 0x65eab9
call fcn.00651e50
mov ecx, dword [0x853a98]
mov eax, dword [ecx]
push str.failed_to_init_the_file_handle_for_the_output_file
push 0x75b10c
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x747368]
call esi
add esp, 0xc
lea ecx, [ebp - 0xb4]
call fcn.0042fd70
mov byte [ebp - 0xc1], 0
jmp 0x65eb6c
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 0x65eb56
nop dword [eax]
push dword [esi + 8]
mov ecx, edi
push edi
call fcn.00455670
mov eax, esi
mov esi, dword [esi]
push 0x18
push eax
call fcn.0067bc93
add esp, 8
cmp byte [esi + 0xd], 0
je 0x65eb30
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.00441e30
push 0x40
push dword [ebp - 0x1c]
call fcn.0067bc93
add esp, 8
lea ecx, [ebp - 0x64]
call fcn.0042fd70
lea ecx, [ebp - 0x34]
call fcn.0042fd70
mov al, byte [ebp - 0xc1]
jmp 0x65dab9
call fcn.00691015
call fcn.00691015
int3