Function at 0x61d190
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 0x6dd8ea
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1c0
mov eax, dword [0x7e500c]
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 0x61d237
mov ecx, dword [0x8076bc]
test ecx, ecx
je 0x61d1ef
cmp byte [0x8076b8], 0
jne 0x61d1fa
call fcn.006115c0
mov ecx, dword [0x8076bc]
mov eax, dword [ecx]
push str.DownloadGlobalData::initializeFileDownload_:_not_initialized
push 0x71a27c
push ecx
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x707770]
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.00650ddc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp byte [edi + 0xe0], 1
jne 0x61d4d2
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.004271d0
lea eax, [ebp - 0x11c]
mov dword [ebp - 4], 0
push eax
lea ecx, [edi + 0x508]
call fcn.00438090
push 0
push 0x71a27c
mov ecx, eax
call fcn.004271d0
lea ecx, [ebp - 0x11c]
mov dword [ebp - 4], 0xffffffff
call fcn.00427170
cmp byte [edi + 0xe1], 0
je 0x61d49a
lea esi, [edi + 0x1fc]
push str.Accept_Encoding
mov edx, esi
lea ecx, [ebp - 0x1d0]
call fcn.00431250
add esp, 4
push 1
push 0x71a6a8
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.004272f0
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.004272f0
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 0x73a8dc
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 3
call fcn.004272f0
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 0x61d431
mov ecx, esi
call fcn.00427170
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.00427170
lea ecx, [ebp - 0x134]
call fcn.00427170
lea ecx, [ebp - 0x14c]
call fcn.00427170
lea ecx, [ebp - 0x1d0]
mov dword [ebp - 4], 0xffffffff
call fcn.00427170
mov ecx, dword [0x8076bc]
test ecx, ecx
je 0x61d477
cmp byte [0x8076b8], 0
jne 0x61d482
call fcn.006115c0
mov ecx, dword [0x8076bc]
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 [0x707770]
call esi
add esp, 8
mov ecx, dword [0x8076bc]
test ecx, ecx
je 0x61d4ad
cmp byte [0x8076b8], 0
jne 0x61d4b8
call fcn.006115c0
mov ecx, dword [0x8076bc]
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 [0x707770]
call esi
add esp, 8
jmp 0x61d4df
call fcn.0061e3c0
test al, al
je 0x61d217
cmp byte [edi + 0xec], 1
jne 0x61d525
mov ecx, dword [0x8076bc]
mov byte [edi + 0x1f7], 1
test ecx, ecx
je 0x61d502
cmp byte [0x8076b8], 0
jne 0x61d50d
call fcn.006115c0
mov ecx, dword [0x8076bc]
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 [0x707770]
call esi
add esp, 8
mov esi, dword [edi + 0xf0]
cmp esi, 0x3c
je 0x61d571
test esi, esi
je 0x61d571
mov ecx, dword [0x8076bc]
mov dword [edi + 0x1f8], esi
test ecx, ecx
je 0x61d54d
cmp byte [0x8076b8], 0
jne 0x61d558
call fcn.006115c0
mov ecx, dword [0x8076bc]
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 [0x707770]
call esi
add esp, 0xc
mov ecx, edi
call fcn.00620140
test al, al
je 0x61d217
lea ecx, [edi + 0xf8]
lea eax, [edi + 0x110]
mov dword [ebp - 0xdc], ecx
mov edx, ecx
lea ecx, [ebp - 0x34]
push eax
call fcn.0043a640
add esp, 4
push str..aamd
lea edx, [ebp - 0x34]
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x64]
call fcn.00431250
add esp, 4
mov byte [ebp - 4], 5
cmp byte [edi + 0x1f0], 0
mov byte [edi + 0x2d9], 0
je 0x61d628
cmp byte [edi + 0x1f5], 0
jne 0x61d628
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 0x61d6d5
mov ecx, dword [0x8076bc]
test ecx, ecx
je 0x61d604
cmp byte [0x8076b8], 0
jne 0x61d60f
call fcn.006115c0
mov ecx, dword [0x8076bc]
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 [0x707770]
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.00650ded
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 0x61da11
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [edi + 0x374]
call fcn.0061a720
test al, al
jne 0x61d6fb
mov ecx, dword [0x8076bc]
test ecx, ecx
je 0x61d697
cmp byte [0x8076b8], al
jne 0x61d6a2
call fcn.006115c0
mov ecx, dword [0x8076bc]
mov eax, dword [ecx]
push str.failed_to_init_aamd_file_in_write_mode.
push 0x71a27c
push ecx
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x707770]
call esi
add esp, 0xc
mov byte [ebp - 0xc1], 0
lea esi, [edi + 0x374]
mov ecx, esi
call fcn.0061aa40
jmp 0x61d701
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 0x61d5f1
mov byte [ebp - 0xc1], 1
jmp 0x61d62f
lea esi, [edi + 0x374]
mov ecx, esi
call fcn.0061a810
test al, al
jne 0x61d758
mov ecx, dword [0x8076bc]
test ecx, ecx
je 0x61d71e
cmp byte [0x8076b8], al
jne 0x61d729
call fcn.006115c0
mov ecx, dword [0x8076bc]
mov eax, dword [ecx]
push str.aamd_file_is_not_valid._And_download_should_begin_from_beginning.
push 0x71a27c
push ecx
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x707770]
call esi
add esp, 0xc
mov byte [ebp - 0xc1], 0
lea ecx, [edi + 0x374]
call fcn.0061aa40
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.00616950
test al, al
jne 0x61d82a
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.00427050
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.00613cb0
lea ecx, [ebp - 0x16c]
call fcn.00427170
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 6
call fcn.00427170
jmp 0x61d961
cmp dword [ebp - 0xe4], 0
xorps xmm0, xmm0
mov esi, dword [ebp - 0xc8]
movlpd qword [ebp - 0xd8], xmm0
jb 0x61d91a
mov edx, dword [ebp - 0xe8]
ja 0x61d858
test edx, edx
je 0x61d91a
mov ecx, dword [ebp - 0xd4]
mov eax, dword [ebp - 0xd8]
cmp byte [eax + esi], 0x3c
je 0x61d887
add eax, 1
adc ecx, 0
cmp ecx, dword [ebp - 0xe4]
jb 0x61d864
ja 0x61d91a
cmp eax, edx
jb 0x61d864
jmp 0x61d91a
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 0x61d8a7
sub ecx, dword [ebp - 0xd4]
push ecx
push edx
lea ecx, [ebp - 0x7c]
call fcn.00427530
lea edx, [ebp - 0x94]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x7c]
call fcn.00605780
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x68]
cmp edx, 0x10
jb 0x61d908
mov ecx, dword [ebp - 0x7c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x61d8fe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x61e305
push edx
push ecx
call fcn.0065106e
add esp, 8
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], 0
push esi
call fcn.0065109f
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.0061ad80
lea ecx, [ebp - 0x94]
mov byte [ebp - 0xc9], al
mov byte [ebp - 4], 6
call fcn.00427170
cmp byte [ebp - 0xc9], 0
jne 0x61d9ae
mov ecx, dword [0x8076bc]
test ecx, ecx
je 0x61d974
cmp byte [0x8076b8], 0
jne 0x61d97f
call fcn.006115c0
mov ecx, dword [0x8076bc]
mov eax, dword [ecx]
push str.Failed_to_get_the_headers_from_the_aamd_file.
push 0x71a27c
push ecx
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x707770]
call esi
add esp, 0xc
mov byte [ebp - 0xc1], 0
lea ecx, [edi + 0x374]
call fcn.0061aa40
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.0061f860
test al, al
jne 0x61da09
mov ecx, dword [0x8076bc]
test ecx, ecx
je 0x61d9cf
cmp byte [0x8076b8], al
jne 0x61d9da
call fcn.006115c0
mov ecx, dword [0x8076bc]
mov eax, dword [ecx]
push str.Headers_are_invalid_in_AAMD_file._The_download_would_resume_from_start_now.
push 0x71a27c
push ecx
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x707770]
call esi
add esp, 0xc
mov byte [ebp - 0xc1], 0
lea ecx, [edi + 0x374]
call fcn.0061aa40
mov al, byte [ebp - 0xc1]
test al, al
sete al
cmp byte [ebp - 0xc1], 0
mov byte [edi + 0x1f6], al
jne 0x61e116
cmp dword [edi + 0x10c], 8
lea esi, [edi + 0xf8]
mov ecx, esi
jb 0x61da3a
mov ecx, dword [esi]
call fcn.00615620
test al, al
jne 0x61dad7
cmp dword [edi + 0x108], 0
je 0x61dad7
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x61da5e
mov eax, dword [esi]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x61dad0
cmp eax, 0xb7
je 0x61dad0
cmp eax, 0x50
je 0x61dad0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
lea ecx, [edi + 0x340]
push ecx
push eax
call fcn.0061b850
mov eax, dword [0x8076bc]
test eax, eax
je 0x61da9f
cmp byte [0x8076b8], 0
jne 0x61daa9
call fcn.006115c0
mov eax, dword [0x8076bc]
cmp dword [esi + 0x14], 8
jb 0x61dab7
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 0x71a27c
push eax
jmp 0x61dc9b
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 0x61dcc2
mov ecx, dword [0x8076bc]
test ecx, ecx
je 0x61db03
cmp byte [0x8076b8], al
jne 0x61db0e
call fcn.006115c0
mov ecx, dword [0x8076bc]
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 [0x707770]
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 0x61dcb7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0xec], eax
mov eax, dword [0x8076bc]
mov dword [ebp - 0xdc], eax
test eax, eax
je 0x61db9e
cmp byte [0x8076b8], 0
jne 0x61dbae
call fcn.006115c0
mov eax, dword [0x8076bc]
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 0x71a27c
push dword [ebp - 0xdc]
call dword [0x707770]
call esi
mov ecx, dword [0x8076bc]
add esp, 0x14
test ecx, ecx
je 0x61dbf0
cmp byte [0x8076b8], 0
jne 0x61dbfb
call fcn.006115c0
mov ecx, dword [0x8076bc]
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 0x71a27c
push ecx
mov ecx, esi
mov dword [ebp - 0xc8], edx
call dword [0x707770]
call esi
mov eax, dword [ebp - 0xd4]
add esp, 0x14
add eax, 0x1f4
mov dword [ebp - 0xd4], eax
cmp eax, 0x5dc
jl 0x61db40
lea eax, [ebp - 0x34]
push eax
lea eax, [edi + 0x340]
push eax
push dword [ebp - 0xec]
call fcn.0061b850
mov ecx, dword [0x8076bc]
test ecx, ecx
je 0x61dc77
cmp byte [0x8076b8], 0
jne 0x61dc82
call fcn.006115c0
mov ecx, dword [0x8076bc]
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 0x71a27c
push ecx
mov esi, dword [esi + 0x24]
mov ecx, esi
call dword [0x707770]
call esi
add esp, 0x10
mov byte [ebp - 0xc1], 0
jmp 0x61e2cc
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
jmp 0x61dcc4
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.006153d0
add esp, 0xc
test al, al
jne 0x61dd9e
push esi
call dword [sym.imp.KERNEL32.DLL_Sleep]
add esi, 0x1f4
cmp esi, 0x9c4
jl 0x61dcd0
lea eax, [ebp - 0x34]
push eax
lea eax, [edi + 0x340]
push eax
push dword [ebp - 0xec]
call fcn.0061b850
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0xec]
cmovae ecx, dword [ebp - 0x34]
call fcn.00615560
mov ecx, dword [0x8076bc]
test ecx, ecx
je 0x61dd52
cmp byte [0x8076b8], 0
jne 0x61dd5d
call fcn.006115c0
mov ecx, dword [0x8076bc]
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 0x71a27c
mov esi, dword [esi + 0x24]
push ecx
mov ecx, esi
call dword [0x707770]
call esi
add esp, 0x18
mov byte [ebp - 0xc1], 0
jmp 0x61e2cc
cmp byte [edi + 0x1f5], 0
jne 0x61e116
cmp byte [edi + 0x1f0], 0
je 0x61e116
lea esi, [edi + 0x374]
mov ecx, esi
call fcn.0061aa40
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 0x61dea1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov eax, dword [0x8076bc]
mov dword [ebp - 0xd4], eax
test eax, eax
je 0x61de16
cmp byte [0x8076b8], 0
jne 0x61de26
call fcn.006115c0
mov eax, dword [0x8076bc]
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 0x71a27c
push dword [ebp - 0xd4]
call dword [0x707770]
call esi
mov ecx, dword [0x8076bc]
add esp, 0x14
test ecx, ecx
je 0x61de68
cmp byte [0x8076b8], 0
jne 0x61de73
call fcn.006115c0
mov ecx, dword [0x8076bc]
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 0x71a27c
push ecx
mov ecx, esi
call dword [0x707770]
call esi
add esp, 0x10
jmp 0x61e116
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.0061a720
test al, al
jne 0x61dede
mov ecx, dword [0x8076bc]
test ecx, ecx
je 0x61dec9
cmp byte [0x8076b8], al
jne 0x61ded4
call fcn.006115c0
mov ecx, dword [0x8076bc]
push str.failed_to_init_aamd_file_in_write_mode.
jmp 0x61e0fe
cmp byte [esi], 0
jne 0x61df23
mov ecx, dword [0x8076bc]
test ecx, ecx
je 0x61def6
cmp byte [0x8076b8], 0
jne 0x61df01
call fcn.006115c0
mov ecx, dword [0x8076bc]
mov eax, dword [ecx]
push str.writeAAMDMetaInfoString:_unintialized._Invalid_params
push 0x71a27c
push ecx
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x707770]
call esi
add esp, 0xc
jmp 0x61e067
push 0x1c
call fcn.00651294
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.00427530
push 3
push 0x7992e4
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 9
call fcn.004389e0
cmp dword [ebp - 0x38], 0x10
lea eax, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x4c]
push eax
push 0x741aec
push 0x1c
push dword [ebp - 0xc8]
call fcn.0043a770
add esp, 0x10
mov byte [ebp - 0xc1], 1
lea ecx, [esi + 4]
push eax
push dword [ebp - 0xc8]
push 0
push 0
call fcn.00616570
test al, al
jne 0x61e006
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.00427050
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.00613cb0
lea ecx, [ebp - 0x198]
call fcn.00427170
mov byte [ebp - 0xc1], 0
push dword [ebp - 0xc8]
call fcn.0065109f
mov byte [ebp - 4], 6
add esp, 4
mov edx, dword [ebp - 0x38]
cmp edx, 0x10
jb 0x61e04c
mov ecx, dword [ebp - 0x4c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x61e042
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x61e30a
push edx
push ecx
call fcn.0065106e
add esp, 8
cmp byte [ebp - 0xc1], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
jne 0x61e0a2
mov ecx, dword [0x8076bc]
test ecx, ecx
je 0x61e07a
cmp byte [0x8076b8], 0
jne 0x61e085
call fcn.006115c0
mov ecx, dword [0x8076bc]
mov eax, dword [ecx]
push str.Failed_to_write_the_meta_information_in_the_aamd_file
push 0x71a27c
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x707770]
call esi
add esp, 0xc
push 0
push dword [edi + 0xc8]
push dword [edi + 0x4fc]
push dword [edi + 0x4f8]
call fcn.006a9d50
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x1c]
push eax
call fcn.0061fde0
push esi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [edi + 0x374]
call fcn.0061ab00
test al, al
jne 0x61e116
mov ecx, dword [0x8076bc]
test ecx, ecx
je 0x61e0ee
cmp byte [0x8076b8], al
jne 0x61e0f9
call fcn.006115c0
mov ecx, dword [0x8076bc]
push str.Failed_to_write_the_aamd_headers_in_the_file
mov eax, dword [ecx]
push 0x71a27c
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x707770]
call esi
add esp, 0xc
sub esp, 0x18
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.00427050
push ecx
lea ecx, [edi + 0x228]
call fcn.00616440
test al, al
jne 0x61e24d
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.00427050
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.0061b3f0
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 0x61e1d7
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x61e1ce
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.004271d0
mov eax, dword [edi + 0x310]
mov ecx, dword [0x8076bc]
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 0x61e20e
cmp byte [0x8076b8], 0
jne 0x61e219
call fcn.006115c0
mov ecx, dword [0x8076bc]
mov eax, dword [ecx]
push str.failed_to_init_the_file_handle_for_the_output_file
push 0x71a27c
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x707770]
call esi
add esp, 0xc
lea ecx, [ebp - 0xb4]
call fcn.00427170
mov byte [ebp - 0xc1], 0
jmp 0x61e2cc
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 0x61e2b6
nop dword [eax]
push dword [esi + 8]
mov ecx, edi
push edi
call fcn.00519890
mov eax, esi
mov esi, dword [esi]
push 0x18
push eax
call fcn.0065106e
add esp, 8
cmp byte [esi + 0xd], 0
je 0x61e290
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.004393c0
push 0x40
push dword [ebp - 0x1c]
call fcn.0065106e
add esp, 8
lea ecx, [ebp - 0x64]
call fcn.00427170
lea ecx, [ebp - 0x34]
call fcn.00427170
mov al, byte [ebp - 0xc1]
jmp 0x61d219
call fcn.0066bea5
call fcn.0066bea5
int3