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

Disassembly:
push 0xffffffffffffffff
push 0x41763c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3d4
push ebp
push esi
push edi
lea ecx, [esp + 0x28]
call fcn.00409e40
mov edi, dword [esp + 0x3f4]
mov dword [esp + 0x3e8], 0
mov ecx, edi
call sub.MFC42.DLL_CString::Empty
mov esi, dword [esp + 0x3f0]
lea ecx, [esp + 0x28]
push esi
call fcn.0040a0d0
mov eax, dword [esp + 0x3fc]
push 0x41efd0
lea ecx, [esp + 0x48]
push 0x41efbc
push ecx
mov dword [esp + 0x60], eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0xc]
push esi
call fcn.00415abc
mov eax, dword [esp + 0x400]
mov ebp, dword [sym.imp.MSVCRT.dll__mbsstr]
test eax, eax
mov byte [esp + 0x3e8], 1
je 0x40b626
push 0x41f058
push esi
call ebp
add esp, 8
test eax, eax
jne 0x40b626
lea edx, [esp + 0x14]
push esi
push edx
call fcn.00415380
add esp, 8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x3ec], 2
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x3e8], 1
call sub.MFC42.DLL_CString::CString
push 0x41f058
push esi
call ebp
add esp, 8
test eax, eax
je 0x40b666
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00415840
add esp, 8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x3ec], 3
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x3e8], 1
call sub.MFC42.DLL_CString::CString
push 0x41f130
push 0x41f12c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Replace
mov ecx, dword [esp + 0xc]
push 0x41f11c
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x40b69f
mov edx, dword [esp + 0xc]
push 0x41f10c
push edx
call ebp
add esp, 8
test eax, eax
je 0x40b6ad
push 0x41f0f4
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0xc]
push 0x41f0d8
push eax
call ebp
add esp, 8
test eax, eax
je 0x40b6ce
push 0x41f070
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::operator_1
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x28]
push ecx
push edx
push 0
push 0
push 0x7530
push 0
push eax
lea ecx, [esp + 0x50]
call fcn.0040a410
test eax, eax
jne 0x40b759
push 0x7d0
call ebp
inc esi
cmp esi, 2
jl 0x40b6d6
lea ecx, [esp + 0xc]
mov byte [esp + 0x3e8], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x3e8], 0xffffffff
call fcn.00409fb0
or eax, 0xffffffff
mov ecx, dword [esp + 0x3e0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3e0
ret
mov eax, dword [esp + 0x18]
test eax, eax
jbe 0x40b7a9
mov ecx, dword [esp + 0x10]
push ecx
push 0x41e1e0
push edi
call sub.MFC42.DLL_CString::Format
mov edx, dword [edi]
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [edx - 8]
cmp eax, ecx
jae 0x40b7a9
mov ecx, dword [esp + 0x10]
mov byte [eax + ecx], 0x20
mov edx, dword [esp + 0x10]
push edx
push 0x41e1e0
push edi
call sub.MFC42.DLL_CString::Format
mov eax, dword [edi]
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [eax - 8]
cmp eax, ecx
jb 0x40b781
mov ecx, dword [esp + 0x1c]
push ecx
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x14]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 8
lea ecx, [esp + 0xc]
mov byte [esp + 0x3e8], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x3e8], 0xffffffff
call fcn.00409fb0
xor eax, eax
jmp 0x40b741