Function at 0x436131
Capabilities:
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 0x90
mov eax, 0x43e3d8
call fcn.004126dd
mov esi, ecx
mov edi, edx
lea eax, [edi + 0xac]
cmp dword [eax + 0x18], 8
jb 0x436155
mov eax, dword [eax + 4]
jmp 0x436158
add eax, 4
xor ebx, ebx
push ebx
push 0x8401f000
push ebx
push ebx
push ebx
push eax
push dword [edi + 0x124]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp + 8], eax
cmp eax, ebx
jne 0x4361cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x44]
call fcn.00423a1f
push eax
lea eax, [ebp - 0x64]
push str.Error_creating_request_
push eax
mov dword [ebp - 4], ebx
call fcn.00403c93
add esp, 0xc
add edi, 0xd8
push edi
mov byte [ebp - 4], 1
call fcn.00401938
push ebx
push 1
lea esi, [ebp - 0x64]
call fcn.0040115a
push ebx
push 1
lea esi, [ebp - 0x44]
call fcn.0040115a
xor eax, eax
xor edx, edx
call fcn.004127b5
ret 0x14
cmp dword [esi + 0x18], 0x10
mov edx, dword [esi + 0x14]
jb 0x4361dd
mov esi, dword [esi + 4]
jmp 0x4361e0
add esi, 4
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 8
mov ecx, dword [eax + 0x14]
jb 0x4361f1
mov eax, dword [eax + 4]
jmp 0x4361f4
add eax, 4
push edx
push esi
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x436260
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x64]
call fcn.00423a1f
push eax
lea eax, [ebp - 0x44]
push str.Error_sending_request_
push eax
mov dword [ebp - 4], 2
call fcn.00403c93
add esp, 0xc
add edi, 0xd8
push edi
mov byte [ebp - 4], 3
call fcn.00401938
push ebx
push 1
lea esi, [ebp - 0x44]
call fcn.0040115a
push ebx
push 1
lea esi, [ebp - 0x64]
call fcn.0040115a
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x4361c3
push 0x4000
call fcn.00410cae
pop ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
push 0x22
push dword [ebp + 8]
mov esi, 0x2000
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x20], esi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
test eax, eax
je 0x4362bf
push dword [ebp - 0x20]
lea eax, [ebp - 0x44]
push dword [ebp + 0xc]
call fcn.004043a0
lea ecx, [edi + 0x128]
push ecx
mov dword [ebp - 4], 4
call fcn.00401938
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea esi, [ebp - 0x44]
call fcn.0040115a
mov esi, 0x2000
push dword [ebp + 0xc]
call fcn.00410f30
pop ecx
cmp byte [ebp + 0x18], bl
je 0x43637a
push esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x14], ebx
call fcn.00410cae
pop ecx
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
push 0x16
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
push dword [ebp - 0x24]
lea eax, [ebp - 0x44]
push dword [ebp + 0xc]
push eax
call fcn.00424901
add esp, 0xc
push edi
mov dword [ebp - 4], 5
call fcn.00401938
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea esi, [ebp - 0x44]
call fcn.0040115a
push dword [ebp + 0xc]
call fcn.00410f30
mov eax, dword [edi + 0x11c]
pop ecx
cmp eax, ebx
je 0x436358
push ebx
push edi
call eax
pop ecx
pop ecx
test al, al
jne 0x436358
push str.User_abort__info_event_
add edi, 0xd8
push edi
call fcn.004020fc
jmp 0x436252
mov eax, dword [edi + 0x148]
cmp eax, ebx
je 0x436375
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x436375
push str.User_abort__cancel_event_
jmp 0x436347
mov esi, 0x2000
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x20000013
push dword [ebp + 8]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x4363d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x64]
call fcn.00423a1f
push eax
lea eax, [ebp - 0x44]
push str.Error_getting_HTTP_status_
push eax
mov dword [ebp - 4], 6
call fcn.00403c93
add esp, 0xc
mov byte [ebp - 4], 7
jmp 0x436414
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0xd0], eax
cmp byte [ebp + 0x18], bl
je 0x436441
push 0x64
xor edx, edx
pop ecx
div ecx
cmp eax, 2
je 0x436448
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x64]
call fcn.00423a1f
push eax
lea eax, [ebp - 0x44]
push str.Error_HTTP_status
push eax
mov dword [ebp - 4], 8
call fcn.00403c93
add esp, 0xc
mov byte [ebp - 4], 9
add edi, 0xd8
push edi
call fcn.00401938
push ebx
push 1
lea esi, [ebp - 0x44]
call fcn.0040115a
push ebx
push 1
lea esi, [ebp - 0x64]
call fcn.0040115a
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
jmp 0x4365d1
cmp eax, 0xce
jne 0x4363ec
push esi
call fcn.00410cae
pop ecx
mov dword [ebp + 0xc], eax
cmp byte [edi + 0x111], bl
jne 0x43659d
lea ecx, [ebp + 0x18]
push ecx
push esi
push eax
jmp 0x43653c
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x43659d
add dword [ebp - 0x18], eax
adc dword [ebp - 0x14], ebx
cmp dword [ebp + 0x14], 0xffffffff
je 0x4364f4
push ebx
lea ecx, [ebp - 0x48]
push ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov eax, dword [ebp + 0x18]
je 0x43649e
cmp dword [ebp - 0x48], eax
je 0x436500
sub dword [ebp - 0x18], eax
sbb dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x9c]
call fcn.00423a1f
push eax
lea eax, [ebp - 0x80]
push str.Error_writing_file_
push eax
mov dword [ebp - 4], 0xc
call fcn.00403c93
add esp, 0xc
add edi, 0xd8
push edi
mov byte [ebp - 4], 0xd
call fcn.00401938
push ebx
push 1
lea esi, [ebp - 0x80]
call fcn.0040115a
lea esi, [ebp - 0x9c]
jmp 0x436595
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
call fcn.00404305
mov eax, dword [edi + 0x120]
cmp eax, ebx
je 0x43651a
push dword [ebp + 0x18]
push edi
call eax
pop ecx
pop ecx
test al, al
je 0x4365ab
mov eax, dword [edi + 0x148]
cmp eax, ebx
je 0x436534
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4365be
lea eax, [ebp + 0x18]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
mov dword [ebp + 0x18], ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x436469
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x64]
call fcn.00423a1f
push eax
lea eax, [ebp - 0x44]
push str.Error_receiving_data_
push eax
mov dword [ebp - 4], 0xa
call fcn.00403c93
add esp, 0xc
add edi, 0xd8
push edi
mov byte [ebp - 4], 0xb
call fcn.00401938
push ebx
push 1
lea esi, [ebp - 0x44]
call fcn.0040115a
lea esi, [ebp - 0x64]
push ebx
push 1
call fcn.0040115a
push dword [ebp + 0xc]
call fcn.00410f30
pop ecx
jmp 0x436436
push str.User_abort__processing_event_
add edi, 0xd8
push edi
call fcn.004020fc
jmp 0x43659d
push str.User_abort__cancel_event_
add edi, 0xd8
push edi
call fcn.004020fc
xor esi, esi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, esi
mov edx, ebx
jmp 0x4361c7