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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5671c1
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x5b0514]
xor eax, ebp
mov dword [ebp - 0x14], 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 + 8]
lea ecx, [ebp - 0x2a0]
push ecx
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x29c], 0
push 0
push eax
movlpd qword [ebp - 0x294], xmm0
movlpd qword [ebp - 0x288], xmm0
movlpd qword [ebp - 0x280], xmm0
movlpd qword [ebp - 0x278], xmm0
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x2a0], 0x3c
mov dword [ebp - 0x298], 0xffffffff
mov dword [ebp - 0x28c], 0xffffffff
mov dword [ebp - 0x270], 0xffffffff
mov dword [ebp - 0x268], 0xffffffff
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x47fba3
xorps xmm0, xmm0
xor edi, edi
movlpd qword [ebp - 0x24], xmm0
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], vtable.CSession.0
mov dword [ebp - 4], edi
xor esi, esi
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], vtable.CConnection.0
push 0x210
lea eax, [ebp - 0x264]
push esi
push eax
call fcn.00521a60
add esp, 0xc
lea ecx, [ebp - 0x264]
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 0x47f6ac
call fcn.0042fb30
mov dword [ebp - 0x2a4], eax
jmp 0x47f6bb
mov edi, eax
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x20], 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 0x47f6d7
call fcn.0042fb30
cmp dword [ebp - 0x2a4], 0
jl 0x47fb84
mov ecx, dword [ebp - 0x290]
mov edx, 7
mov eax, dword [ebp - 0x28c]
mov dword [ebp - 0x2ac], 0
mov dword [ebp - 0x2a8], edx
lea eax, [ecx + eax*2]
xor ecx, ecx
mov word [ebp - 0x2bc], cx
mov ecx, dword [ebp - 0x290]
cmp ecx, eax
je 0x47f732
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x2bc]
call fcn.00410900
mov edx, dword [ebp - 0x2a8]
push 0
push dword [ebp - 0x288]
cmp edx, 8
lea eax, [ebp - 0x2bc]
cmovae eax, dword [ebp - 0x2bc]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
test eax, eax
jne 0x47f763
call fcn.0042fb30
mov dword [ebp - 0x2a4], eax
jmp 0x47f772
mov esi, eax
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x18], esi
mov edx, dword [ebp - 0x2a8]
cmp edx, 8
jb 0x47f7b2
mov ecx, dword [ebp - 0x2bc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47f7a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47fbc3
push edx
push ecx
call fcn.00497d51
add esp, 8
cmp dword [ebp - 0x2a4], 0
jl 0x47fb84
mov ecx, dword [ebx + 0x30]
xorps xmm0, xmm0
mov dword [ebp - 0x1a0], 1
movlpd qword [ebp - 0x1ac], xmm0
mov dword [ebp - 0x1a4], 0
test ecx, ecx
je 0x47f811
lea eax, [ebx + 0x20]
mov dword [ebp - 0x1a0], 0
lea edx, [ebp - 0x124]
cmp edx, eax
je 0x47f811
cmp dword [eax + 0x14], 8
jb 0x47f804
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x124]
call fcn.00410900
mov ecx, dword [ebp - 0x26c]
xor edx, edx
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x2ac], 0
mov dword [ebp - 0x2a8], 7
mov word [ebp - 0x2bc], dx
lea eax, [ecx + eax*2]
cmp ecx, eax
je 0x47f852
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x2bc]
call fcn.00410900
mov byte [ebp - 4], 3
xor edx, edx
mov ecx, dword [ebp - 0x274]
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x2c4], 0
mov dword [ebp - 0x2c0], 7
mov word [ebp - 0x2d4], dx
lea eax, [ecx + eax*2]
cmp ecx, eax
je 0x47f897
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x2d4]
call fcn.00410900
lea eax, [ebp - 0x2bc]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp - 0x2d4]
lea ecx, [ebp - 0x54]
call fcn.0042c710
add esp, 4
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x2c0]
cmp edx, 8
jb 0x47f8f7
mov ecx, dword [ebp - 0x2d4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47f8ed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47fbc8
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 - 0x2a8]
cmp edx, 8
jb 0x47f958
mov ecx, dword [ebp - 0x2bc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47f94e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47fbcd
push edx
push ecx
call fcn.00497d51
add esp, 8
xor eax, eax
mov dword [ebp - 0x2ac], 0
cmp dword [ebp - 0x40], 8
lea ecx, [ebp - 0x54]
mov word [ebp - 0x2bc], ax
mov edx, 0x800000
cmovae ecx, dword [ebp - 0x54]
sub esp, 8
cmp dword [ebp - 0x294], 2
mov dword [ebp - 0x2a8], 7
cmove eax, edx
push eax
push 0
sub esp, 8
lea eax, [ebp - 0x1c]
push 0x58db98
push ecx
push eax
lea ecx, [ebp - 0x264]
call fcn.0042e090
test eax, eax
js 0x47fb4b
push 0x595118
lea ecx, [ebp - 0x3c]
call fcn.00410a60
mov byte [ebp - 4], 8
lea eax, [ebp - 0x3c]
cmp dword [ebp - 0x28], 8
push 0x1000000
push dword [ebp - 0x2c]
cmovae eax, dword [ebp - 0x3c]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x47f9ef
call fcn.0042fb30
push 0
push 0
lea ecx, [ebp - 0x264]
call fcn.0042db40
test eax, eax
js 0x47fb11
cmp dword [ebp - 0x170], 8
lea edx, [ebp - 0x184]
mov eax, dword [ebp - 0x94]
cmovae edx, dword [ebp - 0x184]
mov ecx, edx
mov dword [ebx], eax
mov eax, dword [ebp - 0x90]
mov dword [ebx + 4], eax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47fa30
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 8]
call fcn.00410900
mov edx, dword [ebp - 0x28]
cmp edx, 8
jb 0x47fa83
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47fa79
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47fbd2
push edx
push ecx
call fcn.00497d51
add esp, 8
mov edx, dword [ebp - 0x40]
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
cmp edx, 8
jb 0x47fad1
mov ecx, dword [ebp - 0x54]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47fac7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47fbd7
push edx
push ecx
call fcn.00497d51
add esp, 8
xor eax, eax
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x40], 7
mov word [ebp - 0x54], ax
call fcn.0042e630
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x47fb00
push eax
call esi
test edi, edi
je 0x47fb07
push edi
call esi
mov eax, 1
jmp 0x47fba5
mov edx, dword [ebp - 0x28]
cmp edx, 8
jb 0x47fb4b
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47fb41
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47fbdc
push edx
push ecx
call fcn.00497d51
add esp, 8
mov edx, dword [ebp - 0x40]
cmp edx, 8
jb 0x47fb81
mov ecx, dword [ebp - 0x54]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47fb77
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47fbe1
push edx
push ecx
call fcn.00497d51
add esp, 8
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x264]
call fcn.0042e630
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test esi, esi
je 0x47fb9c
push esi
call ebx
test edi, edi
je 0x47fba3
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 - 0x14]
xor ecx, ebp
call fcn.00497d40
mov esp, ebp
pop ebp
ret 4
call fcn.00524a29
call fcn.00524a29
call fcn.00524a29
call fcn.00524a29
call fcn.00524a29
call fcn.00524a29
call fcn.00524a29
int3