Function at 0x660cf0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x709426
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x82d084]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea ebx, [esi + 0xf8]
push ebx
lea ecx, [ebp - 0x70]
call fcn.0042fc50
mov dword [ebp - 4], 0
mov ecx, 0x110
cmp dword [esi + 0x33c], 5
mov eax, 0x128
cmovne eax, ecx
add eax, esi
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x660d59
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x70]
call fcn.0042ff20
push ebx
lea ecx, [ebp - 0x58]
call fcn.0042fc50
mov byte [ebp - 4], 1
lea eax, [esi + 0x128]
cmp dword [edi + 0x10], 0
cmove edi, eax
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x660d89
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x58]
push eax
call fcn.0042ff20
cmp dword [ebp - 0x44], 8
lea edi, [ebp - 0x58]
cmovae edi, dword [ebp - 0x58]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x661152
mov ecx, dword [0x853a98]
test ecx, ecx
je 0x660dc1
cmp byte [0x853a6a], al
jne 0x660dcc
call fcn.00651e50
mov ecx, dword [0x853a98]
mov eax, dword [ecx]
push edi
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 - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
push 0xb8
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.0068e800
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x70]
add esp, 4
push 0x20
push eax
call fcn.004ffca0
mov byte [ebp - 4], 3
xorps xmm0, xmm0
mov eax, dword [ebp - 0x12c]
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov word [ebp - 0x134], 1
mov eax, dword [eax + 4]
push dword [ebp - 0x134]
mov byte [ebp - 0x23], 0
push 0
mov eax, dword [ebp + eax - 0xf4]
test eax, eax
sete byte [ebp - 0x24]
push dword [ebp - 0x24]
push eax
push ecx
lea ecx, [ebp - 0x20]
call fcn.006615b0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0xf
mov byte [ebp - 0x150], 0
cmp ecx, eax
je 0x660ead
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x150]
call fcn.00430160
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x150]
call fcn.00618660
mov byte [ebp - 4], 4
mov bl, al
mov edx, dword [ebp - 0x13c]
cmp edx, 0x10
jb 0x660eff
mov ecx, dword [ebp - 0x150]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x660ef5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6611c7
push edx
push ecx
call fcn.0067bc93
add esp, 8
mov ecx, dword [0x853a98]
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0xf
mov byte [ebp - 0x150], 0
test bl, bl
je 0x660f58
test ecx, ecx
je 0x660f31
cmp byte [0x853a6a], 0
jne 0x660f3c
call fcn.00651e50
mov ecx, dword [0x853a98]
mov eax, dword [ecx]
push str.successfully_unzipped_the_gzip_response
push ecx
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x747368]
call esi
add esp, 8
mov bl, 1
jmp 0x660f8f
test ecx, ecx
je 0x660f65
cmp byte [0x853a6a], 0
jne 0x660f70
call fcn.00651e50
mov ecx, dword [0x853a98]
mov eax, dword [ecx]
push str.Failed_in_Unzipping_the_gzipped_http_response
push 0x75b10c
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x747368]
call esi
add esp, 0xc
xor bl, bl
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 0x12d], bl
test ecx, ecx
je 0x660fe2
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x660fc3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6611cc
push edx
push ecx
call fcn.0067bc93
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 2
call fcn.0043f370
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x70]
lea edx, [ebp - 0x134]
cmovae ecx, dword [ebp - 0x70]
call fcn.00655df0
test bl, bl
je 0x66110a
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push 0
cmovae eax, dword [ebp - 0x58]
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ecx, eax
mov dword [ebp - 0x134], ecx
cmp ecx, 0xffffffff
jne 0x661096
mov ebx, dword [0x853a98]
test ebx, ebx
je 0x661053
cmp byte [0x853a6a], 0
jne 0x66105e
call fcn.00651e50
mov ebx, dword [0x853a98]
cmp dword [ebp - 0x44], 8
lea edi, [ebp - 0x58]
mov esi, dword [ebx]
cmovae edi, dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [esi + 0x24]
mov ecx, esi
push eax
push edi
push str.Failed_to_create_file_at_path_:_s_Error:_d
push 0x75b10c
push ebx
call dword [0x747368]
call esi
mov bl, byte [ebp - 0x12d]
add esp, 0x14
jmp 0x66110a
cmp dword [ebp - 0x2c], 0x10
lea edx, [ebp - 0x24]
push 0
push edx
push dword [ebp - 0x30]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x24], 0
cmovae eax, dword [ebp - 0x40]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x6610fe
mov edi, dword [0x853a98]
test edi, edi
je 0x6610cf
cmp byte [0x853a6a], al
jne 0x6610da
call fcn.00651e50
mov edi, dword [0x853a98]
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [esi + 0x24]
mov ecx, esi
push eax
push str.Failed_to_write_in_file_ERROR_VAL:_d_n
push 0x75b10c
push edi
call dword [0x747368]
call esi
add esp, 0x10
push dword [ebp - 0x134]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x66113e
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x661134
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6611d1
push edx
push ecx
call fcn.0067bc93
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
jmp 0x661197
push 0x50
push str.Failed_to_unzip_the_file_as_there_is_already_another_file_with_that_name_present
lea ecx, [esi + 0x348]
mov dword [esi + 0x340], 0xffffff9c
call fcn.0042fe00
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x70]
lea edx, [ebp - 0x134]
mov dword [esi + 0x368], 0
cmovae ecx, dword [ebp - 0x70]
mov byte [esi + 0x364], 1
call fcn.00655df0
xor bl, bl
lea ecx, [ebp - 0x58]
call fcn.0042fd70
lea ecx, [ebp - 0x70]
call fcn.0042fd70
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0067ba01
mov esp, ebp
pop ebp
ret 4
call fcn.00691015
call fcn.00691015
call fcn.00691015
int3