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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ddbb6
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x7e500c]
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.00427050
mov dword [ebp - 4], 0
mov ecx, pe_nt_image_headers32
cmp dword [esi + 0x33c], 5
mov eax, 0x128
cmovne eax, ecx
add eax, esi
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x6204c9
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x70]
call fcn.004272f0
push ebx
lea ecx, [ebp - 0x58]
call fcn.00427050
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 0x6204f9
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x58]
push eax
call fcn.004272f0
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 0x6208c2
mov ecx, dword [0x8076bc]
test ecx, ecx
je 0x620531
cmp byte [0x8076b8], al
jne 0x62053c
call fcn.006115c0
mov ecx, dword [0x8076bc]
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 [0x707770]
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.00663090
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.004e22f0
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.00620d20
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 0x62061d
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x150]
call fcn.00427530
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x150]
call fcn.005d60e0
mov byte [ebp - 4], 4
mov bl, al
mov edx, dword [ebp - 0x13c]
cmp edx, 0x10
jb 0x62066f
mov ecx, dword [ebp - 0x150]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x620665
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x620937
push edx
push ecx
call fcn.0065106e
add esp, 8
mov ecx, dword [0x8076bc]
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0xf
mov byte [ebp - 0x150], 0
test bl, bl
je 0x6206c8
test ecx, ecx
je 0x6206a1
cmp byte [0x8076b8], 0
jne 0x6206ac
call fcn.006115c0
mov ecx, dword [0x8076bc]
mov eax, dword [ecx]
push str.successfully_unzipped_the_gzip_response
push ecx
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x707770]
call esi
add esp, 8
mov bl, 1
jmp 0x6206ff
test ecx, ecx
je 0x6206d5
cmp byte [0x8076b8], 0
jne 0x6206e0
call fcn.006115c0
mov ecx, dword [0x8076bc]
mov eax, dword [ecx]
push str.Failed_in_Unzipping_the_gzipped_http_response
push 0x71a27c
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x707770]
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 0x620752
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x620733
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x62093c
push edx
push ecx
call fcn.0065106e
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.00436530
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x70]
lea edx, [ebp - 0x134]
cmovae ecx, dword [ebp - 0x70]
call fcn.00615560
test bl, bl
je 0x62087a
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 0x620806
mov ebx, dword [0x8076bc]
test ebx, ebx
je 0x6207c3
cmp byte [0x8076b8], 0
jne 0x6207ce
call fcn.006115c0
mov ebx, dword [0x8076bc]
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 0x71a27c
push ebx
call dword [0x707770]
call esi
mov bl, byte [ebp - 0x12d]
add esp, 0x14
jmp 0x62087a
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 0x62086e
mov edi, dword [0x8076bc]
test edi, edi
je 0x62083f
cmp byte [0x8076b8], al
jne 0x62084a
call fcn.006115c0
mov edi, dword [0x8076bc]
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 0x71a27c
push edi
call dword [0x707770]
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 0x6208ae
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x6208a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x620941
push edx
push ecx
call fcn.0065106e
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
jmp 0x620907
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.004271d0
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.00615560
xor bl, bl
lea ecx, [ebp - 0x58]
call fcn.00427170
lea ecx, [ebp - 0x70]
call fcn.00427170
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.00650ddc
mov esp, ebp
pop ebp
ret 4
call fcn.0066bea5
call fcn.0066bea5
call fcn.0066bea5
int3