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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5670c1
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.005219d0
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 0x47f45e
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.005219d0
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 0x47efd1
call fcn.0042fb30
mov dword [ebp - 0x2b8], eax
jmp 0x47efe0
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 0x47effc
call fcn.0042fb30
cmp dword [ebp - 0x2b8], 0
jl 0x47f43f
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 0x47f051
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 0x47f07e
call fcn.0042fb30
mov ebx, eax
jmp 0x47f085
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0x14], esi
mov edx, dword [ebp - 0x2a0]
cmp edx, 8
jb 0x47f0c5
mov ecx, dword [ebp - 0x2b4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47f0bb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47f47e
push edx
push ecx
call fcn.00497cc1
add esp, 8
test ebx, ebx
js 0x47f43f
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 0x47f12d
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 0x47f172
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 0x47f1d2
mov ecx, dword [ebp - 0x2d4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47f1c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47f483
push edx
push ecx
call fcn.00497cc1
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 0x47f233
mov ecx, dword [ebp - 0x2b4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47f229
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47f488
push edx
push ecx
call fcn.00497cc1
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 0x47f406
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 0x47f2ca
call fcn.0042fb30
push 0
push 0
lea ecx, [ebp - 0x260]
call fcn.0042db40
test eax, eax
js 0x47f3cc
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 0x47f33e
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47f334
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47f48d
push edx
push ecx
call fcn.00497cc1
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 0x47f38c
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47f382
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47f492
push edx
push ecx
call fcn.00497cc1
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 0x47f3bb
push eax
call esi
test edi, edi
je 0x47f3c2
push edi
call esi
mov eax, 1
jmp 0x47f460
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x47f406
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47f3fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47f497
push edx
push ecx
call fcn.00497cc1
add esp, 8
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x47f43c
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47f432
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47f49c
push edx
push ecx
call fcn.00497cc1
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 0x47f457
push esi
call ebx
test edi, edi
je 0x47f45e
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.00497cb0
mov esp, ebp
pop ebp
ret 8
call fcn.00524999
call fcn.00524999
call fcn.00524999
call fcn.00524999
call fcn.00524999
call fcn.00524999
call fcn.00524999
int3