Function at 0x496a50
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 0x5ffb31
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x672494]
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 dword [ebp - 0x2ac], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2a8], eax
mov eax, dword [ebp + 0xc]
push 0x3c
mov dword [ebp - 0x2a4], eax
lea eax, [ebp - 0x29c]
push 0
push eax
call fcn.0056c1d0
mov eax, dword fs:[0x30]
add esp, 0xc
mov dword [ebp - 0x29c], 0x3c
mov dword [ebp - 0x294], 0xffffffff
mov dword [ebp - 0x288], 0xffffffff
mov dword [ebp - 0x26c], 0xffffffff
mov dword [ebp - 0x264], 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 - 0x2a0], eax
mov ebx, 0x811c9dc5
lea edx, [ecx + esi]
inc ecx
shr ecx, 1
cmp esi, edx
cmova ecx, edi
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x496b40
mov eax, ecx
mov dl, byte [esi]
lea ecx, [edx - 0x41]
cmp cl, 0x19
movsx ecx, dl
ja 0x496b22
or ecx, 0x20
xor ecx, ebx
inc edi
imul ebx, ecx, 0x1000193
add esi, 2
cmp edi, eax
jne 0x496b12
mov eax, dword [ebp - 0x2a0]
cmp ebx, 0x91bd45a3
je 0x496b44
mov eax, dword [eax]
jmp 0x496ae7
mov esi, dword [eax + 0x18]
mov eax, dword [0x67f408]
mov dword [ebp - 0x2a0], esi
test eax, eax
jne 0x496bfc
test esi, esi
je 0x496bf5
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + esi + 0x78]
mov eax, dword [eax + esi + 0x7c]
add ecx, esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x1c], ecx
cmp ecx, esi
je 0x496bf5
mov eax, dword [ecx + 0x18]
xor ebx, ebx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x496bf5
mov edi, dword [ecx + 0x20]
add edi, esi
nop word [eax + eax]
mov edx, dword [edi]
add edx, esi
mov esi, 0x811c9dc5
mov cl, byte [edx]
inc edx
test cl, cl
je 0x496bc7
lea eax, [ecx - 0x41]
cmp al, 0x19
movsx eax, cl
ja 0x496bad
or eax, 0x20
mov cl, byte [edx]
xor eax, esi
imul esi, eax, 0x1000193
inc edx
test cl, cl
jne 0x496ba0
cmp esi, 0x1a53f476
je 0x496bd7
mov eax, dword [ebp - 0x14]
inc ebx
add edi, 4
cmp ebx, eax
je 0x496bf5
mov esi, dword [ebp - 0x2a0]
jmp 0x496b90
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2a0]
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 0x496bf7
xor eax, eax
mov dword [0x67f408], eax
lea ecx, [ebp - 0x29c]
push ecx
push 0
push 0
push dword [ebp - 0x2a8]
call eax
test eax, eax
je 0x496f33
xorps xmm0, xmm0
xor esi, esi
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], vtable.CSession.0
mov dword [ebp - 4], esi
xor edi, edi
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], vtable.CConnection.0
push 0x210
lea eax, [ebp - 0x260]
push edi
push eax
call fcn.0056c1d0
add esp, 0xc
lea ecx, [ebp - 0x260]
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 0x496c89
call fcn.0043aff0
mov ebx, eax
jmp 0x496c90
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x2ac]
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 0x496cb2
call fcn.0043aff0
test ebx, ebx
js 0x496f14
mov ecx, dword [ebp - 0x28c]
xor ebx, ebx
mov eax, dword [ebp - 0x288]
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 0x496d02
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 - 0x284]
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 0x496d2f
call fcn.0043aff0
mov ebx, eax
jmp 0x496d36
mov edi, eax
xor ebx, ebx
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x2c4]
call fcn.0040f8c0
test ebx, ebx
js 0x496f14
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 - 0x2e4], 0
mov dword [ebp - 0x2e0], 7
mov word [ebp - 0x2f4], dx
cmp ecx, eax
je 0x496da9
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 - 0x270]
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 7
mov word [ebp - 0x2dc], dx
lea eax, [ecx + eax*2]
cmp ecx, eax
je 0x496dee
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 - 0x50]
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 - 0x3c], 8
lea ecx, [ebp - 0x50]
mov edx, 0x800000
cmovae ecx, dword [ebp - 0x50]
sub esp, 8
xor eax, eax
cmp dword [ebp - 0x290], 2
cmove eax, edx
push eax
push 0
sub esp, 8
lea eax, [ebp - 0x20]
push 0x64885c
push ecx
push eax
lea ecx, [ebp - 0x260]
call fcn.00439660
test eax, eax
js 0x496f09
push str.Expires:_0_r_nCache_Control:_no_store_r_n
lea ecx, [ebp - 0x38]
call fcn.00417ec0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x38]
cmp dword [ebp - 0x24], 8
push ecx
push dword [ebp - 0x28]
cmovae eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x260]
push eax
call fcn.00439590
push 0
push 0
lea ecx, [ebp - 0x260]
call fcn.004391c0
test eax, eax
js 0x496f01
push dword [ebp - 0x2a4]
mov ecx, dword [ebp - 0x2a4]
push dword [ebp - 0x104]
push dword [ebp - 0x108]
mov eax, dword [ecx]
push eax
mov dword [ecx + 4], eax
call fcn.0040faf0
lea ecx, [ebp - 0x38]
call fcn.0040f8c0
lea ecx, [ebp - 0x50]
call fcn.0040f8c0
lea ecx, [ebp - 0x260]
call fcn.00439ef0
mov eax, dword [ebp - 0x1c]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x496ef3
push eax
call edi
test esi, esi
je 0x496efa
push esi
call edi
mov eax, 1
jmp 0x496f35
lea ecx, [ebp - 0x38]
call fcn.0040f8c0
lea ecx, [ebp - 0x50]
call fcn.0040f8c0
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x260]
call fcn.00439ef0
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test edi, edi
je 0x496f2c
push edi
call ebx
test esi, esi
je 0x496f33
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 - 0x10]
xor ecx, ebp
call fcn.004d0a85
mov esp, ebp
pop ebp
ret 8