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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xf
push 0
push 0
dec ecx
jne 0x494d45
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x48]
mov edx, dword [0x48a074]
call fcn.00405450
lea eax, [ebp - 0x58]
mov edx, dword [0x48a11c]
call fcn.00405450
xor eax, eax
push ebp
push 0x4950fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 3
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
call fcn.0040945c
test al, al
je 0x494ea5
mov dl, 1
mov eax, dword [0x41a3a4]
call fcn.00403b60
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x494e9e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
sub ebx, 1
jno 0x494ddb
call fcn.00403ad0
test ebx, ebx
jl 0x494e88
inc ebx
xor esi, esi
lea ecx, [ebp - 0x5c]
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x24]
call fcn.00408dd0
mov eax, dword [ebp - 0x24]
call fcn.00404c74
test eax, eax
je 0x494e80
mov eax, 1
mov edx, dword [ebp - 0x24]
dec eax
test edx, edx
je 0x494e1c
cmp eax, dword [edx - 4]
jb 0x494e21
call fcn.00403ac8
inc eax
cmp byte [edx + eax - 1], 0x23
je 0x494e80
mov edx, dword [ebp - 0x24]
mov eax, 0x495114
call fcn.00404fb0
dec eax
jne 0x494e80
mov edx, dword [ebp - 0x24]
mov eax, 0x49512c
call fcn.00404fb0
push eax
mov eax, dword [ebp - 0x24]
call fcn.00404c74
mov edx, eax
pop eax
sub edx, eax
jno 0x494e5b
call fcn.00403ad0
lea ecx, [ebp - 0x64]
mov eax, dword [ebp - 0x24]
call fcn.004359cc
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x60]
call fcn.00408dd0
mov eax, dword [ebp - 0x60]
xor edx, edx
call fcn.00409094
mov dword [ebp - 0x18], eax
jmp 0x494e88
inc esi
dec ebx
jne 0x494de6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494ea5
mov eax, dword [ebp - 0x14]
call fcn.00403b90
ret
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
push 0x495138
push 0x1388
push 0xbb8
push 1
push 2
lea eax, [ebp - 0x48]
push eax
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 4]
call fcn.0040983c
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
mov edx, dword [ebp - 0xc]
call fcn.00404cc0
mov eax, dword [ebp - 0x68]
mov ecx, 0x4951b8
mov edx, 0x4951e4
call fcn.0048a2fc
lea edx, [ebp - 0x58]
lea eax, [ebp - 0x48]
call fcn.0048a404
cmp byte [ebp - 0x58], 0
jne 0x4950bc
cmp byte [ebp - 0x4c], 0
jne 0x4950bc
mov dl, 1
mov eax, dword [0x41a3a4]
call fcn.00403b60
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4950b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
sub ebx, 1
jno 0x494f4c
call fcn.00403ad0
test ebx, ebx
jl 0x495062
inc ebx
xor esi, esi
lea ecx, [ebp - 0x70]
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x70]
lea edx, [ebp - 0x24]
call fcn.00408dd0
mov eax, dword [ebp - 0x24]
call fcn.00404c74
test eax, eax
je 0x49505a
mov eax, 1
mov edx, dword [ebp - 0x24]
dec eax
test edx, edx
je 0x494f91
cmp eax, dword [edx - 4]
jb 0x494f96
call fcn.00403ac8
inc eax
cmp byte [edx + eax - 1], 0x23
je 0x49505a
mov edx, dword [ebp - 0x24]
mov eax, 0x495114
call fcn.00404fb0
dec eax
jne 0x494ff9
mov edx, dword [ebp - 0x24]
mov eax, 0x49512c
call fcn.00404fb0
push eax
mov eax, dword [ebp - 0x24]
call fcn.00404c74
mov edx, eax
pop eax
sub edx, eax
jno 0x494fd4
call fcn.00403ad0
lea ecx, [ebp - 0x78]
mov eax, dword [ebp - 0x24]
call fcn.004359cc
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x74]
call fcn.00408dd0
mov eax, dword [ebp - 0x74]
xor edx, edx
call fcn.00409094
mov dword [ebp - 0x1c], eax
jmp 0x49504e
mov edx, dword [ebp - 0x24]
mov eax, 0x495254
call fcn.00404fb0
dec eax
jne 0x49504e
mov edx, dword [ebp - 0x24]
mov eax, 0x49512c
call fcn.00404fb0
push eax
mov eax, dword [ebp - 0x24]
call fcn.00404c74
mov edx, eax
pop eax
sub edx, eax
jno 0x49502b
call fcn.00403ad0
lea ecx, [ebp - 0x80]
mov eax, dword [ebp - 0x24]
call fcn.004359cc
mov eax, dword [ebp - 0x80]
lea edx, [ebp - 0x7c]
call fcn.00408dd0
mov eax, dword [ebp - 0x7c]
xor edx, edx
call fcn.00409094
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jle 0x49505a
cmp dword [ebp - 0x20], 0
jg 0x495062
inc esi
dec ebx
jne 0x494f57
cmp dword [ebp - 0x1c], 0
jle 0x49509f
cmp dword [ebp - 0x20], 0
jle 0x49509f
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x20]
jl 0x49509b
cmp dword [ebp - 0x18], 0
jle 0x495084
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
jle 0x495095
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov byte [ebp - 0xd], 1
jmp 0x49509f
mov byte [ebp - 0xd], 0
jmp 0x49509f
mov byte [ebp - 0xd], 2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4950bc
mov eax, dword [ebp - 0x14]
call fcn.00403b90
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495102
lea eax, [ebp - 0x80]
mov edx, 0xa
call fcn.004049e0
lea eax, [ebp - 0x58]
mov edx, dword [0x48a11c]
call fcn.00405520
lea eax, [ebp - 0x48]
mov edx, dword [0x48a074]
call fcn.00405520
lea eax, [ebp - 0x24]
call fcn.004049bc
ret