Function at 0x474940
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5bdd
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x50d108]
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 - 0x58], ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x54], eax
mov eax, dword [0x513914]
test al, 1
jne 0x4749c7
or eax, 1
mov dword [0x513914], eax
push 0x35c
push 0
push 0x5135b8
mov dword [ebp - 4], 0
call fcn.004a3020
add esp, 0xc
mov ecx, 0x5135b8
call fcn.0047a9d0
push 0x4d8ef0
call fcn.0048a29f
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x513630]
add eax, 0xfffffff0
push eax
call fcn.00404550
add eax, 0x10
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x70]
and eax, 0xfffffe07
mov dword [ebp - 0x6c], 0
or eax, 7
push 8
mov dword [ebp - 0x70], eax
call fcn.0048a019
mov esi, eax
add esp, 8
mov dword [ebp - 0x5c], esi
mov byte [ebp - 4], 2
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004661e0
mov dword [esi], eax
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x48], vtable.Json::FastWriter.0
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
mov byte [ebp - 0x2c], 0
push ecx
push str.action
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 4
call fcn.00465530
mov edx, eax
mov ecx, ebx
call fcn.00467c40
push ecx
push str.status
lea ecx, [ebp - 0x78]
call fcn.00465530
mov ecx, dword [ebp - 0x54]
mov edx, eax
call fcn.00467c40
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x78]
push eax
call fcn.00475f70
test edi, edi
je 0x474a8a
push edi
lea ecx, [ebp - 0x78]
call fcn.00475c40
mov eax, dword [ebp - 0x80]
and eax, 0xfffffe06
mov dword [ebp - 0x7c], 0
or eax, 6
push 8
mov dword [ebp - 0x80], eax
call fcn.0048a019
mov esi, eax
add esp, 4
mov dword [ebp - 0x5c], esi
mov byte [ebp - 4], 5
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004661e0
mov dword [esi], eax
mov dword [ebp - 0x88], esi
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x88]
call fcn.00465770
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x48]
call fcn.0046e590
push 0x4f0128
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 7
call fcn.004043c0
mov byte [ebp - 4], 8
call fcn.00404900
mov ecx, eax
test ecx, ecx
jne 0x474b1c
push 0x80004005
call fcn.00404660
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 9
call fcn.00404900
mov ecx, eax
test ecx, ecx
jne 0x474b40
push 0x80004005
call fcn.00404660
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x54]
push eax
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x64]
call fcn.00438bf0
add esp, 0xc
mov byte [ebp - 4], 0xc
or esi, 0xffffffff
mov edx, dword [ebp - 0x4c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x474b8a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
mov eax, esi
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x474ba8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xe
mov eax, esi
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x474bc6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x64]
lea edi, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov ebx, dword [ebp - 0x18]
cmovae edi, dword [ebp - 0x28]
push ebx
lea ecx, [esi + 0x30]
call fcn.004640c0
push ebx
push edi
push dword [esi + 0x30]
call fcn.004a2aa0
add esp, 0xc
lea ecx, [ebp - 0x4c]
push str.Mozilla_5.0__Windows_NT_6.2__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_49.0.2623.110_Safari_537.36_XunduPDF_49.0.2623.110
call fcn.004043c0
push str.User_Agent
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xf
call fcn.004043c0
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 0x64]
push eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ecx + 0x28]
call fcn.0046c2f0
mov byte [ebp - 4], 0xf
or ebx, 0xffffffff
mov edx, dword [ebp - 0x50]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x474c43
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xe
mov eax, ebx
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x474c61
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.https:__www.pdfxd.com_
lea ecx, [ebp - 0x4c]
call fcn.004043c0
push str.Referer
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x11
call fcn.004043c0
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 0x64]
push eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ecx + 0x28]
call fcn.0046c2f0
mov byte [ebp - 4], 0x11
mov eax, ebx
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x474cb4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xe
mov eax, ebx
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x474cd2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.application_json
lea ecx, [ebp - 0x4c]
call fcn.004043c0
push str.Content_Type
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x13
call fcn.004043c0
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 0x64]
push eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ecx + 0x28]
call fcn.0046c2f0
mov byte [ebp - 4], 0x13
mov eax, ebx
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x474d25
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xe
mov eax, ebx
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x474d43
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x58]
push 0
push 0
push dword [eax + 0x4c]
sub esp, 8
mov dword [ebp - 0x8c], esp
mov edi, esp
mov byte [ebp - 4], 0x15
mov dword [edi], 0
mov dword [edi + 4], 0
mov esi, dword [ebp - 0x60]
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x5c], eax
test esi, esi
je 0x474d7d
lock inc dword [esi + 4]
mov esi, dword [edi + 4]
test esi, esi
je 0x474da3
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x474da3
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x474da3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x58]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x5c]
mov dword [edi], eax
mov byte [ebp - 4], 0x16
mov eax, dword [0x513024]
test eax, eax
jne 0x474ddc
push 0x7c
call fcn.0048a019
add esp, 4
mov dword [ebp - 0x5c], eax
mov ecx, eax
mov byte [ebp - 4], 0x17
call fcn.004718f0
mov byte [ebp - 4], 0x16
mov dword [0x513024], eax
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.00471aa0
mov byte [ebp - 4], 0x18
mov esi, dword [ebp - 0x60]
test esi, esi
je 0x474e11
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x474e11
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x474e11
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x474e26
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00425760
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00464e20
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x48], vtable.Json::FastWriter.0
cmp eax, 0x10
jb 0x474e5f
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00425760
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x48], vtable.Json::Writer.0
call fcn.00464e20
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x68]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x474e9f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.0048a4ec
mov esp, ebp
pop ebp
ret 0x14