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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10060058]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
movzx eax, cx
mov ebx, edx
movzx edi, cx
mov edx, 0x1bb
xor ecx, ecx
mov esi, 0x800000
push ecx
push ecx
push ecx
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 0x1000dd6e
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push edi
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ecx, eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
jne 0x1000dd7e
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 0x1000dedf
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
push esi
cmovae eax, dword [ebp + 0x20]
push 0
push 0
push 0
push eax
push 0
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
test edi, edi
jne 0x1000ddbd
push dword [ebp - 0x14]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0x18]
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1000dedf
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp eax, 1
je 0x1000dde8
mov ebx, 0xfffffffc
jmp 0x1000dedf
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1000dec9
nop dword [eax]
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1000dec9
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1000debc
xor eax, eax
add ecx, 1
setb al
neg eax
or eax, ecx
push eax
call fcn.1002c880
mov esi, eax
add esp, 4
test esi, esi
je 0x1000dec9
mov ecx, dword [ebp - 0x10]
inc ecx
push ecx
push 0
push esi
call fcn.100291d0
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
cmp eax, 1
jne 0x1000dec0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000dea9
test ebx, ebx
jne 0x1000de79
call fcn.1002c5af
mov dword [eax], 0x16
jmp 0x1000dea4
mov ecx, dword [ebp + 0x38]
cmp ecx, eax
jb 0x1000de8d
push eax
push esi
push ebx
call fcn.10028c40
add esp, 0xc
jmp 0x1000dea9
push ecx
push 0
push ebx
call fcn.100291d0
add esp, 0xc
call fcn.1002c5af
mov dword [eax], 0x22
call fcn.1002ba8f
push esi
call fcn.1002c865
add esp, 4
cmp dword [ebp - 0x10], 0
ja 0x1000de00
xor ebx, ebx
jmp 0x1000decc
push esi
call fcn.1002c865
add esp, 4
or ebx, 0xffffffff
push dword [ebp - 0x14]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0x18]
call esi
push edi
call esi
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x1000df15
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000df0b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000df72
push edx
push ecx
call fcn.1002739f
add esp, 8
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp edx, 8
jb 0x1000df5f
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000df55
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000df72
push edx
push ecx
call fcn.1002739f
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002736e
mov esp, ebp
pop ebp
ret
call fcn.1002ba9f
int3