Function at 0x10010c40
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 [0x10063058]
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 0x10010cae
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 0x10010cbe
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 0x10010e1f
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 0x10010cfd
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 0x10010e1f
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 0x10010d28
mov ebx, 0xfffffffc
jmp 0x10010e1f
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x10010e09
nop dword [eax]
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x10010e09
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10010dfc
xor eax, eax
add ecx, 1
setb al
neg eax
or eax, ecx
push eax
call fcn.1002e3d0
mov esi, eax
add esp, 4
test esi, esi
je 0x10010e09
mov ecx, dword [ebp - 0x10]
inc ecx
push ecx
push 0
push esi
call fcn.1002ad20
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 0x10010e00
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10010de9
test ebx, ebx
jne 0x10010db9
call fcn.1002e0ff
mov dword [eax], 0x16
jmp 0x10010de4
mov ecx, dword [ebp + 0x38]
cmp ecx, eax
jb 0x10010dcd
push eax
push esi
push ebx
call fcn.1002a790
add esp, 0xc
jmp 0x10010de9
push ecx
push 0
push ebx
call fcn.1002ad20
add esp, 0xc
call fcn.1002e0ff
mov dword [eax], 0x22
call fcn.1002d5df
push esi
call fcn.1002e3b5
add esp, 4
cmp dword [ebp - 0x10], 0
ja 0x10010d40
xor ebx, ebx
jmp 0x10010e0c
push esi
call fcn.1002e3b5
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 0x10010e55
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10010e4b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10010eb2
push edx
push ecx
call fcn.10028ef0
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 0x10010e9f
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10010e95
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10010eb2
push edx
push ecx
call fcn.10028ef0
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10028ebf
mov esp, ebp
pop ebp
ret
call fcn.1002d5ef
int3