Function at 0x1000e850
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10060080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
movzx eax, cx
or ebx, 0xffffffff
movzx edi, cx
mov esi, 0x800000
xor ecx, ecx
mov dword [ebp - 0x1c], edx
push ecx
push ecx
push ecx
mov edx, 0x1bb
cmp ax, dx
push 1
push str.Mozilla_5.0__Windows_NT_6.1__Win64__x64__rv:108.0__Gecko_20100101_Firefox_108.0
cmovne esi, ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x1000e8c2
cmp dword [ebp + 0x1c], 7
lea eax, [ebp + 8]
push 0
cmova eax, dword [ebp + 8]
push edi
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
jne 0x1000e8d2
push dword [ebp - 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov ebx, eax
jmp 0x1000ea37
cmp dword [ebp + 0x34], 7
lea eax, [ebp + 0x20]
push esi
cmova eax, dword [ebp + 0x20]
push 0
push 0
push 0
push eax
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x1000e912
push dword [ebp - 0x14]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push edi
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1000ea37
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp eax, 1
je 0x1000e93d
mov ebx, 0xfffffffc
jmp 0x1000ea37
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1000ea22
mov ebx, dword [ebp + 0x38]
lea eax, [ebp - 0x10]
or edi, 0xffffffff
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1000ea1f
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000eaaf
add eax, 1
cmovb eax, edi
push eax
call fcn.1002f270
mov edi, eax
add esp, 4
test edi, edi
je 0x1000ea1f
mov ecx, dword [ebp - 0x10]
inc ecx
push ecx
push 0
push edi
call fcn.1002b190
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
cmp eax, 1
jne 0x1000ea16
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x1000e9fb
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x1000e9ca
call fcn.1002ef65
mov dword [eax], 0x16
jmp 0x1000e9f6
cmp ebx, esi
jb 0x1000e9db
push esi
push edi
push eax
call fcn.1002ac00
add esp, 0xc
jmp 0x1000e9fb
push ebx
push 0
push eax
call fcn.1002b190
add esp, 0xc
cmp ebx, esi
jae 0x1000e9fb
call fcn.1002ef65
mov dword [eax], 0x22
call fcn.1002e32f
push edi
call fcn.1002f260
add esp, 4
cmp dword [ebp - 0x10], 0
jbe 0x1000eaaf
mov esi, dword [ebp - 0x18]
jmp 0x1000e951
push edi
call fcn.1002f260
add esp, 4
or ebx, 0xffffffff
push dword [ebp - 0x14]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x18]
call esi
mov ecx, dword [ebp + 0x1c]
cmp ecx, 7
jbe 0x1000ea6d
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000ea63
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000ead3
push ecx
push edx
call fcn.10029234
add esp, 8
mov ecx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp ecx, 7
jbe 0x1000eac0
mov edx, dword [ebp + 0x20]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000eab6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000ead3
jmp 0x1000eab6
xor ebx, ebx
jmp 0x1000ea22
push ecx
push edx
call fcn.10029234
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10029203
mov esp, ebp
pop ebp
ret
call fcn.1002e33f
int3