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

Disassembly:
push 0x30
mov eax, 0x5aead7
call fcn.00580e6b
mov dword [ebp - 4], 2
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push 0x670fd0
mov byte [ebp - 0xd], bl
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x41c9f8
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp + 0x14]
push dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 4
cmp eax, ebx
je 0x41c9e6
push ebx
push 0x8400f200
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push ebx
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x3c], esi
mov byte [ebp - 4], 5
cmp esi, ebx
je 0x41c9d7
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x41c9d7
push 0x13
lea edi, [ebp - 0x24]
mov dword [ebp - 0x24], esi
call fcn.0041c7ba
pop ecx
cmp eax, 0xc8
jne 0x41c9d7
push 5
lea edi, [ebp - 0x24]
mov dword [ebp - 0x24], esi
call fcn.0041c7ba
cmp eax, ebx
pop ecx
mov dword [ebp - 0x30], eax
jle 0x41c9d7
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 0x10]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 6
cmp eax, 0xffffffff
je 0x41c993
mov dword [ebp - 0x14], ebx
mov edi, 0x10000
lea ebx, [ebp - 0x24]
call fcn.0042694e
mov byte [ebp - 4], 7
mov edi, dword [ebp - 0x24]
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x41c971
cmp dword [ebp - 0x14], 0
je 0x41c985
mov eax, dword [edi]
push 0
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41c985
add esi, dword [ebp - 0x14]
mov eax, dword [edi + 4]
mov ecx, dword [edi]
lea edx, [ebp - 0x14]
push edx
push eax
push ecx
push dword [ebp - 0x1c]
call ebx
test eax, eax
jne 0x41c94f
mov byte [ebp - 4], 6
lea ebx, [ebp - 0x24]
call fcn.00426993
xor ebx, ebx
cmp esi, dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x41c9ad
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov byte [ebp - 0xd], 1
jmp 0x41c9c5
cmp dword [ebp - 0x18], 0xffffffff
je 0x41c9b8
push dword [ebp - 0x18]
call esi
push dword [ebp + 0x10]
or dword [ebp - 0x20], 0xffffffff
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 5
cmp dword [ebp - 0x20], 0xffffffff
je 0x41c9d4
push dword [ebp - 0x20]
call esi
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 4], 4
cmp esi, ebx
je 0x41c9e6
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp - 4], 3
cmp dword [ebp - 0x28], ebx
je 0x41c9f8
push dword [ebp - 0x28]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x2c], ebx
je 0x41ca0a
push dword [ebp - 0x2c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.004085a2
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.004085a2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.004085a2
mov al, byte [ebp - 0xd]
call fcn.00580f43
ret