Function at 0x1001ecb0
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
Reference http user-agent string
Send data
Send http request
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3eac
call fcn.10033810
mov eax, dword [0x10042074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0xa54]
movups xmm0, xmmword [str.Content_Type:_application_x_www_form_urlencoded]
mov dword [ebp - 0x3e94], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3e98], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x3e8c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x3ea0], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x3e9c], eax
mov eax, dword [ebp + 0x28]
movups xmmword [ebp - 0x34], xmm0
movups xmm0, xmmword [0x10039408]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x3e64], eax
mov eax, dword [ebp + 0x34]
mov esi, dword [ebp + 0x18]
mov ecx, esi
mov dword [ebp - 0x3e88], eax
mov eax, dword [ebp + 0x38]
movups xmmword [ebp - 0x24], xmm0
movups xmm0, xmmword [0x10039418]
xor edi, edi
mov dword [ebp - 0x3e84], eax
mov eax, dword [ebp + 0x30]
sub edx, esi
mov dword [ebp - 0x3e6c], 0
mov dword [ebp - 0x3e60], 0
mov dword [ebp - 0x3e68], 0
mov dword [ebp - 0x3e74], edi
mov dword [ebp - 0x3e7c], edi
mov dword [ebp - 0x3e80], edi
mov dword [ebp - 0x3e90], 0x544547
mov dword [ebp - 0x3eac], 0x100393f4
mov dword [ebp - 0x3ea8], edi
movups xmmword [ebp - 0x14], xmm0
mov dword [ebp - 0x3e58], eax
mov dword [ebp - 0x3ea4], edi
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x1001eda0
lea eax, [ebp - 0xa54]
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsupr]
push 4
lea eax, [ebp - 0xa54]
push str.HTTP
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsncmp]
add esp, 0x10
test eax, eax
je 0x1001edec
push esi
lea eax, [ebp - 0xe54]
push str.http:___s
push eax
call fcn.1001a8c0
add esp, 0xc
jmp 0x1001ee01
lea ecx, [ebp - 0xe54]
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x1001edf4
lea eax, [ebp - 0x3e78]
push eax
lea eax, [ebp - 0x1654]
push eax
push 0
push 0
lea eax, [ebp - 0x1e54]
push eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0xe54]
push eax
call fcn.10020770
add esp, 0x20
test eax, eax
je 0x1001f2f1
cmp byte [ebx], 0
je 0x1001ee66
push dword [ebp + 0xc]
lea eax, [ebp - 0x154]
push ebx
push str.http:___s:_d
push eax
call fcn.1001a8c0
mov eax, 3
add esp, 0x10
mov dword [ebp - 0x3e64], eax
jmp 0x1001ee6c
mov eax, dword [ebp - 0x3e64]
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionA]
mov edx, dword [sym.imp.WININET.dll_InternetOpenA]
push 0
push 0
cmp eax, 3
jne 0x1001ee9b
lea eax, [ebp - 0x154]
push eax
push 3
push str.Mozilla_5.0__Windows_NT_10.0__Trident_7.0__rv:11.0__like_Gecko
call edx
mov esi, eax
mov dword [ebp - 0x3e5c], esi
jmp 0x1001eead
push 0
push eax
push str.Mozilla_5.0__Windows_NT_10.0__Trident_7.0__rv:11.0__like_Gecko
call edx
mov esi, eax
mov dword [ebp - 0x3e5c], eax
test esi, esi
je 0x1001f2f1
push 4
lea eax, [ebp - 0x3e58]
push eax
push 2
push esi
call ebx
push 4
lea eax, [ebp - 0x3e58]
push eax
push 5
push esi
call ebx
push 4
lea eax, [ebp - 0x3e58]
push eax
push 6
push esi
call ebx
push 4
lea eax, [ebp - 0x3e58]
push eax
push 7
push esi
call ebx
push 4
lea eax, [ebp - 0x3e58]
push eax
push 8
push esi
call ebx
push 0
push 0
push 3
push dword [ebp - 0x3e84]
lea eax, [ebp - 0x254]
push dword [ebp - 0x3e88]
push dword [ebp - 0x3e78]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x3e70], eax
test eax, eax
je 0x1001f2c5
lea eax, [ebp - 0x1654]
push eax
lea eax, [ebp - 0x1e54]
push eax
lea eax, [ebp - 0x2e54]
push str._s_s
push eax
call fcn.1001a8c0
push dword [ebp - 0x3e8c]
lea eax, [ebp - 0x2e54]
push eax
lea eax, [ebp - 0x3e54]
push str._s_s
push eax
call fcn.1001a8c0
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbslwr]
push str.https
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
add esp, 0x2c
test eax, eax
je 0x1001ef95
cmp dword [ebp - 0x3e78], 0x1bb
jne 0x1001ef9f
mov eax, dword [ebp + 0x2c]
or eax, 0x803000
jmp 0x1001efa2
mov eax, dword [ebp + 0x2c]
push 0
or eax, 0x400000
push eax
mov dword [ebp + 0x2c], eax
lea eax, [ebp - 0x3eac]
push eax
push 0
push 0
lea eax, [ebp - 0x3e54]
push eax
lea eax, [ebp - 0x3e90]
push eax
push dword [ebp - 0x3e70]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
mov dword [ebp - 0x3e6c], esi
test esi, esi
je 0x1001f2bf
push 4
lea eax, [ebp - 0x3e58]
push eax
push 2
push esi
call ebx
push 4
lea eax, [ebp - 0x3e58]
push eax
push 5
push esi
call ebx
push 4
lea eax, [ebp - 0x3e58]
push eax
push 6
push esi
call ebx
push 4
lea eax, [ebp - 0x3e58]
push eax
push 7
push esi
call ebx
push 4
lea eax, [ebp - 0x3e58]
push eax
push 8
push esi
call ebx
mov edi, dword [ebp - 0x3e94]
cmp byte [edi], 0
je 0x1001f04b
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001f038
sub ecx, edx
lea eax, [ecx + 1]
push eax
push edi
push 0x2b
push esi
call ebx
mov edi, dword [ebp - 0x3e98]
cmp byte [edi], 0
je 0x1001f073
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001f060
sub ecx, edx
lea eax, [ecx + 1]
push eax
push edi
push 0x2c
push esi
call ebx
lea eax, [ebp - 0x34]
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001f080
push 0
push 0
sub eax, edx
push eax
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov edi, eax
test edi, edi
jne 0x1001f166
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f0d
je 0x1001f0be
cmp eax, 0x2f19
je 0x1001f0be
cmp eax, 0x2f07
jne 0x1001f0f9
lea eax, [ebp - 0x3e60]
mov dword [ebp - 0x3e60], 4
push eax
lea eax, [ebp - 0x3e68]
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
or dword [ebp - 0x3e68], 0x180
lea eax, [ebp - 0x3e68]
push 4
push eax
push 0x1f
jmp 0x1001f070
cmp eax, 0x2ee2
je 0x1001f2f1
mov eax, dword [ebp - 0x3e64]
test eax, eax
jne 0x1001f137
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x3e70]
call esi
push dword [ebp - 0x3e5c]
call esi
mov eax, 1
mov dword [ebp - 0x3e64], eax
jmp 0x1001ee72
cmp eax, 3
jne 0x1001f2f1
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x3e70]
call esi
push dword [ebp - 0x3e5c]
call esi
xor eax, eax
mov dword [ebp - 0x3e64], eax
jmp 0x1001ee72
push 0
lea eax, [ebp - 0x3e60]
mov dword [ebp - 0x3e60], 4
push eax
lea eax, [ebp - 0x3e7c]
push eax
push 0x20000013
push esi
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
call esi
mov ecx, dword [ebp - 0x3e9c]
mov edi, eax
mov eax, dword [ebp - 0x3e7c]
mov dword [ecx], eax
test edi, edi
je 0x1001f2bf
test eax, eax
je 0x1001f1b8
cmp eax, 0xc8
je 0x1001f1b8
xor edi, edi
jmp 0x1001f2bf
push 0
lea eax, [ebp - 0x3e60]
mov dword [ebp - 0x3e60], 4
push eax
lea eax, [ebp - 0x3e80]
push eax
push 5
push dword [ebp - 0x3e6c]
call esi
mov edi, eax
test edi, edi
jne 0x1001f1f0
cmp dword [ebp - 0x3e80], edi
mov eax, 1
cmove edi, eax
mov esi, dword [ebp - 0x3ea0]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0x400
mov esi, eax
lea eax, [ebp - 0x654]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
lea eax, [ebp - 0x3e74]
push eax
push 0x400
lea eax, [ebp - 0x654]
push eax
push dword [ebp - 0x3e6c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1001f26a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1001f2b8
push 0x64
call ebx
jmp 0x1001f234
mov eax, dword [ebp - 0x3e74]
test eax, eax
je 0x1001f2b3
push 0
lea ecx, [ebp - 0x3ea4]
push ecx
push eax
lea eax, [ebp - 0x654]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001f2af
push 0x400
lea eax, [ebp - 0x654]
mov dword [ebp - 0x3e74], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
jmp 0x1001f231
xor edi, edi
jmp 0x1001f2b8
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x3e5c]
push dword [ebp - 0x3e6c]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebx
push dword [ebp - 0x3e70]
call ebx
push esi
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100337f6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100337f6
mov esp, ebp
pop ebp
ret