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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e840
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
push ebx
push esi
push edi
mov eax, dword [0x42a008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], 0
call dword [0x42ab08]
test eax, eax
je 0x405e0b
xorps xmm0, xmm0
mov dword [ebp - 0xa8], 0
lea ecx, [ebp - 0x44]
movlpd qword [ebp - 0xa0], xmm0
movlpd qword [ebp - 0x94], xmm0
movlpd qword [ebp - 0x8c], xmm0
movlpd qword [ebp - 0x84], xmm0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0xa4], 0xffffffff
mov dword [ebp - 0x98], 0xffffffff
mov dword [ebp - 0x7c], 0xffffffff
mov dword [ebp - 0x74], 0xffffffff
mov dword [ebp - 0xac], 0x3c
call fcn.0040afa0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x44], vtable.CWString.0
mov eax, dword [ebx + 4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
call dword [eax + 0x44]
lea eax, [ebx + 0x10]
push eax
lea ecx, [ebp - 0x34]
call fcn.00401ed0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.0040a390
mov edx, dword [edi + 0x94]
lea ebx, [edi + 0x94]
mov ecx, ebx
mov esi, eax
call dword [edx + 0x44]
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 8]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
add ebx, 0x10
mov ecx, ebx
mov dword [ebp - 0x18], ebx
mov eax, dword [ebx]
call dword [eax + 0x44]
lea eax, [esi + 0x10]
mov ecx, ebx
push eax
call fcn.00401ed0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.0040b2f0
lea ecx, [ebp - 0x104]
call fcn.0040afa0
mov dword [ebp - 4], 2
mov dword [ebp - method.CVolObjectArray.virtual_0], vtable.CWConstString.0
mov dword [ebp - 0xf8], str.http:__
mov dword [ebp - 4], 3
mov ebx, 1
mov dword [ebp - 0x14], ebx
mov esi, 0x422b94
mov eax, dword [ebp - 0xf8]
test eax, eax
jne 0x405a01
cmp dword [ebp - 0xe0], 0
mov eax, esi
cmovne eax, dword [ebp - 0xe8]
push 0
push 1
push 0
push eax
lea ecx, [edi + 0x94]
call fcn.0041c540
cmp eax, 0xffffffff
jne 0x405a70
lea ecx, [ebp - 0x44]
call fcn.0040afa0
mov dword [ebp - 4], 4
mov dword [ebp - 0x44], vtable.CWConstString.0
mov dword [ebp - 0x38], str.https:__
mov dword [ebp - 4], 5
mov ebx, 3
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x405a55
cmp dword [ebp - 0x20], 0
mov eax, esi
cmovne eax, dword [ebp - 0x28]
push 0
push 1
push 0
push eax
lea ecx, [edi + 0x94]
call fcn.0041c540
mov byte [ebp - 0xd], 1
cmp eax, 0xffffffff
je 0x405a74
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 3
test bl, 2
je 0x405a95
and ebx, 0xfffffffd
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.0040b2f0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x405ab9
and ebx, 0xfffffffe
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x104]
call fcn.0040b2f0
cmp byte [ebp - 0xd], 0
je 0x405b72
lea ecx, [ebp - 0x15c]
call fcn.0040afa0
mov dword [ebp - 4], 8
mov dword [ebp - method.CVolObjectArray.virtual_0], vtable.CWConstString.0
mov dword [ebp - 0x150], str.http:__
mov dword [ebp - 4], 9
lea edx, [ebp - 0x15c]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x188]
call fcn.0041c650
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0xa
lea ecx, [edi + 0x94]
mov edx, dword [edi + 0x94]
call dword [edx + 0x44]
mov ecx, dword [esi + 4]
mov ebx, dword [ebp - 0x18]
mov dword [edi + 0x98], ecx
mov ecx, ebx
mov eax, dword [esi + 8]
mov dword [edi + 0x9c], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xa0], eax
mov eax, dword [ebx]
call dword [eax + 0x44]
lea eax, [esi + 0x10]
mov ecx, ebx
push eax
call fcn.00401ed0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x188]
call fcn.0040b2f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15c]
call fcn.0040b2f0
mov esi, 0x422b94
mov edx, dword [edi + 0xa0]
test edx, edx
je 0x405b92
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405b81
sub eax, ebx
sar eax, 1
jmp 0x405bac
mov eax, dword [edi + 0xb8]
test eax, eax
jne 0x405ba3
mov edx, 0x422b94
jmp 0x405bac
mov edx, dword [edi + 0xb0]
shr eax, 1
dec eax
lea ecx, [ebp - 0xac]
push ecx
push 0
push eax
push edx
call dword [0x42ab0c]
test eax, eax
je 0x405e0b
xor eax, eax
lea ecx, [ebp - 0x130]
cmp dword [ebp - 0xa0], 2
sete al
mov dword [edi + 0x90], eax
call fcn.0040afa0
mov dword [ebp - 4], 0xc
lea ecx, [ebp - 0x130]
push str.Mozilla_5.0__Windows_NT_10.0__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_50.0.2661.102_Safari_537.36
mov dword [ebp - method.CVolObjectArray.virtual_0], vtable.CWString.0
call fcn.0041bae0
mov dword [ebp - 4], 0xd
mov eax, dword [ebp - 0x124]
test eax, eax
jne 0x405c24
cmp dword [ebp - 0x10c], 0
mov eax, esi
cmovne eax, dword [ebp - 0x114]
push 0
push 0
push 0
push 1
push eax
call dword [0x42ab10]
mov dword [0x42a9c8], eax
test eax, eax
jne 0x405c43
xor ebx, ebx
jmp 0x405de3
lea ecx, [ebp - 0xd8]
call fcn.0040afa0
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0xbc]
mov esi, dword [ebp - 0x9c]
mov dword [ebp - 0xcc], 0
test eax, eax
je 0x405c7c
push eax
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xc8]
call dword [eax + 0xc]
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb8], 0
test esi, esi
je 0x405cb0
cmp word [esi], 0
je 0x405cb0
push esi
lea ecx, [ebp - 0xc8]
call fcn.0041a370
push dword [ebp - 0x98]
lea eax, [ebp - 0x188]
push eax
lea ecx, [ebp - 0xd8]
call fcn.0041be00
mov byte [ebp - 4], 0xf
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x405ce0
cmp dword [eax + 0x24], ecx
mov ecx, 0x422b94
je 0x405ce0
mov ecx, dword [eax + 0x1c]
push 0
push dword [ebp - 0x94]
push ecx
push dword [0x42a9c8]
call dword [0x42ab14]
mov dword [0x42a9c4], eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x188]
call fcn.0040b2f0
cmp dword [0x42a9c4], 0
jne 0x405d19
xor ebx, ebx
jmp 0x405dd4
lea ecx, [ebp - 0x70]
call fcn.0040afa0
mov byte [ebp - 4], 0x10
mov esi, 0x422968
cmp dword [ebp - 0x7c], 1
cmovae esi, dword [ebp - 0x80]
xor ecx, ecx
mov dword [ebp - 0x64], ecx
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x405d4b
push eax
mov eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x60]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x64]
xor eax, eax
xor edx, edx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], eax
test esi, esi
je 0x405d73
cmp word [esi], ax
je 0x405d73
push esi
lea ecx, [ebp - 0x60]
call fcn.0041a370
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x64]
test ecx, ecx
jne 0x405d81
test edx, edx
mov ecx, 0x422b94
cmovne ecx, eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xc]
test edx, edx
jne 0x405d98
cmp dword [eax + 0x24], edx
mov edx, 0x422b94
je 0x405d98
mov edx, dword [eax + 0x1c]
mov eax, dword [edi + 0x90]
neg eax
sbb eax, eax
and eax, 0x800000
push eax
push 0
push 0
push 0
push ecx
push edx
push dword [0x42a9c4]
call dword [0x42ab18]
xor ebx, ebx
mov dword [0x42a9c0], eax
test eax, eax
setne bl
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x70]
call fcn.0040b2f0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xd8]
call fcn.0040b2f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.0040b2f0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8