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

Disassembly:
mov ecx, dword [0x99504c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x810]
cmp eax, dword [ecx + 8]
jbe 0x512b87
sub esp, 0x890
lea edi, [esp + 0x9b8]
xor eax, eax
call fcn.004690b3
mov dword [esp + 0xaec], 0
mov dword [esp + 0xaee], 0
mov dword [esp + 0xaf2], 0
mov dword [esp + 0xaf6], 0
mov dword [esp + 0xafc], 0
mov dword [esp + 0xb00], 0
mov word [esp + 0x9aa], 1
lea edi, [esp]
lea esi, [esp + 0x8a8]
call fcn.00469386
movzx ecx, byte [esp + 0x9b5]
mov byte [esp + 0x104], cl
call fcn.00511050
mov ecx, dword [esp + 0x124]
mov edx, dword [esp + 0x110]
movzx ebx, word [esp + 0x108]
mov ebp, dword [esp + 0x10c]
mov eax, dword [esp + 0x120]
mov dword [esp + 0x280], eax
mov esi, dword [esp + 0x114]
mov edi, dword [esp + 0x118]
mov eax, dword [esp + 0x11c]
test ecx, ecx
jne 0x5121dc
movzx ecx, byte [esp + 0x9b4]
test cl, cl
je 0x51211a
mov dword [esp + 0x344], 0
mov dword [esp + 0x348], 0
mov dword [esp + 0x348], 3
lea ecx, [0x73a5e9]
mov dword [esp + 0x344], ecx
mov ecx, 1
lea ecx, [esp + 0x344]
mov dword [esp + 0x330], ecx
mov ecx, 1
jmp 0x51218e
mov dword [esp + 0x34c], 0
mov dword [esp + 0x350], 0
mov dword [esp + 0x354], 0
mov dword [esp + 0x358], 0
mov dword [esp + 0x350], 3
lea ecx, [0x73a616]
mov dword [esp + 0x34c], ecx
mov dword [esp + 0x358], 3
lea ecx, [0x73a5e9]
mov dword [esp + 0x354], ecx
mov ecx, 2
lea ecx, [esp + 0x34c]
mov dword [esp + 0x330], ecx
mov ecx, 2
mov word [esp + 0x26a], bx
mov dword [esp + 0x284], ecx
mov dword [esp + 0x278], esi
mov dword [esp + 0x274], edx
mov dword [esp + 0x328], ebp
mov dword [esp + 0x27c], eax
mov dword [esp + 0x32c], edi
mov dword [esp + 0x29c], eax
xor eax, eax
mov dword [esp + 0x298], eax
mov eax, dword [esp + 0x29c]
jmp 0x51227d
lea edi, [esp + 0x9b8]
xor eax, eax
call fcn.004690b3
mov dword [esp + 0xaec], 0
mov dword [esp + 0xaee], 0
mov dword [esp + 0xaf2], 0
mov dword [esp + 0xaf6], 0
mov ecx, dword [0x9670b0]
mov edx, dword [0x9670b4]
mov dword [esp + 0xafc], ecx
mov dword [esp + 0xb00], edx
call fcn.00438090
add esp, 0x890
ret
mov eax, dword [esp + 0x298]
inc eax
mov ecx, dword [esp + 0x284]
mov edx, dword [esp + 0x274]
movzx ebx, word [esp + 0x26a]
mov ebp, dword [esp + 0x328]
mov esi, dword [esp + 0x278]
mov edi, dword [esp + 0x32c]
mov dword [esp + 0x298], eax
mov eax, dword [esp + 0x27c]
mov edx, dword [esp + 0x298]
cmp ecx, edx
jle 0x512af8
mov eax, dword [esp + 0x330]
lea ecx, [eax + edx*8]
mov ebx, dword [ecx]
mov dword [esp + 0x334], ebx
mov ecx, dword [ecx + 4]
mov dword [esp + 0x288], ecx
call fcn.0048bbf0
lea edi, [esp + 0x3ac]
lea esi, [esp]
call fcn.004695de
lea edi, [esp]
lea esi, [esp + 0x3ac]
call fcn.004695de
mov eax, dword [esp + 0x9b0]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x9ac]
mov dword [esp + 0x14], ecx
call fcn.0048b090
lea edi, [esp + 0x398]
lea esi, [esp + 0x1c]
call fcn.004695de
lea edi, [esp + 0x370]
lea esi, [esp + 0x398]
call fcn.004695de
mov eax, dword [esp + 0x898]
mov dword [esp], eax
mov ecx, dword [esp + 0x89c]
mov dword [esp + 4], ecx
lea edi, [esp + 8]
lea esi, [esp + 0x370]
call fcn.004695de
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.00492e20
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x340], ecx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x324], edx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x270], ebx
mov dword [esp], eax
call fcn.00437a20
test eax, eax
jne 0x512aec
mov eax, dword [esp + 0x894]
mov dword [esp], eax
mov ecx, dword [esp + 0x340]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x324]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x334]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x288]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x8a0]
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x8a4]
mov dword [esp + 0x18], ebx
call fcn.0051f530
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
test eax, eax
jne 0x512a61
mov dword [esp + 0x340], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x33c], ecx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x290], edx
lea edi, [esp + 0x398]
xor eax, eax
call fcn.004690fb
mov ecx, dword [esp + 0x270]
mov ecx, dword [ecx + 0x10]
mov ebx, dword [esp + 0x324]
mov dword [esp], ebx
call ecx
movzx ecx, byte [esp + 0x18]
mov byte [esp + 0x269], cl
lea edi, [esp + 0x398]
lea esi, [esp + 4]
call fcn.004695de
lea edi, [esp + 0x384]
lea esi, [esp + 0x398]
call fcn.004695de
movzx ecx, byte [esp + 0x269]
test cl, cl
je 0x512505
lea edi, [esp + 0x35c]
lea esi, [esp + 0x398]
call fcn.004695de
mov ecx, dword [esp + 0x360]
mov edx, dword [esp + 0x35c]
test ecx, 0x80000000
je 0x5124a7
shl ecx, 1
mov ebx, edx
shl edx, 1
mov ebp, ebx
shr ebx, 0x1f
or ebx, ecx
mov ecx, ebx
shl ebx, 1
shr edx, 0x1f
or edx, ebx
shr ecx, 0x1f
add edx, 0xd7b17f80
adc ecx, 0xd
jmp 0x5124b9
mov ebx, dword [esp + 0x364]
mov ecx, dword [esp + 0x368]
mov ebp, edx
mov edx, ebx
test ecx, ecx
sete cl
test edx, edx
sete dl
and ecx, edx
test cl, cl
je 0x5124d1
test ebp, 0x3fffffff
je 0x512505
mov eax, dword [esp + 0x290]
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x294], ecx
mov edx, dword [esp + 0x33c]
mov dword [esp], edx
lea edi, [esp + 4]
lea esi, [esp + 0x384]
call fcn.004695de
mov ecx, dword [esp + 0x294]
call ecx
lea edi, [esp + 0x3c0]
xor eax, eax
call fcn.004690b3
mov dword [esp + 0x2a6], 0
mov dword [esp + 0x2a8], 0
mov dword [esp + 0x2ac], 0
mov dword [esp + 0x2b0], 0
lea ecx, [0x71b440]
mov dword [esp], ecx
mov edx, dword [esp + 0x340]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x33c]
mov dword [esp + 8], ebx
call fcn.00409f50
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x51269b
lea edi, [esp + 0x4f4]
xor eax, eax
call fcn.004690b3
mov ecx, dword [esp + 0x340]
mov dword [esp], ecx
mov ecx, dword [esp + 0x33c]
mov dword [esp + 4], ecx
movzx edx, word [esp + 0x26a]
mov word [esp + 8], dx
lea edi, [esp + 0xa]
lea esi, [esp + 0x8a8]
call fcn.00469386
mov ecx, dword [esp + 0x328]
mov dword [esp + 0x110], ecx
mov ebx, dword [esp + 0x274]
mov dword [esp + 0x114], ebx
mov ebp, dword [esp + 0x278]
mov dword [esp + 0x118], ebp
call fcn.00511680
mov ecx, dword [esp + 0x260]
mov dword [esp + 0x28c], ecx
mov edx, dword [esp + 0x264]
lea edi, [esp + 0x4f4]
lea esi, [esp + 0x11c]
call fcn.0046930e
mov ecx, dword [esp + 0x250]
mov dword [esp + 0x2fa], ecx
lea edi, [esp + 0x2fc]
lea esi, [esp + 0x252]
call fcn.004695f2
lea edi, [esp + 0x75c]
lea esi, [esp + 0x4f4]
call fcn.0046930e
mov ecx, dword [esp + 0x2fa]
mov dword [esp + 0x316], ecx
lea edi, [esp + 0x318]
lea esi, [esp + 0x2fc]
call fcn.004695f2
lea edi, [esp + 0x3c0]
lea esi, [esp + 0x75c]
call fcn.0046930e
mov ecx, dword [esp + 0x316]
mov dword [esp + 0x2a6], ecx
lea edi, [esp + 0x2a8]
lea esi, [esp + 0x318]
call fcn.004695f2
mov eax, dword [esp + 0x28c]
jmp 0x5127c2
lea edi, [esp + 0x4f4]
xor eax, eax
call fcn.004690b3
mov ecx, dword [esp + 0x340]
mov dword [esp], ecx
mov ecx, dword [esp + 0x33c]
mov dword [esp + 4], ecx
movzx edx, word [esp + 0x26a]
mov word [esp + 8], dx
lea edi, [esp + 0xa]
lea esi, [esp + 0x8a8]
call fcn.00469386
mov ecx, dword [esp + 0x32c]
mov dword [esp + 0x110], ecx
mov ebx, dword [esp + 0x27c]
mov dword [esp + 0x114], ebx
mov ebp, dword [esp + 0x280]
mov dword [esp + 0x118], ebp
call fcn.00511a00
mov ecx, dword [esp + 0x260]
mov dword [esp + 0x28c], ecx
mov edx, dword [esp + 0x264]
lea edi, [esp + 0x4f4]
lea esi, [esp + 0x11c]
call fcn.0046930e
mov ecx, dword [esp + 0x250]
mov dword [esp + 0x2fa], ecx
lea edi, [esp + 0x2fc]
lea esi, [esp + 0x252]
call fcn.004695f2
lea edi, [esp + 0x628]
lea esi, [esp + 0x4f4]
call fcn.0046930e
mov ecx, dword [esp + 0x2fa]
mov dword [esp + 0x308], ecx
lea edi, [esp + 0x30a]
lea esi, [esp + 0x2fc]
call fcn.004695f2
lea edi, [esp + 0x3c0]
lea esi, [esp + 0x628]
call fcn.0046930e
mov ecx, dword [esp + 0x308]
mov dword [esp + 0x2a6], ecx
lea edi, [esp + 0x2a8]
lea esi, [esp + 0x30a]
call fcn.004695f2
mov eax, dword [esp + 0x28c]
mov dword [esp + 0x338], edx
mov dword [esp + 0x28c], eax
mov ecx, dword [esp + 0x290]
mov ecx, dword [ecx + 0x10]
mov ebx, dword [esp + 0x33c]
mov dword [esp], ebx
call ecx
mov eax, dword [esp + 0x28c]
test eax, eax
jne 0x512951
lea eax, [esp + 0x3c0]
mov dword [esp], eax
call fcn.00507860
mov eax, dword [esp + 4]
cmp dword [0x9672b8], eax
jne 0x5128c2
mov ecx, dword [0x9672bc]
mov edx, dword [esp + 8]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00404290
movzx eax, byte [esp + 0xc]
test al, al
je 0x5128c2
movzx ecx, byte [esp + 0x2ad]
test cl, cl
jne 0x51223c
mov eax, dword [esp + 0x2a6]
mov dword [esp + 0x2c2], eax
lea edi, [esp + 0x2c4]
lea esi, [esp + 0x2a8]
call fcn.004695f2
lea edi, [esp + 0x9b8]
lea esi, [esp + 0x3c0]
call fcn.0046930e
mov eax, dword [esp + 0x2c2]
mov dword [esp + 0xaec], eax
lea edi, [esp + 0xaee]
lea esi, [esp + 0x2c4]
call fcn.004695f2
mov dword [esp + 0xafc], 0
mov dword [esp + 0xb00], 0
call fcn.00438090
add esp, 0x890
ret
mov dword [esp + 0x2d0], 0
mov dword [esp + 0x2d2], 0
mov dword [esp + 0x2d6], 0
mov dword [esp + 0x2da], 0
mov ecx, dword [0x9670c0]
mov dword [esp + 0x294], ecx
mov edx, dword [0x9670c4]
lea edi, [esp + 0x9b8]
xor eax, eax
call fcn.004690b3
mov ecx, dword [esp + 0x2d0]
mov dword [esp + 0xaec], ecx
lea edi, [esp + 0xaee]
lea esi, [esp + 0x2d2]
call fcn.004695f2
mov ecx, dword [esp + 0x294]
mov dword [esp + 0xafc], ecx
mov dword [esp + 0xb00], edx
call fcn.00438090
add esp, 0x890
ret
cmp dword [0x966f38], eax
jne 0x512994
mov ecx, dword [0x966f3c]
mov dword [esp], eax
mov edx, dword [esp + 0x338]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00404290
movzx eax, byte [esp + 0xc]
test al, al
je 0x51298d
lea eax, [0x7b0dac]
lea edx, [0x994f00]
jmp 0x5129de
mov eax, dword [esp + 0x28c]
cmp dword [0x966f40], eax
jne 0x5129d7
mov ecx, dword [0x966f44]
mov dword [esp], eax
mov edx, dword [esp + 0x338]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00404290
movzx eax, byte [esp + 0xc]
test al, al
je 0x5129d0
mov eax, dword [0x9670f0]
mov edx, dword [0x9670f4]
jmp 0x5129de
mov eax, dword [esp + 0x28c]
mov edx, dword [esp + 0x338]
mov dword [esp + 0x26c], eax
mov dword [esp + 0x2de], 0
mov dword [esp + 0x2e0], 0
mov dword [esp + 0x2e4], 0
mov dword [esp + 0x2e8], 0
lea edi, [esp + 0x9b8]
xor eax, eax
call fcn.004690b3
mov ecx, dword [esp + 0x2de]
mov dword [esp + 0xaec], ecx
lea edi, [esp + 0xaee]
lea esi, [esp + 0x2e0]
call fcn.004695f2
mov ecx, dword [esp + 0x26c]
mov dword [esp + 0xafc], ecx
mov dword [esp + 0xb00], edx
call fcn.00438090
add esp, 0x890
ret
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x340], ecx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x2ec], 0
mov dword [esp + 0x2ee], 0
mov dword [esp + 0x2f2], 0
mov dword [esp + 0x2f6], 0
lea edi, [esp + 0x9b8]
xor eax, eax
call fcn.004690b3
mov ecx, dword [esp + 0x2ec]
mov dword [esp + 0xaec], ecx
lea edi, [esp + 0xaee]
lea esi, [esp + 0x2ee]
call fcn.004695f2
mov ecx, dword [esp + 0x340]
mov dword [esp + 0xafc], ecx
mov dword [esp + 0xb00], edx
call fcn.00438090
add esp, 0x890
ret
call fcn.00438090
add esp, 0x890
ret
mov dword [esp + 0x2b4], 0
mov dword [esp + 0x2b6], 0
mov dword [esp + 0x2ba], 0
mov dword [esp + 0x2be], 0
mov ecx, dword [0x9670c8]
mov dword [esp + 0x294], ecx
mov edx, dword [0x9670cc]
lea edi, [esp + 0x9b8]
xor eax, eax
call fcn.004690b3
mov ecx, dword [esp + 0x2b4]
mov dword [esp + 0xaec], ecx
lea edi, [esp + 0xaee]
lea esi, [esp + 0x2b6]
call fcn.004695f2
mov ecx, dword [esp + 0x294]
mov dword [esp + 0xafc], ecx
mov dword [esp + 0xb00], edx
call fcn.00438090
add esp, 0x890
ret
call fcn.00467a60
jmp fcn.00511fe0