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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5da704
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x6639c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test ecx, ecx
jne 0x496c60
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
lea ecx, [ebp - 0x14]
call fcn.004064d0
mov dword [ebp - 4], 0
call fcn.00402bb0
mov ecx, eax
test ecx, ecx
jne 0x496c85
push 0x80004005
call fcn.00402480
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 1
call fcn.00402bb0
mov ecx, eax
test ecx, ecx
jne 0x496ca9
push 0x80004005
call fcn.00402480
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x28]
call fcn.00408dc0
add esp, 0xc
or edi, 0xffffffff
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x496cef
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
lea edx, [ebx - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x496d0a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x496d28
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 0xc], 0
je 0x496d50
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x496d50
mov esi, dword [ebp - 0x28]
push ebx
lea ecx, [esi + 0x30]
call fcn.00482ff0
push ebx
push dword [ebp + 0xc]
push dword [esi + 0x30]
call fcn.005a45f0
add esp, 0xc
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
lea ecx, [ebp - 0x1c]
call fcn.004064d0
push str.User_Agent
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.004064d0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ecx + 0x28]
call fcn.00481fe0
mov byte [ebp - 4], 7
mov eax, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x496da3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x496dc1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.https:__www.pdfxd.com_
lea ecx, [ebp - 0x18]
call fcn.004064d0
push str.Referer
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 9
call fcn.004064d0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ecx + 0x28]
call fcn.00481fe0
mov byte [ebp - 4], 9
mov eax, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x496e14
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x496e32
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.application_json
lea ecx, [ebp - 0x18]
call fcn.004064d0
push str.Content_Type
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
call fcn.004064d0
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ecx + 0x28]
call fcn.00481fe0
mov byte [ebp - 4], 0xb
mov eax, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x496e85
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x496ea3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x496f0c
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea edx, [ebp - 0x20]
mov byte [ebp - 4], 0xd
call fcn.00496f50
test eax, eax
je 0x496ee2
cmp dword [ebp - 0x20], 0
setne al
test al, al
je 0x496ee2
lea ecx, [ebp - 0x20]
call fcn.0040d540
mov ebx, 1
jmp 0x496f0e
mov byte [ebp - 4], 0xe
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x496f0c
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x496f0c
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x496f0c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
xor ebx, ebx
mov dword [ebp - 4], 0x11
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x496f3a
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x496f3a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x496f3a
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret