Function at 0x1000de10
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 0x1000de82
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 0x1000de92
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 0x1000dff7
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 0x1000ded2
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 0x1000dff7
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 0x1000defd
mov ebx, 0xfffffffc
jmp 0x1000dff7
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1000dfe2
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 0x1000dfdf
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000e06f
add eax, 1
cmovb eax, edi
push eax
call fcn.1002e590
mov edi, eax
add esp, 4
test edi, edi
je 0x1000dfdf
mov ecx, dword [ebp - 0x10]
inc ecx
push ecx
push 0
push edi
call fcn.1002a4b0
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 0x1000dfd6
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x1000dfbb
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x1000df8a
call fcn.1002e285
mov dword [eax], 0x16
jmp 0x1000dfb6
cmp ebx, esi
jb 0x1000df9b
push esi
push edi
push eax
call fcn.10029f20
add esp, 0xc
jmp 0x1000dfbb
push ebx
push 0
push eax
call fcn.1002a4b0
add esp, 0xc
cmp ebx, esi
jae 0x1000dfbb
call fcn.1002e285
mov dword [eax], 0x22
call fcn.1002d64f
push edi
call fcn.1002e580
add esp, 4
cmp dword [ebp - 0x10], 0
jbe 0x1000e06f
mov esi, dword [ebp - 0x18]
jmp 0x1000df11
push edi
call fcn.1002e580
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 0x1000e02d
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000e023
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000e093
push ecx
push edx
call fcn.10028555
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 0x1000e080
mov edx, dword [ebp + 0x20]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000e076
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000e093
jmp 0x1000e076
xor ebx, ebx
jmp 0x1000dfe2
push ecx
push edx
call fcn.10028555
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10028524
mov esp, ebp
pop ebp
ret
call fcn.1002d65f
int3