Function at 0x417d55
Capabilities:
Connect to http server
Download and write a file
Get file size
Parse url
Read data from internet
Receive and write data from server to client
Receive data
Send data
Send http request
Set file attributes
Write file on windows

Disassembly:
push ebp
mov eax, 0x1298
lea ebp, [esp - 0x64]
call fcn.004299a0
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
push dword [esi + 0x3c]
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x60], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4181fb
push edi
push 0x40
lea eax, [ebp - 0x234]
mov dword [ebp + 0x14], eax
pop eax
lea ecx, [ebp - 0x34]
mov dword [ebp + 0x20], ecx
push 0x20
lea ecx, [ebp - 0xb4]
mov dword [ebp + 0x2c], ecx
pop ecx
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x24], eax
mov dword [ebp + 0x48], eax
lea eax, [ebp + 0x10]
push eax
mov dword [ebp + 0x30], ecx
mov dword [ebp + 0x38], ecx
push 0x90000000
lea ecx, [ebp - 0x1b4]
push ebx
push dword [ebp + 0x70]
mov dword [ebp + 0x3c], ecx
lea edx, [ebp - 0x94]
lea ecx, [ebp - 0x1f4]
mov edi, 0x80
mov dword [ebp + 0x10], 0x3c
mov dword [ebp + 0x34], edx
mov dword [ebp + 0x40], edi
mov dword [ebp + 0x44], ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x417e14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x38
push str.ProjectAutoFetch2AutoFetchClient.cpp
push str._s___d__InternetCrackUrl_failed_with__d_n
call fcn.004101cb
add esp, 0x10
jmp 0x4181fa
cmp dword [ebp + 0x1c], 3
jne 0x417e4f
cmp dword [esi + 0x40], ebx
je 0x417eb6
cmp dword [esi + 0x4c], 3
jne 0x417ead
mov eax, dword [esi + 0x44]
lea ecx, [ebp - 0x34]
push ecx
push eax
call fcn.004295e9
test eax, eax
pop ecx
pop ecx
jne 0x417ead
movzx eax, word [ebp + 0x28]
cmp eax, dword [esi + 0x48]
jne 0x417ead
mov eax, dword [esi + 0x40]
mov dword [ebp + 0x58], eax
push ebx
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4181c9
push edi
push dword [ebp + 0x74]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp byte [ebp + 0x78], bl
je 0x417f1b
cmp dword [ebp + 0x1c], 3
jne 0x417f1b
push ebx
push edi
push 4
push ebx
push ebx
push 0x40000000
push dword [ebp + 0x74]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp + 0x54], edi
jne 0x417f03
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0x74]
push 0x68
jmp 0x417f43
push dword [esi + 0x40]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
cmp dword [ebp + 0x1c], 1
push ebx
setne al
push ebx
lea eax, [eax + eax + 1]
push eax
push ebx
push ebx
push dword [ebp + 0x28]
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x6c]
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [ebp + 0x58], eax
jne 0x417e4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x58
push str.ProjectAutoFetch2AutoFetchClient.cpp
push str._s___d__InternetConnect_failed_with__d_n
call fcn.004101cb
add esp, 0x10
jmp 0x4181c9
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 2
push ebx
push ebx
push edi
mov dword [ebp + 0x74], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x417f5d
push ebx
push edi
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0x74]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0x54], eax
jne 0x417f5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0x74]
push 0x75
push str.ProjectAutoFetch2AutoFetchClient.cpp
push str._s___d__CreateFile__s__failed_with__d_n
call fcn.004101cb
add esp, 0x14
jmp 0x4181c9
mov dword [ebp + 0x74], ebx
cmp dword [ebp + 0x1c], 1
jne 0x417fcf
push 0x417d1f
push dword [ebp + 0x6c]
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
push esi
push 0xa8400002
push ebx
push ebx
push dword [ebp + 0x70]
push dword [ebp + 0x6c]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp eax, ebx
mov dword [ebp + 0x60], eax
jne 0x417fb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0x70]
push 0x98
push str.ProjectAutoFetch2AutoFetchClient.cpp
push str._s___d__InternetOpenUrl__s__failed_with__d_n
call fcn.004101cb
add esp, 0x14
jmp 0x4181c0
push ebx
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4181c0
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x418187
cmp dword [ebp + 0x1c], 3
jne 0x417fc4
push ebx
push 0x84400000
push ebx
push ebx
push str.HTTP_1.0
lea eax, [ebp - 0x1b4]
push eax
push 0x45895c
push dword [ebp + 0x58]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, ebx
mov dword [ebp + 0x60], eax
jne 0x41801d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1b4]
push eax
push 0xac
push str.ProjectAutoFetch2AutoFetchClient.cpp
push str._s___d__HttpOpenRequest__s__failed_with__d_n
jmp 0x417fa5
mov eax, dword [esi + 0xc]
push dword [eax - 0xc]
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push eax
push 0x2b
push dword [ebp + 0x60]
call edi
mov eax, dword [esi + 0x10]
push dword [eax - 0xc]
push eax
push 0x2c
push dword [ebp + 0x60]
call edi
cmp byte [ebp + 0x78], bl
mov edi, dword [ebp + 0x74]
je 0x41811f
cmp edi, ebx
jle 0x41811f
push edi
lea eax, [ebp - 0x134]
push str.range:bytes_d_
push eax
call fcn.0042744e
add esp, 0xc
push ebx
lea eax, [ebp - 0x134]
push ebx
push eax
call fcn.00426760
pop ecx
push eax
lea eax, [ebp - 0x134]
push eax
push dword [ebp + 0x60]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x4180ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x134]
push eax
push 0xbd
push str.ProjectAutoFetch2AutoFetchClient.cpp
push str._s___d__HttpSendRequest_header_s__failed_with__d_n
jmp 0x417fa5
mov dword [ebp + 0x5c], edi
push ebx
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4181c0
push ebx
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp - 0x74]
push eax
push 5
push dword [ebp + 0x60]
mov dword [ebp + 0x4c], 0x40
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x417fc4
lea eax, [ebp - 0x74]
push eax
call fcn.00427376
add eax, edi
cmp eax, dword [ebp + 0x7c]
pop ecx
je 0x417fc4
push dword [ebp + 0x7c]
lea eax, [ebp - 0x74]
push eax
call fcn.00427376
pop ecx
add eax, edi
push eax
push 0xd5
push str.ProjectAutoFetch2AutoFetchClient.cpp
push str._s___d__HttpQueryInfo__file_size_differ____d_:__d_n
jmp 0x417fa5
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0x60]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x4180b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xc7
push str.ProjectAutoFetch2AutoFetchClient.cpp
push str._s___d__HttpSendRequest_0__failed_with__d_n
jmp 0x4181b8
mov eax, dword [ebp + 0x50]
cmp eax, ebx
je 0x4181c0
add dword [ebp + 0x5c], eax
push ebx
lea ecx, [ebp + 0xc]
push ecx
push eax
lea eax, [ebp - 0x1234]
push eax
push dword [ebp + 0x54]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4181a2
push ebx
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4181c0
push dword [ebp + 0x5c]
push dword [ebp + 0x7c]
push 0x13
call fcn.00417cfb
lea eax, [ebp + 0x50]
push eax
push 0x1000
lea eax, [ebp - 0x1234]
push eax
push dword [ebp + 0x60]
call edi
test eax, eax
jne 0x418148
jmp 0x4181c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xe5
push str.ProjectAutoFetch2AutoFetchClient.cpp
push str._s___d__WriteFile_failed_with__d_n
call fcn.004101cb
add esp, 0x10
push dword [ebp + 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x58]
cmp eax, ebx
je 0x4181ec
mov dword [esi + 0x40], eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [esi + 0x44]
call fcn.00403da3
movzx eax, word [ebp + 0x28]
mov dword [esi + 0x48], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x4c], eax
cmp dword [ebp + 0x60], ebx
je 0x4181fa
push dword [ebp + 0x60]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
mov ecx, dword [ebp + 0x5c]
xor eax, eax
cmp ecx, dword [ebp + 0x7c]
pop esi
sete al
pop ebx
add ebp, 0x64
leave
ret 0x14