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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x600ae8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
test edi, edi
jne 0x5b0ee9
xor eax, eax
jmp 0x5b1207
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x44]
movq qword [ebp - 0x44], xmm0
call fcn.005dc5e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
movq qword [ebp - 0x38], xmm0
call fcn.005dc5e0
xorps xmm0, xmm0
mov dword [ebp - 0x54], 0
lea ecx, [ebp - 0x5c]
movq qword [ebp - 0x5c], xmm0
call fcn.005dc5e0
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x50]
movq qword [ebp - 0x50], xmm0
call fcn.005dc5e0
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x2c]
movq qword [ebp - 0x2c], xmm0
call fcn.005dc5e0
push ecx
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 4
mov ecx, dword [edi]
lea edx, [ebp - 0x44]
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x70], 0
push eax
call fcn.005b2d90
movzx esi, al
test al, al
jne 0x5b0f8f
xor esi, esi
jmp 0x5b11dd
push 0
push 0
mov edx, 0x1bb
mov dword [ebp - 0x20], 0
cmp word [ebp - 0x70], dx
mov ecx, 0x800100
push 0
mov eax, 0x100
push 0
cmove eax, ecx
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_124.0.0.0_Safari_537.36
mov dword [ebp - 0x74], eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push eax
lea ecx, [ebp - 0x20]
call fcn.005b0490
mov byte [ebp - 4], 5
call fcn.005b0420
mov ebx, eax
test ebx, ebx
je 0x5b11d5
push 0xea60
push 0xdbba0
push 0x2710
push 0x1388
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push 0
push dword [ebp - 0x70]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x1c], 0
call fcn.005dc190
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
push eax
lea ecx, [ebp - 0x1c]
call fcn.005b0490
mov byte [ebp - 4], 6
call fcn.005b0420
mov ebx, eax
test ebx, ebx
je 0x5b11cd
push dword [ebp - 0x74]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], 0
push 0
push 0
push 0
call fcn.005dc190
push eax
push str.POST
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
push eax
lea ecx, [ebp - 0x18]
call fcn.005b0490
mov byte [ebp - 4], 7
call fcn.005b0420
mov ebx, eax
test ebx, ebx
je 0x5b11c5
push 0
push dword [edi + 0x14]
push dword [edi + 0x10]
push dword [edi + 0xc]
push dword [edi + 8]
push dword [edi + 4]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov esi, eax
test esi, esi
je 0x5b11c5
push 0
push ebx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x70], 0xffff
mov dword [ebp - 0x60], 0x80
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x5b11c5
mov edx, dword [edi]
lea eax, [ebp - 0x2c]
push eax
mov ecx, ebx
call fcn.005b1230
test al, al
je 0x5b10ef
inc byte [edi + 0x1c]
cmp byte [edi + 0x1c], 2
ja 0x5b11c5
lea ecx, [ebp - 0x2c]
call fcn.005dc190
push edi
mov dword [edi], eax
call fcn.005b0eb0
mov esi, eax
jmp 0x5b11c5
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x5b11c5
call fcn.005dc400
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x5b11c5
cmp dword [ebp - 0x14], 0
je 0x5b11c5
xorps xmm0, xmm0
mov dword [ebp - 0x64], 0
push 0x10000
movq qword [ebp - 0x6c], xmm0
call fcn.0041e7cf
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x6c], 0x10000
mov dword [ebp - 0x68], 0x10000
push 0x10000
push 0
push eax
mov byte [ebp - 4], 8
call fcn.00420090
mov ecx, dword [ebp - 0x64]
add esp, 0x10
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x74], ecx
cmp dword [ebp - 0x70], eax
jb 0x5b11ad
lea edx, [ebp - 0x60]
mov dword [ebp - 0x60], 0
push edx
push eax
push ecx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x5b11ad
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x5b11ad
sub dword [ebp - 0x70], eax
add dword [ebp - 0x74], eax
lea eax, [ebp - 0x14]
push eax
push ebx
mov dword [ebp - 0x14], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x5b11ad
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x74]
test eax, eax
jne 0x5b1163
mov ebx, dword [ebp - 0x64]
push ecx
mov ecx, dword [edi + 0x18]
push 0
push ebx
call fcn.005d9e30
push ebx
call fcn.0041e1c3
add esp, 4
lea ecx, [ebp - 0x18]
call fcn.005b0480
lea ecx, [ebp - 0x1c]
call fcn.005b0480
lea ecx, [ebp - 0x20]
call fcn.005b0480
lea ecx, [ebp - 0x2c]
call fcn.005dc430
lea ecx, [ebp - 0x50]
call fcn.005dc430
lea ecx, [ebp - 0x5c]
call fcn.005dc430
lea ecx, [ebp - 0x38]
call fcn.005dc430
lea ecx, [ebp - 0x44]
call fcn.005dc430
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 4