Function at 0x404320
Capabilities:
Check http status code
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:
mov eax, 0x3128
call fcn.00435d80
mov eax, dword [0x452504]
mov edx, dword [esp + 0x3134]
push ebx
push ebp
push esi
push edi
push 0
mov dword [esp + 0x3138], eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x138]
push ecx
push edx
mov dword [esp + 0x30], 0x800
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
mov edi, dword [esp + 0x313c]
mov ebp, dword [sym.imp.WININET.dll_InternetOpenUrlA]
xor ebx, ebx
mov edi, edi
push 0
push 0x84000000
push 0
push 0
lea eax, [esp + 0x140]
push eax
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x4043d0
inc ebx
cmp ebx, 3
jl 0x404370
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x30], al
push edx
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x20], 0x104
call dword [sym.imp.WININET.dll_InternetGetLastResponseInfoA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x3124]
call fcn.00435083
add esp, 0x3128
ret
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0x20000013
push esi
mov dword [esp + 0x30], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [esp + 0x24], 0xc8
je 0x404444
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x24], 0x104
mov dword [esp + 0x20], 0
mov byte [esp + 0x38], 0
call dword [sym.imp.WININET.dll_InternetGetLastResponseInfoA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x3124]
call fcn.00435083
add esp, 0x3128
ret
mov ebx, dword [esp + 0x3140]
push 0
push ebx
call fcn.00435d39
add esp, 8
cmp eax, 0xffffffff
je 0x404464
push ebx
call fcn.0042fce0
add esp, 4
push 0
push 0x80000080
push 2
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4044a9
call fcn.004039a0
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x3124]
call fcn.00435083
add esp, 0x3128
ret
mov ebp, dword [esp + 0x314c]
lea eax, [esp + 0x10]
push eax
push 0x2800
lea ecx, [esp + 0x93c]
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x404562
mov eax, dword [esp + 0x10]
push 0
lea edx, [esp + 0x2c]
push edx
push eax
lea ecx, [esp + 0x940]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404562
mov ecx, dword [esp + 0x3148]
test ecx, ecx
je 0x404505
mov edx, dword [esp + 0x10]
push edx
call fcn.00403df0
test ebp, ebp
je 0x404515
mov eax, dword [esp + 0x10]
push eax
mov ecx, ebp
call fcn.00403df0
call fcn.00415fa0
cmp dword [eax], 0
jne 0x404527
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4044b0
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00415fa0
cmp dword [eax], 0
je 0x404546
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x3124]
call fcn.00435083
add esp, 0x3128
ret
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.004039a0
mov ecx, dword [esp + 0x3134]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
call fcn.00435083
add esp, 0x3128
ret