Function at 0x4120b0
Capabilities:
Connect to http server
Create http request
Reference http user-agent string

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46be0b
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1918
call fcn.004391d0
mov eax, dword [0x48f244]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x191c], ecx
mov edi, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x1924], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0xf
mov byte [ebp - 0x244], 0
mov dword [ebp - 0x224], 0
lea ecx, [ebp - 0x1918]
mov byte [ebp - 4], 1
call fcn.00411c10
lea eax, [ebp - 0x1918]
push eax
push esi
call fcn.00413680
test al, al
jne 0x412194
movups xmm0, xmmword [ebp - 0x244]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x234]
movq qword [edi + 0x10], xmm0
mov dword [edi + 0x18], 0
jmp 0x41236d
push 0
push 0
push 0
push 0
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_122.0.0.0_Safari_537.36_Edg_122.0.0.0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x1924], eax
test eax, eax
je 0x412339
push 0
push 0
push 3
lea ecx, [ebp - 0x15d8]
push ecx
lea ecx, [ebp - 0x16d8]
push ecx
push dword [ebp - 0x270]
lea ecx, [ebp - 0x18d8]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x1928], eax
test eax, eax
je 0x41232d
cmp dword [ebp - 0x27c], 4
mov edx, 0x80ccb300
push 0
mov ecx, 0x804c8200
cmove ecx, edx
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0x14d8]
push ecx
push 0x483848
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
mov dword [ebp - 0x1920], esi
test esi, esi
je 0x41231f
cmp dword [ebx + 0x24], 8
lea ecx, [ebx + 0x10]
cmovae ecx, dword [ebx + 0x10]
sub esp, 8
push dword [ebx + 0x20]
push ecx
push esi
call fcn.004135b0
test al, al
je 0x412314
push 0
lea eax, [ebp - 0x228]
mov dword [ebp - 0x224], 0
push eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x228], 4
push eax
push 0x20000013
push esi
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
call esi
mov eax, dword [ebp - 0x224]
push 0x208
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00444b80
add esp, 0xc
mov dword [ebp - 0x228], 0x208
lea eax, [ebp - 0x228]
push 0
push eax
lea eax, [ebp - 0x220]
push eax
push 5
push dword [ebp - 0x1920]
call esi
test eax, eax
jne 0x4122d2
mov ecx, dword [ebp - 0x191c]
mov byte [ecx + 0x2a], al
jmp 0x4122f5
mov eax, dword [ebp - 0x191c]
push 0xa
push 0
mov byte [eax + 0x2a], 1
lea eax, [ebp - 0x220]
push eax
call fcn.00454395
mov ecx, dword [ebp - 0x191c]
add esp, 0xc
mov esi, dword [ebp - 0x1920]
lea eax, [ebp - 0x244]
push eax
push esi
call fcn.00413300
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x224], eax
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x412325
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x1928]
call esi
push dword [ebp - 0x1924]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
movups xmm0, xmmword [ebp - 0x244]
mov eax, dword [ebp - 0x224]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x234]
movq qword [edi + 0x10], xmm0
mov dword [edi + 0x18], eax
lea ecx, [ebx + 0x10]
call fcn.004054a0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004390b1
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x20