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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 0
push dword [0x53a444]
push 0xffffffffffffffff
push 8
push 0x160103ea
push 0x52010001
call fcn.0041892c
add esp, 0x18
push getpeername
push 0
mov eax, dword [0x53a444]
test eax, eax
jne 0x40e9fd
mov eax, 0x4ec04f
push eax
push 1
mov ebx, 0x419ff0
call fcn.00418908
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40ea27
push ebx
call fcn.00418902
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0
push str.Mozilla_5.0__Windows_NT_6.2__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_49.0.2623.87_Safari_537.36
push 0xffffffffffffffff
push 0xe
push 0x160103fa
push 0x52010001
call fcn.0041892c
add esp, 0x18
xor ecx, ecx
lea eax, [ebp - 8]
mov ebx, eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 0x64
jg 0x40ebbc
mov eax, 0x4ec04f
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40ea73
push ebx
call fcn.00418902
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0
mov ebx, 0x41af90
call fcn.00418908
add esp, 4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0040ed61
push 0
mov ebx, 0x41af90
call fcn.00418908
add esp, 4
mov dword [ebp - 0x24], eax
fild dword [ebp - 0x24]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fild dword [ebp - 0x10]
fstp qword [ebp - 0x2c]
fsub qword [ebp - 0x2c]
fstp qword [ebp - 0x34]
push 0x80000601
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push 1
mov ebx, 0x41a850
call fcn.00418908
add esp, 0x10
mov dword [ebp - 0x38], eax
push dword [ebp - 0x38]
push 0x4ec70d
push dword [ebp - 0xc]
push str.type
mov ecx, 4
call fcn.004010ff
add esp, 0x10
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40eb17
push ebx
call fcn.00418902
add esp, 4
lea eax, [ebp - 0x3c]
push eax
call fcn.00405d24
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40eb30
push ebx
call fcn.00418902
add esp, 4
push str.SLIDER
push dword [ebp - 0xc]
call fcn.0040115b
add esp, 8
cmp eax, 0
jne 0x40ebb5
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x41a850
call fcn.00418908
add esp, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push 0x4ec90a
mov ecx, 2
call fcn.004010ff
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40eb90
push ebx
call fcn.00418902
add esp, 4
lea eax, [ebp - 0x20]
push eax
call fcn.00405d24
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40eba9
push ebx
call fcn.00418902
add esp, 4
mov dword [ebp - 0x18], 1
jmp 0x40ebbc
pop ebx
pop ecx
jmp 0x40ea4f
add esp, 8
cmp dword [ebp - 0x18], 1
jne 0x40ecb3
call fcn.0040c95c
push getpeername
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x40ebe1
mov eax, 0x4ec04f
push eax
push getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40ebf5
mov eax, 0x4ec04f
push eax
push 0x20005
push 0x160103fa
push 0x52010001
push 3
mov eax, 1
mov ebx, 0x47eee0
call fcn.00418920
add esp, 0x28
push getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40ec2f
mov eax, 0x4ec04f
push eax
push 1
mov ebx, 0x419ff0
call fcn.00418908
add esp, 0x10
mov dword [ebp - 0x1c], eax
push getpeername
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x40ec58
mov eax, 0x4ec04f
push eax
push 1
mov eax, 1
mov ebx, 0x47d130
call fcn.00418920
add esp, 0x10
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40ec83
push ebx
call fcn.00418902
add esp, 4
push 0
push dword [ebp - 0x20]
push 0xffffffffffffffff
push 8
push 0x160103fa
push 0x52010001
call fcn.0041892c
add esp, 0x18
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40ecae
push ebx
call fcn.00418902
add esp, 4
jmp 0x40ed2d
push 0x80000301
push 0
push dword [0x53a448]
push 1
mov ebx, 0x41a850
call fcn.00418908
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 0x4ec915
push dword [ebp - 0x1c]
push 0x4ec081
mov ecx, 3
call fcn.004010ff
add esp, 0xc
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40ed02
push ebx
call fcn.00418902
add esp, 4
lea eax, [ebp - 0x20]
push eax
call fcn.0040183d
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40ed1b
push ebx
call fcn.00418902
add esp, 4
call fcn.00401a7d
mov dword [ebp - 0x1c], eax
push 1
push dword [ebp - 0x1c]
call fcn.00405c17
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40ed3d
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40ed4d
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40ed5d
push ebx
call fcn.00418902
add esp, 4
mov esp, ebp
pop ebp
ret