Function at 0x47ef50
Capabilities:
Initialize winhttp library
Reference http user-agent string
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567151
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x5b0514]
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 ebx, ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0x3c
mov dword [ebp - 0x2bc], eax
lea eax, [ebp - 0x29c]
push 0
push eax
call fcn.00521a60
add esp, 0xc
mov dword [ebp - 0x29c], 0x3c
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x294], 0xffffffff
mov dword [ebp - 0x288], 0xffffffff
mov dword [ebp - 0x26c], 0xffffffff
push eax
push 0
push 0
push esi
mov dword [ebp - 0x264], 0xffffffff
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x47f4ee
xorps xmm0, xmm0
xor edi, edi
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], vtable.CSession.0
mov dword [ebp - 4], edi
xor esi, esi
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], vtable.CConnection.0
push 0x210
lea eax, [ebp - 0x260]
push esi
push eax
call fcn.00521a60
add esp, 0xc
lea ecx, [ebp - 0x260]
call fcn.0042fc60
mov dword [ebp - method.CAsyncDownloader.virtual_0], 0x58dc60
push esi
push esi
push esi
push esi
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_67.0.3396.99_Safari_537.36
mov byte [ebp - 4], 2
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
test eax, eax
jne 0x47f061
call fcn.0042fb30
mov dword [ebp - 0x2b8], eax
jmp 0x47f070
mov edi, eax
mov dword [ebp - 0x2b8], 0
mov dword [ebp - 0x1c], edi
push dword [ebx + 0x44]
push dword [ebx + 0x40]
push dword [ebx + 0x3c]
push dword [ebx + 0x38]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x47f08c
call fcn.0042fb30
cmp dword [ebp - 0x2b8], 0
jl 0x47f4cf
mov ecx, dword [ebp - 0x28c]
xor ebx, ebx
mov eax, dword [ebp - 0x288]
mov edx, 7
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x2a0], edx
mov word [ebp - 0x2b4], bx
lea eax, [ecx + eax*2]
cmp ecx, eax
je 0x47f0e1
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x2b4]
call fcn.00410900
mov edx, dword [ebp - 0x2a0]
push 0
push dword [ebp - 0x284]
cmp edx, 8
lea eax, [ebp - 0x2b4]
cmovae eax, dword [ebp - 0x2b4]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
test eax, eax
jne 0x47f10e
call fcn.0042fb30
mov ebx, eax
jmp 0x47f115
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0x14], esi
mov edx, dword [ebp - 0x2a0]
cmp edx, 8
jb 0x47f155
mov ecx, dword [ebp - 0x2b4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47f14b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47f50e
push edx
push ecx
call fcn.00497d51
add esp, 8
test ebx, ebx
js 0x47f4cf
mov ecx, dword [ebp - 0x268]
xor edx, edx
mov eax, dword [ebp - 0x264]
xorps xmm0, xmm0
mov dword [ebp - 0x19c], 0
movlpd qword [ebp - 0x1a8], xmm0
mov dword [ebp - 0x1a0], 0
lea eax, [ecx + eax*2]
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x2a0], 7
mov word [ebp - 0x2b4], dx
cmp ecx, eax
je 0x47f1bd
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x2b4]
call fcn.00410900
mov byte [ebp - 4], 3
xor edx, edx
mov ecx, dword [ebp - 0x270]
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x2c4], 0
mov dword [ebp - 0x2c0], 7
mov word [ebp - 0x2d4], dx
lea eax, [ecx + eax*2]
cmp ecx, eax
je 0x47f202
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x2d4]
call fcn.00410900
lea eax, [ebp - 0x2b4]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp - 0x2d4]
lea ecx, [ebp - 0x50]
call fcn.0042c710
add esp, 4
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x2c0]
cmp edx, 8
jb 0x47f262
mov ecx, dword [ebp - 0x2d4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47f258
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47f513
push edx
push ecx
call fcn.00497d51
add esp, 8
xor eax, eax
mov dword [ebp - 0x2c4], 0
mov dword [ebp - 0x2c0], 7
mov word [ebp - 0x2d4], ax
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x2a0]
cmp edx, 8
jb 0x47f2c3
mov ecx, dword [ebp - 0x2b4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47f2b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47f518
push edx
push ecx
call fcn.00497d51
add esp, 8
xor eax, eax
mov dword [ebp - 0x2a4], 0
cmp dword [ebp - 0x3c], 8
lea ecx, [ebp - 0x50]
mov word [ebp - 0x2b4], ax
mov edx, 0x800000
cmovae ecx, dword [ebp - 0x50]
sub esp, 8
cmp dword [ebp - 0x290], 2
mov dword [ebp - 0x2a0], 7
cmove eax, edx
push eax
push 0
sub esp, 8
lea eax, [ebp - 0x18]
push 0x58db98
push ecx
push eax
lea ecx, [ebp - 0x260]
call fcn.0042e090
test eax, eax
js 0x47f496
push 0x595118
lea ecx, [ebp - 0x38]
call fcn.00410a60
mov byte [ebp - 4], 8
lea eax, [ebp - 0x38]
cmp dword [ebp - 0x24], 8
push 0x1000000
push dword [ebp - 0x28]
cmovae eax, dword [ebp - 0x38]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x47f35a
call fcn.0042fb30
push 0
push 0
lea ecx, [ebp - 0x260]
call fcn.0042db40
test eax, eax
js 0x47f45c
push dword [ebp - 0x2bc]
mov ecx, dword [ebp - 0x2bc]
push dword [ebp - 0x104]
push dword [ebp - 0x108]
mov eax, dword [ecx]
push eax
mov dword [ecx + 4], eax
call fcn.004077f0
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x47f3ce
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47f3c4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47f51d
push edx
push ecx
call fcn.00497d51
add esp, 8
mov edx, dword [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
cmp edx, 8
jb 0x47f41c
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47f412
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47f522
push edx
push ecx
call fcn.00497d51
add esp, 8
xor eax, eax
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.0042e630
mov eax, dword [ebp - 0x14]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x47f44b
push eax
call esi
test edi, edi
je 0x47f452
push edi
call esi
mov eax, 1
jmp 0x47f4f0
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x47f496
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47f48c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47f527
push edx
push ecx
call fcn.00497d51
add esp, 8
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x47f4cc
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47f4c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47f52c
push edx
push ecx
call fcn.00497d51
add esp, 8
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x260]
call fcn.0042e630
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test esi, esi
je 0x47f4e7
push esi
call ebx
test edi, edi
je 0x47f4ee
push edi
call ebx
xor eax, eax
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.00497d40
mov esp, ebp
pop ebp
ret 8
call fcn.00524a29
call fcn.00524a29
call fcn.00524a29
call fcn.00524a29
call fcn.00524a29
call fcn.00524a29
call fcn.00524a29
int3