Function at 0x41b820
Capabilities:
Check http status code
Copy file
Create http request
Delete file
Download and write a file
Get file size
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x288c
call fcn.005856d0
mov eax, dword [0x660124]
xor eax, esp
mov dword [esp + 0x2888], eax
push ebx
push esi
push edi
push 0
push 0
push 0
push 0
mov ebx, edx
mov esi, ecx
push str.xyDownLoad
mov dword [esp + 0x2c], ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esp + 0xc], eax
test eax, eax
je 0x41baea
cmp dword [esi + 0x14], 8
jb 0x41b870
mov esi, dword [esi]
push 0
push connect
push 0
push 0
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
test edi, edi
jne 0x41b8aa
push dword [esp + 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2888]
xor ecx, esp
call fcn.005846b2
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
lea eax, [esp + 0x1c]
push 0
push eax
xorps xmm0, xmm0
mov dword [esp + 0x24], 0x14
lea eax, [esp + 0x48]
movq qword [esp + 0x90], xmm0
push eax
push 0x13
push edi
movups xmmword [esp + 0x7c], xmm0
movups xmmword [esp + 0x8c], xmm0
movups xmmword [esp + 0x54], xmm0
movups xmmword [esp + 0x64], xmm0
movq qword [esp + 0x74], xmm0
call esi
test eax, eax
je 0x41badb
lea eax, [esp + 0x40]
push eax
call fcn.005ab68a
add esp, 4
cmp eax, 0x194
je 0x41badb
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x14
push eax
lea eax, [esp + 0x70]
push eax
push 5
push edi
call esi
test eax, eax
je 0x41badb
lea eax, [esp + 0x68]
push eax
call fcn.005ab68a
push 0x64f898
mov edx, ebx
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x2c]
call fcn.00417460
add esp, 8
lea ecx, [esp + 0x24]
cmp dword [esp + 0x38], 8
cmovae ecx, dword [esp + 0x24]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x41ba1e
push 0x2800
lea eax, [esp + 0x94]
mov esi, 1
push 0
push eax
mov dword [esp + 0x2c], esi
call fcn.0059e610
mov ebx, dword [esp + 0x28]
add esp, 0xc
nop dword [eax]
test esi, esi
je 0x41b9fc
lea eax, [esp + 0x20]
push eax
push 0x2800
lea eax, [esp + 0x98]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x10], eax
test esi, esi
je 0x41b9f8
push 0
lea eax, [esp + 0x40]
push eax
push esi
lea eax, [esp + 0x9c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x41b9b0
push 0
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [esp + 0x1c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x18]
cmp esi, dword [esp + 0x14]
je 0x41ba64
cmp dword [esp + 0x38], 8
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [esp + 0xc]
call esi
lea ecx, [esp + 0x24]
xor bl, bl
call fcn.00416530
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2888]
xor ecx, esp
call fcn.005846b2
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x14], 8
jb 0x41ba6e
mov eax, dword [ebx]
jmp 0x41ba70
mov eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
cmp dword [ebx + 0x14], 8
jb 0x41ba81
mov ebx, dword [ebx]
cmp dword [esp + 0x38], 8
lea eax, [esp + 0x24]
push 0
cmovae eax, dword [esp + 0x28]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [esp + 0x38], 8
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push eax
call esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [esp + 0xc]
call esi
lea ecx, [esp + 0x24]
mov bl, 1
call fcn.00416530
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2888]
xor ecx, esp
call fcn.005846b2
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [esp + 0xc]
call esi
mov ecx, dword [esp + 0x2894]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005846b2
mov esp, ebp
pop ebp
ret