Function at 0x497510
Capabilities:
Access peb ldr_data
Hash data using fnv
Initialize winhttp library
Reference http user-agent string
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ffc11
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x672494]
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 dword [ebp - 0x2a8], ecx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x2ac], eax
mov eax, dword fs:[0x30]
mov dword [ebp - 0x29c], 0
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
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
movzx ecx, word [eax + 0x2c]
xor edi, edi
mov esi, dword [eax + 0x30]
and ecx, 0xfffffffe
mov dword [ebp - 0x2a4], eax
mov ebx, 0x811c9dc5
lea edx, [ecx + esi]
inc ecx
shr ecx, 1
cmp esi, edx
cmova ecx, edi
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x49761e
mov eax, ecx
nop dword [eax]
mov dl, byte [esi]
lea ecx, [edx - 0x41]
cmp cl, 0x19
movsx ecx, dl
ja 0x497600
or ecx, 0x20
xor ecx, ebx
inc edi
imul ebx, ecx, 0x1000193
add esi, 2
cmp edi, eax
jne 0x4975f0
mov eax, dword [ebp - 0x2a4]
cmp ebx, 0x91bd45a3
je 0x497622
mov eax, dword [eax]
jmp 0x4975c2
mov esi, dword [eax + 0x18]
mov eax, dword [0x67f408]
mov dword [ebp - 0x2a4], esi
test eax, eax
jne 0x4976dc
test esi, esi
je 0x4976d5
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + esi + 0x78]
mov eax, dword [eax + esi + 0x7c]
add ecx, esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x20], ecx
cmp ecx, esi
je 0x4976d5
mov eax, dword [ecx + 0x18]
xor ebx, ebx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4976d5
mov edi, dword [ecx + 0x20]
add edi, esi
nop dword [eax + eax]
mov edx, dword [edi]
add edx, esi
mov esi, 0x811c9dc5
mov cl, byte [edx]
inc edx
test cl, cl
je 0x4976a7
lea eax, [ecx - 0x41]
cmp al, 0x19
movsx eax, cl
ja 0x49768d
or eax, 0x20
mov cl, byte [edx]
xor eax, esi
imul esi, eax, 0x1000193
inc edx
test cl, cl
jne 0x497680
cmp esi, 0x1a53f476
je 0x4976b7
mov eax, dword [ebp - 0x18]
inc ebx
add edi, 4
cmp ebx, eax
je 0x4976d5
mov esi, dword [ebp - 0x2a4]
jmp 0x497670
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x2a4]
mov ecx, dword [eax + 0x1c]
mov eax, dword [eax + 0x24]
add ecx, edx
add eax, edx
movzx eax, word [eax + ebx*2]
mov eax, dword [ecx + eax*4]
add eax, edx
jmp 0x4976d7
xor eax, eax
mov dword [0x67f408], eax
lea ecx, [ebp - 0x2a0]
push ecx
push 0
push 0
push dword [ebp - 0x2ac]
call eax
test eax, eax
je 0x497a74
xorps xmm0, xmm0
xor esi, esi
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], vtable.CSession.0
mov dword [ebp - 4], esi
xor edi, edi
movlpd qword [ebp - 0x24], xmm0
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], vtable.CConnection.0
push 0x210
lea eax, [ebp - 0x264]
push edi
push eax
call fcn.0056c1d0
add esp, 0xc
lea ecx, [ebp - 0x264]
call fcn.0043b120
mov dword [ebp - method.CAsyncDownloader.virtual_0], 0x6488a0
push edi
push edi
push edi
push edi
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 0x497769
call fcn.0043aff0
mov ebx, eax
jmp 0x497770
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x2a8]
push dword [eax + 0x44]
push dword [eax + 0x40]
push dword [eax + 0x3c]
push dword [eax + 0x38]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x497792
call fcn.0043aff0
test ebx, ebx
js 0x497a55
mov ecx, dword [ebp - 0x290]
xor ebx, ebx
mov eax, dword [ebp - 0x28c]
mov edx, 7
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], edx
mov word [ebp - 0x2c4], bx
lea eax, [ecx + eax*2]
cmp ecx, eax
je 0x4977e2
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x2c4]
call fcn.00417d60
mov edx, dword [ebp - 0x2b0]
push 0
push dword [ebp - 0x288]
cmp edx, 8
lea eax, [ebp - 0x2c4]
cmovae eax, dword [ebp - 0x2c4]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
test eax, eax
jne 0x49780f
call fcn.0043aff0
mov ebx, eax
jmp 0x497816
mov edi, eax
xor ebx, ebx
mov dword [ebp - 0x20], edi
lea ecx, [ebp - 0x2c4]
call fcn.0040f8c0
test ebx, ebx
js 0x497a55
mov ebx, dword [ebp - 0x2a8]
xorps xmm0, xmm0
mov dword [ebp - 0x1a0], 1
movlpd qword [ebp - 0x1ac], xmm0
mov dword [ebp - 0x1a4], 0
mov ecx, dword [ebx + 0x30]
test ecx, ecx
je 0x497881
lea eax, [ebx + 0x20]
mov dword [ebp - 0x1a0], 0
lea edx, [ebp - 0x124]
cmp edx, eax
je 0x497881
cmp dword [eax + 0x14], 8
jb 0x497874
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x124]
call fcn.00417d60
mov ecx, dword [ebp - 0x26c]
xor edx, edx
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x2e4], 0
mov dword [ebp - 0x2e0], 7
mov word [ebp - 0x2f4], dx
lea eax, [ecx + eax*2]
cmp ecx, eax
je 0x4978c2
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x2f4]
call fcn.00417d60
mov byte [ebp - 4], 3
xor edx, edx
mov ecx, dword [ebp - 0x274]
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 7
mov word [ebp - 0x2dc], dx
lea eax, [ecx + eax*2]
cmp ecx, eax
je 0x497907
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x2dc]
call fcn.00417d60
lea eax, [ebp - 0x2f4]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp - 0x2dc]
lea ecx, [ebp - 0x54]
call fcn.00439b80
add esp, 4
lea ecx, [ebp - 0x2dc]
call fcn.0040f8c0
lea ecx, [ebp - 0x2f4]
mov byte [ebp - 4], 7
call fcn.0040f8c0
cmp dword [ebp - 0x40], 8
lea ecx, [ebp - 0x54]
mov edx, 0x800000
cmovae ecx, dword [ebp - 0x54]
sub esp, 8
xor eax, eax
cmp dword [ebp - 0x294], 2
cmove eax, edx
push eax
push 0
sub esp, 8
lea eax, [ebp - 0x24]
push 0x64885c
push ecx
push eax
lea ecx, [ebp - 0x264]
call fcn.00439660
test eax, eax
js 0x497a4a
push str.Expires:_0_r_nCache_Control:_no_store_r_n
lea ecx, [ebp - 0x3c]
call fcn.00417ec0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x3c]
cmp dword [ebp - 0x28], 8
push ecx
push dword [ebp - 0x2c]
cmovae eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x264]
push eax
call fcn.00439590
push 0
push 0
lea ecx, [ebp - 0x264]
call fcn.004391c0
test eax, eax
js 0x497a42
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 edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4979f0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 8]
call fcn.00417d60
lea ecx, [ebp - 0x3c]
call fcn.0040f8c0
lea ecx, [ebp - 0x54]
call fcn.0040f8c0
lea ecx, [ebp - 0x264]
call fcn.00439ef0
mov eax, dword [ebp - 0x20]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x497a34
push eax
call edi
test esi, esi
je 0x497a3b
push esi
call edi
mov eax, 1
jmp 0x497a76
lea ecx, [ebp - 0x3c]
call fcn.0040f8c0
lea ecx, [ebp - 0x54]
call fcn.0040f8c0
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x264]
call fcn.00439ef0
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test edi, edi
je 0x497a6d
push edi
call ebx
test esi, esi
je 0x497a74
push esi
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.004d0a85
mov esp, ebp
pop ebp
ret 4