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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d889d
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x513108]
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 [0x519b9c]
test al, 1
jne 0x4765a7
or eax, 1
mov dword [0x519b9c], eax
push 0x37c
push 0
push 0x519820
mov dword [ebp - 4], 0
call fcn.004a5890
add esp, 0xc
mov ecx, 0x519820
call fcn.0047d140
push 0x4dbc00
call fcn.0048caf4
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x519898]
add eax, 0xfffffff0
push eax
call fcn.004045b0
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.0048c852
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.004668c0
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.00465c10
mov edx, eax
mov ecx, ebx
call fcn.00468480
push ecx
push str.status
lea ecx, [ebp - 0x78]
call fcn.00465c10
mov ecx, dword [ebp - 0x54]
mov edx, eax
call fcn.00468480
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x78]
push eax
call fcn.00477b50
test edi, edi
je 0x47666a
push edi
lea ecx, [ebp - 0x78]
call fcn.00477820
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.0048c852
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.004668c0
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.00465e50
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x48]
call fcn.00470020
push 0x4f56b8
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 7
call fcn.00404420
mov byte [ebp - 4], 8
call fcn.00404960
mov ecx, eax
test ecx, ecx
jne 0x4766fc
push 0x80004005
call fcn.004046c0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 9
call fcn.00404960
mov ecx, eax
test ecx, ecx
jne 0x476720
push 0x80004005
call fcn.004046c0
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.004392a0
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 0x47676a
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 0x476788
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 0x4767a6
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.004646b0
push ebx
push edi
push dword [esi + 0x30]
call fcn.004a5310
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.00404420
push str.User_Agent
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xf
call fcn.00404420
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.0046dd80
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 0x476823
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 0x476841
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.00404420
push str.Referer
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x11
call fcn.00404420
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.0046dd80
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 0x476894
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 0x4768b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.application_json
lea ecx, [ebp - 0x4c]
call fcn.00404420
push str.Content_Type
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x13
call fcn.00404420
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.0046dd80
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 0x476905
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 0x476923
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 0x47695d
lock inc dword [esi + 4]
mov esi, dword [edi + 4]
test esi, esi
je 0x476983
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x476983
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x476983
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 [0x519204]
test eax, eax
jne 0x4769bc
push 0x7c
call fcn.0048c852
add esp, 4
mov dword [ebp - 0x5c], eax
mov ecx, eax
mov byte [ebp - 4], 0x17
call fcn.00473380
mov byte [ebp - 4], 0x16
mov dword [0x519204], eax
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.00473530
mov byte [ebp - 4], 0x18
mov esi, dword [ebp - 0x60]
test esi, esi
je 0x4769f1
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x4769f1
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x4769f1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x476a06
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004257e0
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00465410
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x48], vtable.Json::FastWriter.0
cmp eax, 0x10
jb 0x476a3f
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.004257e0
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.00465410
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 0x476a7f
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.0048cd41
mov esp, ebp
pop ebp
ret 0x14