Function at 0x4330f8
Capabilities:
Check http status code
Connect to http server
Create http request
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 0x88
mov eax, 0x436394
call fcn.004195d6
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x54], ebx
lea esi, [edi + 0x88]
push 0x43cb18
push esi
mov dword [ebp - 4], 1
mov dword [ebp - 0x38], esi
call fcn.00401181
mov eax, dword [edi]
push ebx
push ebx
push ebx
xor ecx, ecx
push ebx
mov word [eax], cx
push 0x43f5d0
mov dword [edi + 0x80], ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jne 0x4331ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x70]
push eax
lea ebx, [ebp - 0x30]
call fcn.00401ac1
pop ecx
push eax
lea eax, [ebp - 0x8c]
push str.Error_initializing_inet_
push eax
mov byte [ebp - 4], 2
call fcn.0040169a
add esp, 0xc
push esi
mov byte [ebp - 4], 3
call fcn.0040105d
xor edi, edi
xor ebx, ebx
push edi
inc ebx
push ebx
lea esi, [ebp - 0x8c]
call fcn.00401255
push edi
push ebx
lea esi, [ebp - 0x70]
mov byte [ebp - 4], bl
call fcn.00401255
mov ecx, dword [ebp - 0x34]
push 0x43cf78
call fcn.00404de1
push edi
push ebx
lea esi, [ebp + 0x10]
call fcn.00401255
push edi
push ebx
jmp 0x4336ad
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [ebp + 0x48]
push ecx
push 2
push eax
call esi
push 4
lea eax, [ebp + 0x48]
push eax
push 5
push dword [ebp - 0x3c]
call esi
push 4
lea eax, [ebp + 0x48]
push eax
push 6
push dword [ebp - 0x3c]
call esi
push 8
pop esi
cmp dword [edi + 0x3c], esi
jb 0x433206
mov edx, dword [edi + 0x28]
jmp 0x433209
lea edx, [edi + 0x28]
cmp dword [edi + 0x20], esi
jb 0x433213
mov ecx, dword [edi + 0xc]
jmp 0x433216
lea ecx, [edi + 0xc]
cmp dword [edi + 0x58], esi
jb 0x433220
mov eax, dword [edi + 0x44]
jmp 0x433223
lea eax, [edi + 0x44]
push ebx
push ebx
push 3
push edx
push ecx
movzx ecx, word [edi + 0x78]
push ecx
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x48], eax
cmp eax, ebx
jne 0x4332a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x8c]
push eax
lea ebx, [ebp - 0x30]
call fcn.00401ac1
pop ecx
push eax
lea eax, [ebp - 0x70]
push str.Error_connecting_
push eax
mov byte [ebp - 4], 4
call fcn.0040169a
add esp, 0xc
push dword [ebp - 0x38]
mov byte [ebp - 4], 5
call fcn.0040105d
xor edi, edi
xor ebx, ebx
push edi
inc ebx
push ebx
lea esi, [ebp - 0x70]
call fcn.00401255
push edi
push ebx
lea esi, [ebp - 0x8c]
mov byte [ebp - 4], bl
call fcn.00401255
push dword [ebp - 0x3c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x4331b0
cmp dword [edi + 0x74], esi
jb 0x4332b1
mov eax, dword [edi + 0x60]
jmp 0x4332b4
lea eax, [edi + 0x60]
push ebx
push 0x80000000
push ebx
push ebx
push ebx
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x48]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
mov dword [ebp - 0x4c], esi
cmp esi, ebx
jne 0x433342
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x8c]
push eax
lea ebx, [ebp - 0x30]
call fcn.00401ac1
pop ecx
push eax
lea eax, [ebp - 0x70]
push str.Error_creating_request_
push eax
mov byte [ebp - 4], 6
call fcn.0040169a
add esp, 0xc
mov byte [ebp - 4], 7
push dword [ebp - 0x38]
call fcn.0040105d
xor edi, edi
xor ebx, ebx
push edi
inc ebx
push ebx
lea esi, [ebp - 0x70]
call fcn.00401255
push edi
push ebx
lea esi, [ebp - 0x8c]
mov byte [ebp - 4], bl
call fcn.00401255
push dword [ebp - 0x48]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x3c]
call esi
jmp 0x4331b0
cmp dword [ebp + 0x44], 0x10
mov ecx, dword [ebp + 0x30]
jae 0x43334e
lea ecx, [ebp + 0x30]
cmp dword [ebp + 0x28], 8
mov eax, dword [ebp + 0x14]
jae 0x43335a
lea eax, [ebp + 0x14]
push dword [ebp + 0x40]
push ecx
push dword [ebp + 0x24]
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x4333a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x8c]
push eax
lea ebx, [ebp - 0x30]
call fcn.00401ac1
pop ecx
push eax
lea eax, [ebp - 0x70]
push str.Error_sending_request_
push eax
mov byte [ebp - 4], 8
call fcn.0040169a
add esp, 0xc
mov byte [ebp - 4], 9
jmp 0x433306
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [edi]
mov dword [ebp - 0x44], 0x2000
push 0x16
push esi
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [ebp - 0x30], ebx
call esi
mov eax, dword [edi + 0xc8]
cmp eax, ebx
je 0x433407
push ebx
push edi
call eax
pop ecx
pop ecx
test al, al
jne 0x433407
push str.User_abort__info_event_
push dword [ebp - 0x38]
call fcn.00401181
push dword [ebp - 0x48]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x3c]
call esi
mov ecx, dword [ebp - 0x34]
push 0x43cf78
call fcn.00404de1
jmp 0x43369f
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
call fcn.0040513b
push ebx
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x50]
push eax
push 0x20000013
push dword [ebp - 0x4c]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x90], 4
call esi
test eax, eax
jne 0x433477
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x8c]
push eax
lea ebx, [ebp - 0x30]
call fcn.00401ac1
pop ecx
push eax
lea eax, [ebp - 0x70]
push str.Error_getting_HTTP_status_
push eax
mov byte [ebp - 4], 0xb
call fcn.0040169a
add esp, 0xc
mov byte [ebp - 4], 0xc
jmp 0x4334b1
mov eax, dword [ebp - 0x50]
mov dword [edi + 0x80], eax
cmp eax, 0xc8
je 0x4334df
lea eax, [ebp - 0x8c]
push eax
lea ebx, [ebp - 0x50]
call fcn.00401ac1
pop ecx
push eax
lea eax, [ebp - 0x70]
push str.Error_HTTP_status
push eax
mov byte [ebp - 4], 0xd
call fcn.0040169a
add esp, 0xc
mov byte [ebp - 4], 0xe
push dword [ebp - 0x38]
call fcn.0040105d
push 0
push 1
lea esi, [ebp - 0x70]
call fcn.00401255
push 0
push 1
lea esi, [ebp - 0x8c]
mov byte [ebp - 4], 0xa
call fcn.00401255
xor ebx, ebx
jmp 0x433673
mov esi, 0x2000
push esi
call fcn.0041677e
pop ecx
mov dword [ebp - 0x44], eax
cmp dword [edi + 0xb8], ebx
je 0x43357a
lea eax, [edi + 0xa4]
cmp dword [eax + 0x18], 8
jb 0x43350b
mov eax, dword [eax + 4]
jmp 0x43350e
add eax, 4
push 0x43f740
push eax
call fcn.004183ac
pop ecx
pop ecx
mov dword [ebp - 0x30], eax
cmp eax, ebx
jne 0x43357a
call fcn.00418405
lea ecx, [ebp - 0x8c]
push ecx
mov edx, eax
call fcn.00401b21
pop ecx
push eax
lea eax, [ebp - 0x70]
push str.Error_writing_file_
push eax
mov byte [ebp - 4], 0xf
call fcn.0040169a
add esp, 0xc
push dword [ebp - 0x38]
mov byte [ebp - 4], 0x10
call fcn.0040105d
push ebx
push 1
lea esi, [ebp - 0x70]
call fcn.00401255
push ebx
push 1
lea esi, [ebp - 0x8c]
mov byte [ebp - 4], 0xa
call fcn.00401255
jmp 0x43366a
cmp byte [edi + 0xc1], bl
jne 0x43366a
jmp 0x4335d6
cmp dword [ebp - 0x40], ebx
je 0x433659
mov eax, dword [edi + 0xcc]
cmp eax, ebx
je 0x4335ab
push dword [ebp - 0x40]
push edi
call eax
pop ecx
pop ecx
test al, al
je 0x43364c
cmp dword [edi + 0xb8], ebx
je 0x4335c8
push dword [ebp - 0x30]
push 1
push dword [ebp - 0x40]
push dword [ebp - 0x44]
call fcn.004185b0
add esp, 0x10
jmp 0x4335d6
push dword [ebp - 0x40]
lea eax, [ebp - 0x2c]
push dword [ebp - 0x44]
call fcn.00405eea
lea eax, [ebp - 0x40]
push eax
push esi
push dword [ebp - 0x44]
mov dword [ebp - 0x40], ebx
push dword [ebp - 0x4c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x433588
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x8c]
push eax
lea ebx, [ebp - 0x54]
call fcn.00401ac1
pop ecx
push eax
lea eax, [ebp - 0x70]
push str.Error_receiving_data_
push eax
mov byte [ebp - 4], 0x11
call fcn.0040169a
add esp, 0xc
push dword [ebp - 0x38]
mov byte [ebp - 4], 0x12
call fcn.0040105d
push 0
push 1
lea esi, [ebp - 0x70]
call fcn.00401255
push 0
push 1
lea esi, [ebp - 0x8c]
mov byte [ebp - 4], 0xa
call fcn.00401255
xor ebx, ebx
jmp 0x433659
push str.User_abort__processing_event_
push dword [ebp - 0x38]
call fcn.00401181
cmp dword [edi + 0xb8], ebx
je 0x43366a
push dword [ebp - 0x30]
call fcn.004186a9
pop ecx
push dword [ebp - 0x44]
call fcn.00417b9f
pop ecx
push dword [ebp - 0x4c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x48]
call esi
push dword [ebp - 0x3c]
call esi
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
push eax
call fcn.004050a2
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040515a
push ebx
push 1
lea esi, [ebp + 0x10]
call fcn.00401255
push ebx
push 1
lea ecx, [ebp + 0x2c]
call fcn.0040515a
mov eax, dword [ebp - 0x34]
call fcn.00419659
ret 0x44