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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0551
mov eax, dword fs:[0]
push eax
mov eax, 0x29b0
call fcn.00477760
mov eax, dword [0x4c8748]
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 esi, dword [ebp + 8]
xor edi, edi
mov ebx, dword [ebp + 0xc]
push str.https
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
mov dword [ebx + 0x10], 0
mov ecx, 1
mov eax, ebx
cmovne edi, ecx
cmp dword [ebx + 0x14], 0x10
jb 0x464651
mov eax, dword [ebx]
mov byte [eax], 0
test esi, esi
je 0x464cc7
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x464661
sub ecx, edx
cmp ecx, 5
jb 0x464cc7
push 0x100
xorps xmm0, xmm0
mov dword [ebp - 0x297c], 0
lea eax, [ebp - 0x110]
movlpd qword [ebp - 0x2970], xmm0
push 0
push eax
movlpd qword [ebp - 0x2968], xmm0
mov dword [ebp - 0x2960], 0
mov dword [ebp - 0x2988], 0x3c
call fcn.00478960
lea eax, [ebp - 0x110]
mov dword [ebp - 0x2980], 0x80
push 0x800
mov dword [ebp - 0x2984], eax
lea eax, [ebp - 0x1914]
push 0
push eax
call fcn.00478960
lea eax, [ebp - 0x1914]
mov dword [ebp - 0x2974], 0x400
push 0x800
mov dword [ebp - 0x2978], eax
lea eax, [ebp - 0x2114]
push 0
push eax
call fcn.00478960
lea eax, [ebp - 0x2114]
mov dword [ebp - 0x2958], 0x400
push 0x800
mov dword [ebp - 0x295c], eax
lea eax, [ebp - 0x2914]
push 0
push eax
call fcn.00478960
mov ecx, esi
mov dword [ebp - 0x2950], 0x400
lea eax, [ebp - 0x2914]
mov dword [ebp - 0x29ac], 0
add esp, 0x30
mov dword [ebp - 0x2954], eax
mov dword [ebp - 0x29a8], 0xf
mov byte [ebp - 0x29bc], 0
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x464770
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x29bc]
call fcn.00404010
push 0
lea eax, [ebp - 0x29bc]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x294c]
push eax
call fcn.004640a0
add esp, 0xc
mov edx, dword [ebp - 0x29a8]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x4647e3
mov ecx, dword [ebp - 0x29bc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4647d9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x464ce6
push edx
push ecx
call fcn.00476d79
add esp, 8
cmp dword [ebp - 0x2938], 8
lea ecx, [ebp - 0x2988]
push ecx
push SysReAllocString
push dword [ebp - 0x293c]
lea eax, [ebp - 0x294c]
mov dword [ebp - 0x29ac], 0
cmovae eax, dword [ebp - 0x294c]
push eax
mov dword [ebp - 0x29a8], 0xf
mov byte [ebp - 0x29bc], 0
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x46483f
lea ecx, [ebp - 0x294c]
call fcn.00401cf0
jmp 0x464cc7
push 0
push 0
push 0
push 1
push str.Mozilla_5.0__compatible__MSIE_9.0__Windows_NT_10__WOW64_
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
mov dword [ebp - 0x29a4], esi
test esi, esi
je 0x46482f
push 0x2710
push 0x2710
push 0x2710
push 0x2710
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push 0
push dword [ebp - 0x2970]
push dword [ebp - 0x2978]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x29a0], eax
test eax, eax
jne 0x4648ae
lea ecx, [ebp - 0x294c]
call fcn.00401cf0
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x464cc4
mov edx, dword [ebp - 0x295c]
mov ecx, edx
shl edi, 0x17
xor eax, eax
mov dword [ebp - 0x2924], 0
mov dword [ebp - 0x2920], 7
mov word [ebp - 0x2934], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4648e0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2934]
call fcn.00404110
mov edx, dword [ebp - 0x2954]
mov ecx, edx
mov byte [ebp - 4], 3
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x464910
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2934]
call fcn.0040f070
cmp dword [ebp - 0x2920], 8
lea eax, [ebp - 0x2934]
push edi
cmovae eax, dword [ebp - 0x2934]
push 0
push 0
push 0
push eax
push 0x4adb3c
push dword [ebp - 0x29a0]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0x299c], esi
test esi, esi
jne 0x464986
lea ecx, [ebp - 0x2934]
call fcn.00401cf0
lea ecx, [ebp - 0x294c]
call fcn.00401cf0
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x464cb6
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x4649b8
lea ecx, [ebp - 0x2934]
call fcn.00401cf0
lea ecx, [ebp - 0x294c]
call fcn.00401cf0
jmp 0x464cad
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x46499d
mov dword [ebp - 0x2918], 0
nop
push 0x1001
lea eax, [ebp - 0x1114]
push 0
push eax
call fcn.00478960
add esp, 0xc
lea eax, [ebp - 0x2918]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x464bf7
cmp dword [ebp - 0x2918], 0
je 0x464bf7
lea eax, [ebp - 0x291c]
mov dword [ebp - 0x291c], 0
push eax
push 0x1000
lea eax, [ebp - 0x1114]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x464bf7
mov ecx, dword [ebx + 0x14]
mov eax, ecx
mov edx, dword [ebx + 0x10]
sub eax, edx
mov edi, dword [ebp - 0x291c]
mov dword [ebp - 0x2990], edi
mov dword [ebp - 0x298c], edx
mov dword [ebp - 0x2998], ecx
cmp edi, eax
ja 0x464a87
lea eax, [edi + edx]
mov dword [ebx + 0x10], eax
mov eax, ebx
cmp ecx, 0x10
jb 0x464a6a
mov eax, dword [ebx]
lea esi, [eax + edx]
push edi
lea eax, [ebp - 0x1114]
push eax
push esi
call fcn.004790b0
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x464be4
mov eax, SysReAllocString
sub eax, edx
cmp eax, edi
jb 0x464cf0
lea eax, [edx + edi]
mov esi, eax
mov dword [ebp - 0x2994], eax
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x464ab3
mov esi, SysReAllocString
jmp 0x464ad1
mov edi, ecx
mov eax, SysReAllocString
shr edi, 1
sub eax, edi
cmp ecx, eax
jbe 0x464ac9
mov esi, SysReAllocString
jmp 0x464ad1
lea eax, [ecx + edi]
cmp esi, eax
cmovb esi, eax
xor ecx, ecx
mov eax, esi
add eax, 1
setb cl
neg ecx
or ecx, eax
cmp ecx, 0x1000
jb 0x464b16
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.00477045
add esp, 4
test eax, eax
je 0x464ce6
mov edx, dword [ebp - 0x298c]
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x464b2f
test ecx, ecx
je 0x464b2d
push ecx
call fcn.00477045
mov edx, dword [ebp - 0x298c]
add esp, 4
mov edi, eax
jmp 0x464b2f
xor edi, edi
cmp dword [ebp - 0x2998], 0x10
mov eax, dword [ebp - 0x2994]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], esi
push edx
jb 0x464bb3
mov eax, dword [ebx]
push eax
push edi
mov dword [ebp - 0x2994], eax
call fcn.00478b30
push dword [ebp - 0x2990]
mov esi, dword [ebp - 0x298c]
lea eax, [ebp - 0x1114]
push eax
add esi, edi
push esi
call fcn.00478b30
mov eax, dword [ebp - 0x2990]
add esp, 0x18
mov ecx, dword [ebp - 0x2998]
inc ecx
mov byte [esi + eax], 0
mov eax, dword [ebp - 0x2994]
cmp ecx, 0x1000
jb 0x464ba7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x464ce6
mov eax, edx
push ecx
push eax
call fcn.00476d79
add esp, 8
jmp 0x464be2
push ebx
push edi
call fcn.00478b30
push dword [ebp - 0x2990]
mov esi, dword [ebp - 0x298c]
lea eax, [ebp - 0x1114]
push eax
add esi, edi
push esi
call fcn.00478b30
mov eax, dword [ebp - 0x2990]
add esp, 0x18
mov byte [esi + eax], 0
mov dword [ebx], edi
cmp dword [ebp - 0x2918], 0
mov esi, dword [ebp - 0x299c]
ja 0x4649d0
mov edx, dword [ebp - 0x2920]
cmp edx, 8
jb 0x464c37
mov ecx, dword [ebp - 0x2934]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x464c2d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x464ceb
push edx
push ecx
call fcn.00476d79
add esp, 8
mov edx, dword [ebp - 0x2938]
xor eax, eax
mov dword [ebp - 0x2924], 0
mov dword [ebp - 0x2920], 7
mov word [ebp - 0x2934], ax
cmp edx, 8
jb 0x464c90
mov ecx, dword [ebp - 0x294c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x464c86
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x464cf5
push edx
push ecx
call fcn.00476d79
add esp, 8
xor eax, eax
mov dword [ebp - 0x293c], 0
mov dword [ebp - 0x2938], 7
mov word [ebp - 0x294c], ax
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push esi
call edi
push dword [ebp - 0x29a0]
call edi
mov esi, dword [ebp - 0x29a4]
push esi
call edi
mov eax, dword [ebx + 0x10]
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.0047702f
mov esp, ebp
pop ebp
ret
call fcn.0047c5ae
call fcn.0047c5ae
call fcn.00403f10
call fcn.0047c5ae
int3