Function at 0x6a5200
Capabilities:
Check http status code
Check if file exists
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x72e132
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x10f4
call fcn.006b59e0
mov eax, dword [0x7e6410]
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 dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x40]
mov edi, dword [ebp + 0x2c]
mov dword [ebp - 0x10d0], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10ec], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x10e8], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x10f8], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x10b0], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x10a8], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x10b8], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x10c8], ecx
mov dword [ebp - 0x10c4], ecx
mov dword [ebp - 0x10c0], eax
mov dword [ebp - 0x10ac], esi
mov dword [ebp - 4], 0
test ebx, ebx
je 0x6a52c7
cmp ebx, 1
je 0x6a52c7
push 0x7d7180
lea eax, [ebp - 0x10f4]
mov dword [ebp - 0x10f4], str.Not_supported_Http_Method_
push eax
call fcn.006b4394
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x6a540a
cmp dword [ebp + 0xc], eax
jne 0x6a530b
push dword [ebp - 0x10c8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x6a540a
push 0x7d7180
lea eax, [ebp - 0x10e4]
mov dword [ebp - 0x10e4], str.LocalFile_Path_Access_Denied_
push eax
call fcn.006b4394
push 0x7d7180
lea eax, [ebp - 0x10f0]
mov dword [ebp - 0x10f0], str.Error____Exists_Local_File_Path_n
push eax
call fcn.006b4394
mov esi, dword [ebp - 0x1100]
push esi
push dword [ebp - 0x10ac]
call fcn.006a85f0
push esi
push str.CHttpManager::DownloadFile
push str.__s_____s_n
call fcn.006a9d70
add esp, 0x14
mov eax, 0x6a5351
ret
push 0x78a158
push dword [ebp - 0x10c8]
lea eax, [ebp - 0x10b4]
mov dword [ebp - 4], 0xffffffff
push eax
mov dword [ebp - 0x10b4], 0
call fcn.006b57b8
xor eax, eax
add esp, 0xc
cmp dword [ebp - 0x10b4], eax
je 0x6a5a7a
push dword [ebp - 0x10c0]
mov dword [ebp - 0x10d8], eax
push dword [ebp + 0x34]
mov dword [ebp - 0x10cc], eax
push dword [ebp - 0x10a8]
mov dword [ebp - 0x10dc], eax
push dword [ebp - 0x10b0]
mov dword [ebp - 0x10e0], eax
push dword [ebp - 0x10f8]
mov dword [ebp - 0x10bc], eax
lea eax, [ebp - 0x10bc]
push dword [ebp - 0x10e8]
push dword [ebp - 0x10ec]
push dword [ebp - 0x10d0]
push ebx
push eax
lea eax, [ebp - 0x10e0]
push eax
lea eax, [ebp - 0x10dc]
push eax
call fcn.006a7750
add esp, 0x30
cmp eax, 1
jne 0x6a5a24
xor eax, eax
mov dword [ebp - 4], 3
mov dword [edi], 0
mov dword [ebp - 0x1018], 7
mov dword [ebp - 0x101c], 0
mov word [ebp - 0x102c], ax
mov ebx, dword [ebp - 0x10bc]
lea eax, [ebp - 0x102c]
push 0x13
push ebx
push eax
mov byte [ebp - 4], 4
call fcn.006a75b0
add esp, 0xc
test eax, eax
jne 0x6a551e
cmp dword [ebp - 0x1018], 8
lea eax, [ebp - 0x102c]
cmovae eax, dword [ebp - 0x102c]
push eax
call fcn.006b3230
add esp, 4
mov dword [edi], eax
test esi, esi
je 0x6a5527
mov eax, dword [edi]
mov dword [esi + 0x10], eax
cmp dword [edi], 0xc8
jne 0x6a595f
push 1
lea eax, [ebp - 0x102c]
mov dword [ebp - 0x10a8], 0
push ebx
push eax
or edi, 0xffffffff
call fcn.006a75b0
add esp, 0xc
test eax, eax
jne 0x6a56cd
mov eax, dword [ebp - 0x10b8]
test eax, eax
je 0x6a55c0
cmp dword [eax], 0
jne 0x6a55c0
mov eax, dword [ebp - 0x101c]
xor ecx, ecx
inc eax
mov edx, 2
mov dword [ebp - 0x10d0], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.006b1920
add esp, 4
mov edi, eax
cmp dword [ebp - 0x1018], 8
lea eax, [ebp - 0x102c]
cmovae eax, dword [ebp - 0x102c]
push eax
push dword [ebp - 0x10d0]
push edi
call fcn.006b76cb
mov eax, dword [ebp - 0x10b8]
add esp, 0xc
mov dword [eax], edi
or edi, 0xffffffff
xor eax, eax
mov dword [ebp - 0x1060], 7
mov dword [ebp - 0x1064], 0
mov word [ebp - 0x1074], ax
mov dword [ebp - 0x1048], 7
mov dword [ebp - 0x104c], eax
mov word [ebp - 0x105c], ax
mov dword [ebp - 0x1030], 7
mov dword [ebp - 0x1034], eax
mov word [ebp - 0x1044], ax
cmp dword [ebp - 0x1018], 8
lea ecx, [ebp - 0x1044]
push ecx
lea ecx, [ebp - 0x105c]
mov byte [ebp - 4], 7
push ecx
lea ecx, [ebp - 0x1074]
lea eax, [ebp - 0x102c]
cmovae eax, dword [ebp - 0x102c]
push ecx
push eax
call fcn.006a6ad0
add esp, 0x10
cmp eax, 1
jne 0x6a56a8
cmp dword [ebp - 0x1048], 8
lea ecx, [ebp - 0x105c]
lea eax, [ebp - 0x1074]
cmovae ecx, dword [ebp - 0x105c]
cmp dword [ebp - 0x1060], 8
push ecx
cmovae eax, dword [ebp - 0x1074]
push eax
call fcn.006a67c0
add esp, 8
mov dword [ebp - 0x10a8], eax
cmp dword [ebp - 0x1034], 0
je 0x6a56a8
cmp dword [ebp - 0x1030], 8
lea eax, [ebp - 0x1044]
push 0xffffffffffffffff
cmovae eax, dword [ebp - 0x1044]
push eax
call fcn.006a5b20
add esp, 8
mov edi, eax
lea ecx, [ebp - 0x1044]
call fcn.004246d0
lea ecx, [ebp - 0x105c]
call fcn.004246d0
lea ecx, [ebp - 0x1074]
mov byte [ebp - 4], 4
call fcn.004246d0
push 5
lea eax, [ebp - 0x102c]
push ebx
push eax
call fcn.006a75b0
or ecx, 0xffffffff
add esp, 0xc
mov dword [ebp - 0x10b8], ecx
or ecx, ecx
mov dword [ebp - 0x10c0], ecx
test eax, eax
jne 0x6a5721
cmp dword [ebp - 0x1018], 8
lea eax, [ebp - 0x102c]
cmovae eax, dword [ebp - 0x102c]
push eax
call fcn.006b3239
mov ecx, edx
mov dword [ebp - 0x10b8], eax
add esp, 4
mov dword [ebp - 0x10c0], ecx
jmp 0x6a5724
or eax, 0xffffffff
test esi, esi
je 0x6a5738
push ecx
push eax
mov ecx, esi
call fcn.006a85c0
mov ecx, esi
call fcn.006a6fe0
push 0xfff
lea eax, [ebp - 0x1013]
mov byte [ebp - 0x1014], 0
xorps xmm0, xmm0
push 0
push eax
movlpd qword [ebp - 0x10d4], xmm0
call fcn.006b47d0
add esp, 0xc
mov dword [ebp - 0x10b0], 0
cmp dword [ebp - 0x10a8], 1
jne 0x6a5873
cmp dword [ebp + 0x3c], 1
jne 0x6a5873
cmp edi, 0xfde9
jne 0x6a5873
push 3
xor edi, edi
call fcn.006b1920
add esp, 4
mov dword [ebp - 0x10a8], eax
lea ecx, [ebp - 0x10b0]
push ecx
push 3
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 1
jne 0x6a5857
lea esp, [esp]
mov eax, dword [ebp - 0x10b0]
test eax, eax
je 0x6a57f5
add edi, eax
cmp edi, 3
je 0x6a57f5
lea eax, [ebp - 0x10b0]
push eax
mov eax, 3
sub eax, edi
push eax
mov eax, dword [ebp - 0x10a8]
add eax, edi
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 1
je 0x6a57c0
test edi, edi
je 0x6a5857
mov ebx, dword [ebp - 0x10a8]
cmp edi, 3
jne 0x6a5831
movzx eax, word [ebx]
mov ecx, 0x76415c
cmp ax, word [ecx]
jne 0x6a581a
movzx eax, byte [ebx + 2]
cmp al, byte [ecx + 2]
je 0x6a5831
push dword [ebp - 0x10b4]
push 3
push 1
push 0x76415c
call fcn.006b5539
add esp, 0x10
push dword [ebp - 0x10b4]
push edi
push 1
push ebx
call fcn.006b5539
add esp, 0x10
mov ebx, eax
xor edi, edi
push dword [ebp - 0x10a8]
call fcn.006b3261
add esp, 4
jmp 0x6a587f
push dword [ebp - 0x10a8]
mov edi, dword [ebp - 0x10d0]
mov ebx, dword [ebp - 0x10d4]
call fcn.006b3261
add esp, 4
jmp 0x6a587f
mov edi, dword [ebp - 0x10d0]
mov ebx, dword [ebp - 0x10d4]
lea eax, [ebp - 0x10b0]
push eax
push 0x1000
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x10bc]
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 1
jne 0x6a5917
mov ecx, dword [ebp - 0x10b0]
test ecx, ecx
je 0x6a5917
test esi, esi
je 0x6a58bd
mov eax, dword [esi + 8]
test eax, eax
je 0x6a58bd
cmp dword [eax], 1
je 0x6a5917
push dword [ebp - 0x10b4]
lea eax, [ebp - 0x1014]
push ecx
push 1
push eax
call fcn.006b5539
add esp, 0x10
add ebx, eax
adc edi, 0
test esi, esi
je 0x6a58f3
push edi
push ebx
mov ecx, esi
call fcn.006a6f80
cmp al, 1
jne 0x6a58f3
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x10b0]
push eax
push 0x1000
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x10bc]
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 1
je 0x6a58a3
test edi, edi
jl 0x6a596a
jg 0x6a5921
test ebx, ebx
je 0x6a596a
mov eax, dword [ebp - 0x10c0]
test eax, eax
jl 0x6a593f
mov ecx, dword [ebp - 0x10b8]
jg 0x6a5937
test ecx, ecx
je 0x6a593f
cmp ecx, ebx
jne 0x6a596a
cmp eax, edi
jne 0x6a596a
lea ecx, [ebp - 0x102c]
mov dword [ebp - 0x10d8], 1
call fcn.004246d0
mov ebx, dword [ebp - 0x10d8]
jmp 0x6a5a26
test esi, esi
je 0x6a596a
mov ecx, esi
call fcn.006a6fe0
lea ecx, [ebp - 0x102c]
call fcn.004246d0
mov ebx, dword [ebp - 0x10d8]
jmp 0x6a5a26
xor ebx, ebx
mov edi, dword [ebp - 0x10c8]
push dword [ebp - 0x10bc]
push dword [ebp - 0x10e0]
push dword [ebp - 0x10dc]
call fcn.006a7720
mov eax, dword [ebp - 0x10b4]
add esp, 0xc
test eax, eax
je 0x6a5a64
push eax
call fcn.006b5369
add esp, 4
test ebx, ebx
jne 0x6a5a64
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x6a5a78
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.006a6f50
mov eax, ebx
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.006b3266
mov esp, ebp
pop ebp
ret