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

Disassembly:
mov ecx, dword [0x99504c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40b6a0
sub esp, 0x50
mov edx, dword [esp + 0x54]
test byte [edx], al
lea ebx, [edx + 0x10c]
mov ebp, dword [esp + 0x58]
add ebp, 0x3fffff
nop
and ebp, 0xffc00000
mov dword [esp + 0x18], ebp
mov esi, dword [esp + 0x5c]
cmp esi, ebx
je 0x40b127
xor eax, eax
jmp 0x40b44b
lea eax, [edx + 0x110]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], 0x400000
lea eax, [0x995db8]
mov dword [esp + 0xc], eax
call fcn.0040cbb0
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40b164
mov edx, dword [esp + 0x54]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x5c]
jmp 0x40b44b
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x38], ecx
mov edx, eax
shr eax, 0x16
mov ebx, dword [esp + 0x54]
jmp 0x40b1a9
mov ecx, dword [esp + 0x3c]
lea ecx, [ecx + edx*4]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00402d60
mov eax, dword [esp + 0x2c]
inc eax
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x38]
mov ecx, ebx
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x54]
mov ebp, edx
lea edx, [ecx + edx - 1]
shr edx, 0x16
cmp eax, edx
ja 0x40b3a9
mov dword [esp + 0x2c], eax
mov edx, dword [ebx + 0xf4]
test edx, edx
jne 0x40b240
mov eax, dword [sym.imp.kernel32.dll_VirtualAlloc]
nop
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x1000
mov dword [esp + 0xc], 0x3000
mov dword [esp + 0x10], 4
call fcn.00436730
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40b40d
mov ecx, dword [esp + 0x54]
movzx edx, byte [ecx + 0xf8]
test dl, dl
je 0x40b215
nop
jmp 0x40b216
nop
mov dword [esp + 0x48], eax
lea edx, [ecx + 0xf4]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00402d60
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
cmp eax, 0x400
jae 0x40b403
test byte [edx], al
mov esi, dword [edx + eax*4]
test esi, esi
jne 0x40b3ed
mov dword [esp + 0x3c], edx
lea eax, [ebx + 0xfc]
mov dword [esp], eax
mov dword [esp + 4], 0x218c8
mov dword [esp + 8], 4
lea eax, [0x99c250]
mov dword [esp + 0xc], eax
call fcn.0040cbb0
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40b2b6
mov dword [esp], 0x218c8
mov dword [esp + 4], 4
lea eax, [0x99c250]
mov dword [esp + 8], eax
call fcn.0040c850
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40b3d7
movzx ebx, byte [esp + 0x60]
test bl, bl
je 0x40b3a0
mov ebp, dword [esp + 0x54]
mov esi, dword [ebp + 0x128]
cmp dword [ebp + 0x124], esi
jne 0x40b371
mov dword [esp + 0x20], eax
shl esi, 3
test esi, esi
jne 0x40b2ea
mov esi, dword [0x994f30]
mov dword [esp + 0x1c], esi
mov dword [esp], esi
mov dword [esp + 4], 4
lea eax, [0x99c250]
mov dword [esp + 8], eax
call fcn.0040c850
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40b3c1
mov ebx, dword [esp + 0x54]
mov ebp, dword [ebx + 0x124]
mov esi, dword [esp + 0x1c]
shr esi, 2
mov edi, dword [ebx + 0x120]
mov dword [ebx + 0x120], eax
mov dword [ebx + 0x128], esi
mov esi, dword [ebx + 0x124]
cmp esi, ebp
jg 0x40b343
mov ebp, esi
mov esi, dword [ebx + 0x120]
cmp esi, edi
je 0x40b364
mov dword [esp], esi
mov dword [esp + 4], edi
shl ebp, 2
mov dword [esp + 8], ebp
call fcn.004697f0
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x20]
movzx ebx, byte [esp + 0x60]
mov ebp, dword [esp + 0x54]
mov esi, dword [ebp + 0x124]
mov edx, dword [ebp + 0x128]
lea ecx, [esi + 1]
cmp edx, ecx
jb 0x40b3bc
mov dword [ebp + 0x124], ecx
cmp esi, ecx
jae 0x40b3b5
mov ecx, dword [ebp + 0x120]
mov edx, dword [esp + 0x2c]
mov dword [ecx + esi*4], edx
jmp 0x40b17b
mov edx, dword [esp + 0x2c]
jmp 0x40b17b
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ecx
add esp, 0x50
ret
mov eax, esi
call fcn.00468ed0
call fcn.00468f10
lea eax, [0x74773e]
mov dword [esp], eax
mov dword [esp + 4], 0x22
call fcn.00439230
lea eax, [0x74bde1]
mov dword [esp], eax
mov dword [esp + 4], 0x2c
call fcn.00439230
lea eax, [0x7428e1]
mov dword [esp], eax
mov dword [esp + 4], 0x19
call fcn.00439230
mov ecx, 0x400
call fcn.00468ee0
lea eax, [0x749dac]
mov dword [esp], eax
mov dword [esp + 4], 0x27
call fcn.00439230
mov eax, dword [ebx + 8]
mov dword [esi], eax
mov eax, dword [edx + 0x4660]
sub eax, dword [edx + 0x4644]
nop
mov dword [edx + 0x4660], eax
mov eax, dword [edx + 0x4650]
mov dword [ebx], eax
mov dword [edx + 0x4650], ebx
mov eax, edi
mov ebx, dword [esi]
test ebx, ebx
je 0x40b4f4
movzx edi, byte [ebx + 4]
mov eax, dword [ebx]
xchg edi, eax
test al, al
xchg edi, eax
je 0x40b463
sub eax, ebp
mov dword [esp + 0x34], ebx
lea edi, [eax + ebp]
cmp eax, edi
jbe 0x40b472
xor ecx, ecx
jmp 0x40b4a5
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], edi
nop
mov dword [esp], eax
mov dword [esp + 4], ebp
call fcn.004154e0
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x38]
mov ecx, edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x4c], ecx
cmp ecx, eax
je 0x40b4de
mov edi, dword [esp + 0x4c]
test edi, edi
je 0x40b423
mov dword [esp], edi
mov dword [esp + 4], ebp
call fcn.00415420
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x4c]
jmp 0x40b423
movzx esi, byte [ebx + 4]
xchg esi, eax
test al, al
xchg esi, eax
jne 0x40b4ea
mov eax, edi
mov dword [ebx], eax
mov ecx, ebp
mov eax, dword [esp + 0x4c]
jmp 0x40b4f6
xor ecx, ecx
test ecx, ecx
jne 0x40b596
mov dword [esp], 0
mov dword [esp + 4], ebp
mov dword [esp + 8], 0x400000
call fcn.0040b6b0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40b5c2
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x54]
lea edx, [ecx + 0x4644]
mov dword [esp + 0x44], edx
mov dword [esp], edx
call fcn.00417fc0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x4c]
mov dword [eax], ecx
mov byte [eax + 4], 1
mov ecx, dword [0x97500c]
mov dword [eax + 8], ecx
mov dword [0x97500c], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.00417fc0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x38]
add ecx, ebx
mov dword [eax], ecx
mov ecx, dword [0x97500c]
mov dword [eax + 8], ecx
mov dword [0x97500c], eax
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x4c]
mov ecx, ebx
mov ebx, eax
lea ebp, [ecx + eax]
cmp eax, ebp
jbe 0x40b5ac
mov esi, 0x1c
lea edi, [0x7443b2]
jmp 0x40b5b0
xor esi, esi
xor edi, edi
test esi, esi
jne 0x40b5ec
test eax, 0x3fffff
jne 0x40b5d6
mov eax, ebx
jmp 0x40b168
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
add esp, 0x50
ret
lea eax, [0x746df4]
mov dword [esp], eax
mov dword [esp + 4], 0x21
call fcn.00439230
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x30], esi
mov dword [esp + 0x40], edi
call fcn.0043af60
lea eax, [0x746dd3]
mov dword [esp], eax
mov dword [esp + 4], 0x21
call fcn.0043b7e0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.0043b670
lea eax, [0x73a4c2]
mov dword [esp], eax
mov dword [esp + 4], 2
call fcn.0043b7e0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.0043b670
lea eax, [0x745e0f]
mov dword [esp], eax
mov dword [esp + 4], 0x1f
call fcn.0043b7e0
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call fcn.0043b7e0
call fcn.0043b170
call fcn.0043afc0
lea eax, [0x74c95b]
mov dword [esp], eax
mov dword [esp + 4], 0x2e
call fcn.00439230
nop
call fcn.00467a60
jmp fcn.0040b0e0