Function at 0x1001f310
Capabilities:
Check http status code
Connect to http server
Create http request
Delete file
Download and write a file
Print debug messages
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
push 0xffffffffffffffff
push 0x10036738
mov eax, dword fs:[0]
push eax
mov eax, 0x42ac
call fcn.10033810
mov eax, dword [0x10042074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x42ac]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x4290], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x428c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x42b0], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x42a4], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x426c], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x4278], eax
xor eax, eax
mov dword [ebp - 0x4284], 0
mov dword [ebp - 0x4270], 0
mov dword [ebp - 0x4288], 0
mov dword [ebp - 0x4274], eax
call dword [sym.imp.mfc140.dll_Ordinal_316]
push 0x3fc
lea eax, [ebp - 0xa5c]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x4298], 0
mov dword [ebp - 0x4294], 0
mov dword [ebp - 0x42a0], 0
mov dword [ebp - 0x429c], 0
mov dword [ebp - 0xa60], 0x544547
call sub.VCRUNTIME140.dll_memset
movups xmm0, xmmword [str.Content_Type:_application_x_www_form_urlencoded]
mov eax, dword [ebp + 0x38]
lea edx, [ebp - 0x1260]
add esp, 0xc
mov dword [ebp - 0x42b8], 0x100393f4
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x42b4], 0
mov ecx, esi
movups xmm0, xmmword [0x10039408]
mov dword [ebp - 0x4264], eax
sub edx, esi
mov dword [ebp - 0x42a8], 0
movups xmmword [ebp - 0x30], xmm0
movups xmm0, xmmword [0x10039418]
movups xmmword [ebp - 0x20], xmm0
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x1001f450
lea eax, [ebp - 0x1260]
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsupr]
push 4
lea eax, [ebp - 0x1260]
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 0x1001f49c
push esi
lea eax, [ebp - 0xe60]
push str.http:___s
push eax
call fcn.1001a8c0
add esp, 0xc
jmp 0x1001f4b1
lea ecx, [ebp - 0xe60]
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x1001f4a4
lea eax, [ebp - 0x427c]
push eax
lea eax, [ebp - 0x4260]
push eax
push 0
push 0
lea eax, [ebp - 0x3a60]
push eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0xe60]
push eax
call fcn.10020770
add esp, 0x20
test eax, eax
je 0x1001fb0c
cmp byte [edi], 0
je 0x1001f516
push dword [ebp + 0xc]
lea eax, [ebp - 0x260]
push edi
push str.http:___s:_d
push eax
call fcn.1001a8c0
mov eax, 3
add esp, 0x10
mov dword [ebp - 0x4278], eax
jmp 0x1001f51c
mov eax, dword [ebp - 0x4278]
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
mov edx, dword [sym.imp.WININET.dll_InternetOpenA]
push 0
push 0
cmp eax, 3
jne 0x1001f54b
lea eax, [ebp - 0x260]
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 - 0x4268], esi
jmp 0x1001f55d
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 - 0x4268], eax
test esi, esi
je 0x1001fb0c
push 4
lea eax, [ebp - 0x4264]
push eax
push 2
push esi
call edi
push 4
lea eax, [ebp - 0x4264]
push eax
push 5
push esi
call edi
push 4
lea eax, [ebp - 0x4264]
push eax
push 6
push esi
call edi
push 4
lea eax, [ebp - 0x4264]
push eax
push 7
push esi
call edi
push 4
lea eax, [ebp - 0x4264]
push eax
push 8
push esi
call edi
mov eax, dword [ebp - 0x4290]
cmp byte [eax], 0
je 0x1001f5d9
mov ecx, eax
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001f5c0
sub ecx, edx
lea eax, [ecx + 1]
push eax
mov eax, dword [ebp - 0x4290]
push eax
push 0x2b
push esi
call edi
mov eax, dword [ebp - 0x428c]
cmp byte [eax], 0
je 0x1001f609
mov ecx, eax
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001f5f0
sub ecx, edx
lea eax, [ecx + 1]
push eax
mov eax, dword [ebp - 0x428c]
push eax
push 0x2c
push esi
call edi
push 0
push 0
push 3
push 0
push 0
push dword [ebp - 0x427c]
lea eax, [ebp - 0x160]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x4280], eax
test eax, eax
je 0x1001fb01
lea eax, [ebp - 0x4260]
push eax
lea eax, [ebp - 0x3a60]
push eax
lea eax, [ebp - 0x3260]
push str._s_s
push eax
call fcn.1001a8c0
push dword [ebp - 0x42b0]
lea eax, [ebp - 0x3260]
push eax
lea eax, [ebp - 0x2260]
push str._s_s
push eax
call fcn.1001a8c0
lea eax, [ebp - 0x60]
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 0x1001f69b
cmp dword [ebp - 0x427c], 0x1bb
jne 0x1001f6a5
mov eax, dword [ebp + 0x34]
or eax, 0x803000
jmp 0x1001f6a8
mov eax, dword [ebp + 0x34]
push 0
or eax, 0x400000
push eax
mov dword [ebp + 0x34], eax
lea eax, [ebp - 0x42b8]
push eax
push 0
push 0
lea eax, [ebp - 0x2260]
push eax
lea eax, [ebp - 0xa60]
push eax
push dword [ebp - 0x4280]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
mov dword [ebp - 0x4284], esi
test esi, esi
je 0x1001faf6
push 4
lea eax, [ebp - 0x4264]
push eax
push 2
push esi
call edi
push 4
lea eax, [ebp - 0x4264]
push eax
push 5
push esi
call edi
push 4
lea eax, [ebp - 0x4264]
push eax
push 6
push esi
call edi
push 4
lea eax, [ebp - 0x4264]
push eax
push 7
push esi
call edi
push 4
lea eax, [ebp - 0x4264]
push eax
push 8
push esi
call edi
mov eax, dword [ebp - 0x4290]
cmp byte [eax], 0
je 0x1001f759
mov ecx, eax
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001f740
sub ecx, edx
lea eax, [ecx + 1]
push eax
mov eax, dword [ebp - 0x4290]
push eax
push 0x2b
push esi
call edi
mov eax, dword [ebp - 0x428c]
cmp byte [eax], 0
je 0x1001f790
mov ecx, eax
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001f770
sub ecx, edx
lea eax, [ecx + 1]
push eax
mov eax, dword [ebp - 0x428c]
push eax
push 0x2c
push esi
call edi
nop dword [eax]
lea eax, [ebp - 0x40]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001f796
push 0
push 0
sub eax, edx
push eax
lea eax, [ebp - 0x40]
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov dword [ebp - 0x4274], eax
test eax, eax
jne 0x1001f880
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f0d
je 0x1001f7d8
cmp eax, 0x2f19
je 0x1001f7d8
cmp eax, 0x2f07
jne 0x1001f813
lea eax, [ebp - 0x4270]
mov dword [ebp - 0x4270], 4
push eax
lea eax, [ebp - 0x4288]
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
or dword [ebp - 0x4288], 0x180
lea eax, [ebp - 0x4288]
push 4
push eax
push 0x1f
jmp 0x1001f786
cmp eax, 0x2ee2
je 0x1001fb0c
mov eax, dword [ebp - 0x4278]
test eax, eax
jne 0x1001f851
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x4280]
call esi
push dword [ebp - 0x4268]
call esi
mov eax, 1
mov dword [ebp - 0x4278], eax
jmp 0x1001f522
cmp eax, 3
jne 0x1001fb0c
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x4280]
call esi
push dword [ebp - 0x4268]
call esi
xor eax, eax
mov dword [ebp - 0x4278], eax
jmp 0x1001f522
push 0
lea eax, [ebp - 0x4270]
mov dword [ebp - 0x4270], 4
push eax
lea eax, [ebp - 0x42a0]
push eax
push 0x20000013
push esi
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
call esi
mov ecx, dword [ebp - 0x426c]
mov edi, eax
mov eax, dword [ebp - 0x42a0]
mov dword [ecx], eax
test edi, edi
je 0x1001f8c9
test eax, eax
je 0x1001f8f3
cmp eax, 0xc8
je 0x1001f8f3
xor edi, edi
mov esi, dword [ebp - 0x4268]
push dword [ebp - 0x4284]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x4280]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x1001fb0e
push 0
lea eax, [ebp - 0x4270]
mov dword [ebp - 0x4270], 4
push eax
lea eax, [ebp - 0x429c]
push eax
push 5
push dword [ebp - 0x4284]
call esi
mov dword [ebp - 0x4274], eax
test eax, eax
jne 0x1001f935
cmp dword [ebp - 0x429c], eax
mov ecx, 1
cmove eax, ecx
mov dword [ebp - 0x4274], eax
mov esi, dword [ebp - 0x42a4]
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 dword [ebp - 0x427c], eax
lea eax, [ebp - 0x660]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [ebp + 0x24]
mov edi, dword [ebp + 0x20]
add esp, 0xc
nop dword [eax]
lea eax, [ebp - 0x4294]
push eax
push 0x400
lea eax, [ebp - 0x660]
push eax
push dword [ebp - 0x4284]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1001f9be
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1001fadf
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001f980
mov eax, dword [ebp - 0x4294]
test eax, eax
je 0x1001fac9
mov ecx, dword [ebp - 0x4298]
add ecx, eax
mov dword [ebp - 0x4298], ecx
test edi, edi
je 0x1001f9e2
cmp ecx, edi
ja 0x1001fa2d
test esi, esi
je 0x1001f9ea
cmp ecx, esi
ja 0x1001fa4c
push 0
lea ecx, [ebp - 0x42a8]
push ecx
push eax
lea eax, [ebp - 0x660]
push eax
push dword [ebp - 0x427c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001fa6b
push 0x400
lea eax, [ebp - 0x660]
mov dword [ebp - 0x4294], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
jmp 0x1001f97a
mov eax, dword [ebp - 0x426c]
xor edi, edi
push dword [ebp - 0x427c]
mov dword [eax], 0x385
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001f8c9
mov eax, dword [ebp - 0x426c]
xor edi, edi
push dword [ebp - 0x427c]
mov dword [eax], 0x386
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001f8c9
lea ecx, [ebp - 0x426c]
call dword [sym.imp.mfc140.dll_Ordinal_316]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x426c]
push str.WriteFile_Error_:__d_r_n
push eax
call dword [sym.imp.mfc140.dll_Ordinal_4807]
add esp, 0xc
lea ecx, [ebp - 0x426c]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x426c]
xor edi, edi
call dword [sym.imp.mfc140.dll_Ordinal_1044]
push dword [ebp - 0x427c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001f8c9
push dword [ebp - 0x427c]
mov edi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001f8c9
push dword [ebp - 0x427c]
mov edi, dword [ebp - 0x4274]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001f8c9
mov edi, dword [ebp - 0x4274]
jmp 0x1001f8c9
mov edi, dword [ebp - 0x4274]
jmp 0x1001f8cf
xor edi, edi
lea ecx, [ebp - 0x42ac]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100337f6
mov esp, ebp
pop ebp
ret