Function at 0x1001fb40
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, 0x3eb0
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 + 8]
lea edx, [ebp - 0xe54]
movups xmm0, xmmword [str.Content_Type:_application_x_www_form_urlencoded]
mov dword [ebp - 0x3e9c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x3ea8], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x3e90], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x3ea4], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x3e94], eax
mov eax, dword [ebp + 0x34]
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x3e78], eax
movups xmm0, xmmword [0x10039408]
mov eax, dword [ebp + 0x38]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x3e70], eax
mov eax, dword [ebp + 0x40]
mov esi, dword [ebp + 0x20]
mov ecx, esi
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x3e5c], eax
xor eax, eax
movups xmm0, xmmword [0x10039418]
xor edi, edi
mov dword [ebp - 0x3e74], 0
mov dword [ebp - 0x3e58], 0
sub edx, esi
mov dword [ebp - 0x3e60], 0
mov dword [ebp - 0x3e7c], eax
mov dword [ebp - 0x3e64], eax
mov dword [ebp - 0x3e88], eax
mov dword [ebp - 0x3e84], eax
mov dword [ebp - 0x3e80], 0x4000100
mov dword [ebp - 0x3ea0], 0x544547
mov dword [ebp - 0x3eb0], 0x100393f4
mov dword [ebp - 0x3eac], eax
movups xmmword [ebp - 0x14], xmm0
mov dword [ebp - 0x3e98], eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x1001fc37
lea eax, [ebp - 0xe54]
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsupr]
push 4
lea eax, [ebp - 0xe54]
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 0x1001fc83
push esi
lea eax, [ebp - 0xa54]
push str.http:___s
push eax
call fcn.1001a8c0
add esp, 0xc
jmp 0x1001fc9d
lea ecx, [ebp - 0xa54]
sub ecx, esi
nop dword [eax + eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x1001fc90
lea eax, [ebp - 0x3e8c]
push eax
lea eax, [ebp - 0x3e54]
push eax
push 0
push 0
lea eax, [ebp - 0x3654]
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0xa54]
push eax
call fcn.10020770
add esp, 0x20
test eax, eax
je 0x100201d1
cmp byte [ebx], 0
je 0x1001fd02
push dword [ebp + 0x14]
lea eax, [ebp - 0x254]
push ebx
push str.http:___s:_d
push eax
call fcn.1001a8c0
mov eax, 3
add esp, 0x10
mov dword [ebp - 0x3e5c], eax
jmp 0x1001fd08
mov eax, dword [ebp - 0x3e5c]
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [sym.imp.WININET.dll_InternetOpenA]
nop word [eax + eax]
push 0
push 0
cmp eax, 3
jne 0x1001fd34
lea eax, [ebp - 0x254]
push eax
push 3
jmp 0x1001fd37
push 0
push eax
push str.Mozilla_5.0__Windows_NT_10.0__Trident_7.0__rv:11.0__like_Gecko
call edx
mov dword [ebp - 0x3e6c], eax
test eax, eax
je 0x100201d1
push 0
push 0
push 3
push 0
push 0
push dword [ebp - 0x3e8c]
lea ecx, [ebp - 0x154]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x3e68], eax
test eax, eax
je 0x1002019a
lea eax, [ebp - 0x3e54]
push eax
lea eax, [ebp - 0x3654]
push eax
lea eax, [ebp - 0x2e54]
push str._s_s
push eax
call fcn.1001a8c0
push dword [ebp - 0x3ea4]
lea eax, [ebp - 0x2e54]
push eax
lea eax, [ebp - 0x1e54]
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 0x1001fdde
cmp dword [ebp - 0x3e8c], 0x1bb
jne 0x1001fdeb
mov eax, dword [ebp - 0x3e80]
or eax, 0x803000
jmp 0x1001fdf1
mov eax, dword [ebp - 0x3e80]
push 0
or eax, 0x400000
push eax
mov dword [ebp - 0x3e80], eax
lea eax, [ebp - 0x3eb0]
push eax
push 0
push 0
lea eax, [ebp - 0x1e54]
push eax
lea eax, [ebp - 0x3ea0]
push eax
push dword [ebp - 0x3e68]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
mov dword [ebp - 0x3e74], ebx
test ebx, ebx
je 0x10020194
push 4
lea eax, [ebp + 0x44]
push eax
push 2
push ebx
call esi
push 4
lea eax, [ebp + 0x44]
push eax
push 5
push ebx
call esi
push 4
lea eax, [ebp + 0x44]
push eax
push 6
push ebx
call esi
push 4
lea eax, [ebp + 0x44]
push eax
push 7
push ebx
call esi
push 4
lea eax, [ebp + 0x44]
push eax
push 8
push ebx
call esi
mov edi, dword [ebp - 0x3ea8]
cmp byte [edi], 0
je 0x1001fe93
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001fe80
sub ecx, edx
lea eax, [ecx + 1]
push eax
push edi
push 0x2b
push ebx
call esi
mov edi, dword [ebp - 0x3e90]
cmp byte [edi], 0
je 0x1001feb6
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001fea3
sub ecx, edx
lea eax, [ecx + 1]
push eax
push edi
push 0x2c
push ebx
call esi
lea eax, [ebp - 0x34]
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001fec0
push 0
push 0
sub eax, edx
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov edi, eax
test edi, edi
jne 0x1001ffa6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f0d
je 0x1001fefe
cmp eax, 0x2f19
je 0x1001fefe
cmp eax, 0x2f07
jne 0x1001ff39
lea eax, [ebp - 0x3e58]
mov dword [ebp - 0x3e58], 4
push eax
lea eax, [ebp - 0x3e60]
push eax
push 0x1f
push ebx
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
or dword [ebp - 0x3e60], 0x180
lea eax, [ebp - 0x3e60]
push 4
push eax
push 0x1f
jmp 0x1001feb3
cmp eax, 0x2ee2
je 0x100201d1
mov eax, dword [ebp - 0x3e5c]
test eax, eax
jne 0x1001ff77
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebx
push dword [ebp - 0x3e68]
call ebx
push dword [ebp - 0x3e6c]
call ebx
mov eax, 1
mov dword [ebp - 0x3e5c], eax
jmp 0x1001fd14
cmp eax, 3
jne 0x100201d1
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebx
push dword [ebp - 0x3e68]
call ebx
push dword [ebp - 0x3e6c]
call ebx
xor eax, eax
mov dword [ebp - 0x3e5c], eax
jmp 0x1001fd14
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea eax, [ebp - 0x3e58]
push 0
push eax
lea eax, [ebp - 0x3e88]
mov dword [ebp - 0x3e58], 4
push eax
push 0x20000013
push ebx
call esi
mov ecx, dword [ebp - 0x3e78]
mov edi, eax
mov eax, dword [ebp - 0x3e88]
mov dword [ecx], eax
test edi, edi
je 0x10020194
test eax, eax
je 0x1001fff8
cmp eax, 0xc8
je 0x1001fff8
xor edi, edi
jmp 0x10020194
push 0
lea eax, [ebp - 0x3e58]
mov dword [ebp - 0x3e58], 4
push eax
lea eax, [ebp - 0x3e84]
push eax
push 5
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x1002002b
cmp dword [ebp - 0x3e84], edi
mov eax, 1
cmove edi, eax
mov esi, dword [ebp - 0x3e94]
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]
mov ecx, dword [ebp - 0x3e70]
push 0x400
push 0
mov dword [ecx], eax
lea eax, [ebp - 0x654]
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0xc
nop dword [eax + eax]
lea eax, [ebp - 0x3e64]
push eax
push 0x400
lea eax, [ebp - 0x654]
push eax
push dword [ebp - 0x3e74]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x100200c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x10020186
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10020080
mov eax, dword [ebp - 0x3e64]
test eax, eax
je 0x10020181
mov edx, dword [ebp - 0x3e7c]
mov ecx, dword [ebp + 0x28]
add edx, eax
mov dword [ebp - 0x3e7c], edx
test ecx, ecx
je 0x100200e8
cmp edx, ecx
ja 0x1002015d
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x100200f3
cmp edx, ecx
ja 0x1002016d
push 0
lea ecx, [ebp - 0x3e98]
push ecx
push eax
lea eax, [ebp - 0x654]
push eax
mov eax, dword [ebp - 0x3e70]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1002017d
mov ecx, dword [ebp - 0x3e9c]
test ecx, ecx
je 0x1002013b
cmp dword [ebp + 0x3c], 1
push 0
jne 0x10020130
push dword [ebp - 0x3e64]
jmp 0x10020137
mov eax, dword [ebp - 0x3e7c]
push eax
push esi
push ecx
call ebx
push 0x400
lea eax, [ebp - 0x654]
mov dword [ebp - 0x3e64], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
jmp 0x10020075
mov eax, dword [ebp - 0x3e78]
xor edi, edi
mov dword [eax], 0x385
jmp 0x10020186
mov eax, dword [ebp - 0x3e78]
xor edi, edi
mov dword [eax], 0x386
jmp 0x10020186
xor edi, edi
jmp 0x10020186
mov edi, 1
mov eax, dword [ebp - 0x3e70]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x3e74]
call ebx
push dword [ebp - 0x3e68]
call ebx
push dword [ebp - 0x3e6c]
call ebx
mov eax, dword [ebp - 0x3e70]
mov dword [eax], 0
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