Function at 0x4853d0
Capabilities:
Check if file exists
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61a284
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x6b1a94]
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 - 0x10], esp
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x84], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 4], 0
test ecx, ecx
jne 0x48543c
xor eax, eax
jmp 0x485be8
call fcn.004dd010
mov edi, eax
mov dword [ebp - 0x68], edi
test edi, edi
je 0x485435
mov esi, dword [ebp + 0x10]
xor bl, bl
mov dword [ebp - 0x78], 0
test esi, esi
je 0x485561
mov esi, dword [esi]
mov eax, dword [esi]
mov dword [ebp - 0x60], eax
cmp eax, esi
je 0x48555a
cmp dword [eax + 0x38], 0
lea edi, [eax + 0x10]
mov dword [ebp - 0x70], edi
je 0x48554a
push 0xffffffffffffffff
push 0
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.004037a0
mov byte [ebp - 4], 1
test bl, bl
jne 0x4854e7
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
mov edi, dword [ebp - 0x1c]
mov eax, 0xa
cmovae ecx, dword [ebp - 0x2c]
cmp edi, eax
cmovb eax, edi
push eax
push str.User_Agent
push ecx
call fcn.004363a0
add esp, 0xc
test eax, eax
jne 0x4854e4
cmp edi, 0xa
mov edi, dword [ebp - 0x70]
jb 0x4854e7
movzx ebx, bl
mov eax, 1
cmovbe ebx, eax
jmp 0x4854e7
mov edi, dword [ebp - 0x70]
push 2
push 0x6811d8
lea ecx, [ebp - 0x2c]
call fcn.00462b20
push 0xffffffffffffffff
push 0
lea ecx, [edi + 0x18]
push ecx
mov ecx, eax
call fcn.00462c50
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push dword [ebp - 0x78]
call fcn.004ddd10
mov byte [ebp - 4], 0
add esp, 8
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x78], eax
cmp ecx, 0x10
jb 0x485538
inc ecx
push ecx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call fcn.00403ac0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x60]
call fcn.00433b30
mov eax, dword [ebp - 0x60]
jmp 0x485465
mov edi, dword [ebp - 0x68]
test bl, bl
jne 0x4855de
push 0xc
push str.User_Agent:
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
call fcn.00403be0
push 0x84
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 - 0x44]
mov byte [ebp - 4], 2
call fcn.00462b20
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
push dword [ebp - 0x78]
call fcn.004ddd10
mov esi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
add esp, 8
cmp eax, 0x10
jb 0x4855ca
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00403ac0
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
jmp 0x4855e1
mov esi, dword [ebp - 0x78]
push ecx
mov edx, str.full.data
lea ecx, [ebp - 0x70]
call fcn.0046c430
add esp, 4
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x70]
test eax, eax
sete bl
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48561a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x48562e
push str.Referer:_https:__www.pdfxd.com_
push esi
call fcn.004ddd10
add esp, 8
mov esi, eax
test esi, esi
je 0x485641
push esi
push 0x2727
push edi
call fcn.004dd070
add esp, 0xc
mov ebx, dword [ebp - 0x84]
cmp dword [ebx + 0x14], 0x10
jb 0x485651
mov eax, dword [ebx]
jmp 0x485653
mov eax, ebx
push eax
push 0x2712
push edi
call fcn.004dd070
add esp, 0xc
mov ecx, ebx
push 5
push 0
push 0x68216c
call fcn.00485c50
test eax, eax
jne 0x48568c
push eax
push 0x40
push edi
call fcn.004dd070
push 0
push 0x51
push edi
call fcn.004dd070
add esp, 0x18
cmp byte [ebp + 0x18], 0
je 0x48577d
push 1
push 0x2f
push edi
call fcn.004dd070
add esp, 0xc
xor eax, eax
je 0x485750
mov edi, dword [4]
mov esi, dword [pe_dos_header]
mov dword [ebp - 0x60], eax
cmp esi, edi
je 0x48573c
lea ebx, [esi + 0x18]
cmp byte [esi], 0
je 0x4856ff
cmp dword [ebx + 0x18], 0x10
jb 0x4856d5
mov ecx, dword [ebx + 4]
jmp 0x4856d8
lea ecx, [ebx + 4]
cmp dword [ebx], 0x10
jb 0x4856e2
mov eax, dword [ebx - 0x14]
jmp 0x4856e5
lea eax, [ebx - 0x14]
push 0x11
push ecx
push 5
push eax
push 2
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.004df070
add esp, 0x1c
jmp 0x485732
cmp dword [ebx], 0x10
jb 0x485709
mov eax, dword [ebx - 0x14]
jmp 0x48570c
lea eax, [ebx - 0x14]
push 0x11
push dword [ebx + 0x20]
push 0xd
push dword [ebx + 0x1c]
push 0xc
push eax
push 0xb
push str.file
push 1
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.004df070
add esp, 0x2c
add esi, 0x3c
add ebx, 0x3c
cmp esi, edi
jne 0x4856c5
push dword [ebp - 0x7c]
mov edi, dword [ebp - 0x68]
push 0x2728
push edi
call fcn.004dd070
add esp, 0xc
mov ebx, dword [ebp - 0x74]
test ebx, ebx
je 0x48577d
cmp dword [ebx + 0x14], 0x10
jb 0x485761
mov eax, dword [ebx]
jmp 0x485763
mov eax, ebx
push eax
push 0x271f
push edi
call fcn.004dd070
push dword [ebx + 0x10]
push 0x3c
push edi
call fcn.004dd070
add esp, 0x18
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x48579b
cmp dword [eax + 0x14], 0x10
jb 0x48578c
mov eax, dword [eax]
push eax
push 0x2726
push edi
call fcn.004dd070
add esp, 0xc
push ecx
mov edx, str.full.data
lea ecx, [ebp - 0x64]
call fcn.0046c430
add esp, 4
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x64]
or ebx, 0xffffffff
mov esi, eax
add edx, 0xfffffff0
mov ecx, ebx
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4857d3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x4857fc
push str.127.0.0.1
push 0x2714
push edi
call fcn.004dd070
push 0x22b8
push 0x3b
push edi
call fcn.004dd070
add esp, 0x18
jmp 0x485a0f
mov esi, dword [0x6c35f0]
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, 2
jne 0x485a0c
mov ecx, dword [0x6c35f0]
lea eax, [ebp - 0x24]
push eax
call fcn.0048bc40
push 0x682248
lea edx, [ebp - 0x1c]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x74]
call fcn.004146f0
add esp, 4
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
push ecx
mov edx, eax
lea ecx, [ebp - 0x64]
call fcn.00405b20
add esp, 4
mov edi, dword [eax]
test edi, edi
jne 0x485863
xor eax, eax
jmp 0x4858a6
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x485870
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x48588e
xor eax, eax
jmp 0x4858a6
add esi, esi
mov eax, esi
call fcn.005c9e90
mov dword [ebp - 0x10], esp
mov ecx, esp
push 3
push esi
mov edx, edi
call fcn.00474900
mov edi, dword [ebp - 0x68]
push eax
push 0x2714
push edi
call fcn.004dd070
mov edx, dword [ebp - 0x64]
add esp, 0xc
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4858d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x74]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4858f0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x24]
mov ecx, 0x678c3c
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x48591e
test dx, dx
je 0x48591a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x48591e
add eax, 4
add ecx, 4
test dx, dx
jne 0x4858f8
xor eax, eax
jmp 0x485923
sbb eax, eax
or eax, 1
test eax, eax
setne al
test al, al
je 0x4859fe
mov edx, 0x678c3c
lea ecx, [ebp - 0x20]
call fcn.004548e0
test al, al
je 0x4859fe
push 0x682248
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x74]
call fcn.004146f0
add esp, 4
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0x64]
call fcn.00405b20
add esp, 4
mov ebx, dword [eax]
test ebx, ebx
jne 0x485977
xor eax, eax
jmp 0x4859b6
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x485980
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x48599e
xor eax, eax
jmp 0x4859b6
add esi, esi
mov eax, esi
call fcn.005c9e90
mov dword [ebp - 0x10], esp
mov ecx, esp
push 3
push esi
mov edx, ebx
call fcn.00474900
push eax
push 0x2716
push edi
call fcn.004dd070
mov edx, dword [ebp - 0x64]
or ebx, 0xffffffff
add esp, 0xc
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4859e2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x74]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4859fe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.00485310
jmp 0x485a0f
mov edi, dword [ebp - 0x68]
xor eax, eax
je 0x485a20
push 1
push 0x2a
push edi
call fcn.004dd070
add esp, 0xc
push 0
push 0x4e2c
push edi
call fcn.004dd070
push 0x4853b0
push 0x4e2b
push edi
call fcn.004dd070
push dword [ebp - 0x6c]
push 0x2711
push edi
call fcn.004dd070
push 1
push 0x63
push edi
call fcn.004dd070
push 0xf
push 0x4e
push edi
call fcn.004dd070
push 0xf
push 0xd
push edi
call fcn.004dd070
add esp, 0x48
push 1
push 0x34
push edi
call fcn.004dd070
push 0x14
push 0x44
push edi
call fcn.004dd070
push edi
call fcn.004dd050
add esp, 0x1c
mov esi, eax
xor eax, eax
je 0x485a9f
mov ecx, dword [ebp - 0x7c]
test ecx, ecx
je 0x485a9f
push ecx
call fcn.004df090
add esp, 4
xor ebx, ebx
test esi, esi
sete bl
mov dword [ebp - 0x80], ebx
test ebx, ebx
je 0x485bd2
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x485ad4
push eax
push 0x200002
push edi
call fcn.004dcff0
add esp, 0xc
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
mov dword [ebp - 0x80], ebx
test ebx, ebx
je 0x485bd2
xor eax, eax
je 0x485bd2
lea eax, [ebp - 0x60]
push eax
push 0x20000b
push edi
call fcn.004dcff0
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x44]
add esp, 0xc
push dword [ebp - 0x60]
push 0
push eax
call fcn.00485c10
mov esi, eax
xor ecx, ecx
cmp ecx, esi
je 0x485b53
mov eax, dword [0x14]
cmp eax, 0x10
jb 0x485b22
inc eax
push eax
push dword [ecx]
call fcn.00403ac0
mov dword [0x14], 0xf
cmp dword [0x14], 0x10
mov dword [0x10], 0
jb 0x485b46
mov eax, dword [pe_dos_header]
jmp 0x485b48
xor eax, eax
push esi
xor ecx, ecx
mov byte [eax], 0
call fcn.004364c0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x485b6c
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00403ac0
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x5c]
push 0xffffffffffffffff
push dword [ebp - 0x60]
push eax
call fcn.00485c10
mov esi, eax
mov ecx, dword [ebp - 0x6c]
cmp ecx, esi
je 0x485bbd
mov eax, dword [ecx + 0x14]
cmp eax, 0x10
jb 0x485b9a
inc eax
push eax
push dword [ecx]
call fcn.00403ac0
mov ecx, dword [ebp - 0x6c]
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x485bb2
mov eax, dword [ecx]
jmp 0x485bb4
mov eax, ecx
push esi
mov byte [eax], 0
call fcn.004364c0
mov eax, dword [ebp - 0x48]
cmp eax, 0x10
jb 0x485bd2
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00403ac0
push edi
call fcn.004dcfd0
add esp, 4
jmp 0x485be6
mov eax, ebx
lea esp, [ebp - 0x98]
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.005c8db3
mov esp, ebp
pop ebp
ret