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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70b296
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x82f084]
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 0x662909
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 0x662939
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 0x662d02
mov ecx, dword [0x855ab8]
test ecx, ecx
je 0x662971
cmp byte [0x855a8a], al
jne 0x66297c
call fcn.00653890
mov ecx, dword [0x855ab8]
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 [0x74835c]
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.00690480
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.005014e0
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.00663160
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 0x662a5d
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.00619e60
mov byte [ebp - 4], 4
mov bl, al
mov edx, dword [ebp - 0x13c]
cmp edx, 0x10
jb 0x662aaf
mov ecx, dword [ebp - 0x150]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x662aa5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x662d77
push edx
push ecx
call fcn.0067d913
add esp, 8
mov ecx, dword [0x855ab8]
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0xf
mov byte [ebp - 0x150], 0
test bl, bl
je 0x662b08
test ecx, ecx
je 0x662ae1
cmp byte [0x855a8a], 0
jne 0x662aec
call fcn.00653890
mov ecx, dword [0x855ab8]
mov eax, dword [ecx]
push str.successfully_unzipped_the_gzip_response
push ecx
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x74835c]
call esi
add esp, 8
mov bl, 1
jmp 0x662b3f
test ecx, ecx
je 0x662b15
cmp byte [0x855a8a], 0
jne 0x662b20
call fcn.00653890
mov ecx, dword [0x855ab8]
mov eax, dword [ecx]
push str.Failed_in_Unzipping_the_gzipped_http_response
push 0x75c10c
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x74835c]
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 0x662b92
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x662b73
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x662d7c
push edx
push ecx
call fcn.0067d913
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.0043f640
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x70]
lea edx, [ebp - 0x134]
cmovae ecx, dword [ebp - 0x70]
call fcn.006579a0
test bl, bl
je 0x662cba
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 0x662c46
mov ebx, dword [0x855ab8]
test ebx, ebx
je 0x662c03
cmp byte [0x855a8a], 0
jne 0x662c0e
call fcn.00653890
mov ebx, dword [0x855ab8]
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 0x75c10c
push ebx
call dword [0x74835c]
call esi
mov bl, byte [ebp - 0x12d]
add esp, 0x14
jmp 0x662cba
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 0x662cae
mov edi, dword [0x855ab8]
test edi, edi
je 0x662c7f
cmp byte [0x855a8a], al
jne 0x662c8a
call fcn.00653890
mov edi, dword [0x855ab8]
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 0x75c10c
push edi
call dword [0x74835c]
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 0x662cee
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x662ce4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x662d81
push edx
push ecx
call fcn.0067d913
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
jmp 0x662d47
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.006579a0
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.0067d681
mov esp, ebp
pop ebp
ret 4
call fcn.00692c95
call fcn.00692c95
call fcn.00692c95
int3