Function at 0x1000e8e0
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 [0x1005f080]
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 0x1000e952
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 0x1000e962
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 0x1000eaca
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 0x1000e9a2
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 0x1000eaca
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 0x1000e9cd
mov ebx, 0xfffffffc
jmp 0x1000eaca
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1000eab5
mov ebx, dword [ebp + 0x38]
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1000eab2
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1000eb42
xor eax, eax
add ecx, 1
setb al
neg eax
or eax, ecx
push eax
call fcn.1002f0d6
mov edi, eax
add esp, 4
test edi, edi
je 0x1000eab2
mov ecx, dword [ebp - 0x10]
inc ecx
push ecx
push 0
push edi
call fcn.1002b0c0
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 0x1000eaa9
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x1000ea8e
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x1000ea5d
call fcn.1002edc8
mov dword [eax], 0x16
jmp 0x1000ea89
cmp ebx, esi
jb 0x1000ea6e
push esi
push edi
push eax
call fcn.1002ab30
add esp, 0xc
jmp 0x1000ea8e
push ebx
push 0
push eax
call fcn.1002b0c0
add esp, 0xc
cmp ebx, esi
jae 0x1000ea8e
call fcn.1002edc8
mov dword [eax], 0x22
call fcn.1002e24f
push edi
call fcn.1002f0bb
add esp, 4
cmp dword [ebp - 0x10], 0
jbe 0x1000eb42
mov esi, dword [ebp - 0x18]
jmp 0x1000e9e1
push edi
call fcn.1002f0bb
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 0x1000eb00
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000eaf6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000eb66
push ecx
push edx
call fcn.100292bf
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 0x1000eb53
mov edx, dword [ebp + 0x20]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000eb49
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000eb66
jmp 0x1000eb49
xor ebx, ebx
jmp 0x1000eab5
push ecx
push edx
call fcn.100292bf
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002928e
mov esp, ebp
pop ebp
ret
call fcn.1002e25f
int3